Execute an action

Call an action by providing the action name and the necessary details in the request body.

POST

Parameters

Body

application/json
Action
The blockchain action to be executed
Signature
Cryptographic signature of the request for authentication and integrity verification
Status codeDescription
200The result of the action execution.
400Bad request error - the request contains invalid parameters or malformed data
500Internal server error - an unexpected error occurred on the server
cURL
curl -L -X POST \
"https://blockv-labs.io/ebus/execute" \
-H 'Accept: application/json'
Response
{
"action_id": "string",
"steps": [
{
"action": "string",
"error": "Error message"
}
]
}
json
{
"type": "object",
"description": "Result of executing a blockchain action, containing the action ID and execution steps",
"required": [
"action_id",
"steps"
],
"properties": {
"action_id": {
"type": "string",
"description": "Unique identifier of the executed action"
},
"steps": {
"type": "array",
"description": "Array of execution steps performed during the action processing",
"items": {
"type": "object",
"required": [
"action"
],
"properties": {
"action": {
"type": "string"
},
"error": {
"type": "string",
"x-go-type-skip-optional-pointer": true
},
"output": {
"type": "object",
"x-go-type-skip-optional-pointer": true
}
}
}
}
}
}