Skip to main content

Send and get transaction statuses

Sends a transaction and provides updates on its status changes.

Example Request


_25
{
_25
"subscription_id": "some-id-7",
_25
"action": "subscribe",
_25
"topic": "send_and_get_transaction_statuses"
_25
"arguments": {
_25
"arguments": [],
_25
"authorizers": ["dba05362251g43g4"],
_25
"envelope_signatures": [
_25
{
_25
"address": "dba05362251g43g4",
_25
"key_index": "0",
_25
"signature": "PJPVEOCtPKubTEpPqd4zrrSXo1RhpABAMDuzIchgBje8gyh04XuWY4f/tu+c0llDhOU/5sQBokeOTdygaS6eTQ=="
_25
}
_25
],
_25
"gas_limit": "1000",
_25
"payer": "dba05362251g43g4",
_25
"proposal_key": {
_25
"address": "dba05362251g43g4",
_25
"key_index": "0",
_25
"sequence_number": "0"
_25
},
_25
"reference_block_id": "817d7c1d2c13a4bd37c182747a4116b45cd175c0ba4878071c33f0f278b37dd7",
_25
"script": "CgkJCXRyYW5zYWN0aW9uIHsKCQkJCXByZXBhcmUoYWNjOiAmQWNjb3VudCkge30KCQkJCWV4ZWN1dGUgewoJCQkJCWxvZygidGVzdCIpCgkJCQl9CgkJCX0KCQk="
_25
}
_25
}

NameTypeREQUIREDDescription
scriptSTRINGYESBase64-encoded content of the Cadence script.
argumentsLISTYESA list of arguments, each encoded as Base64.
reference_block_idSTRINGYESBlockID for the transaction's reference block
gas_limitSTRINGYESThe limit on the amount of computation a transaction can perform.
payerSTRINGYESThe 8-byte address of an account.
proposal_keyOBJECTYESA required object representing the proposal key.
authorizersLISTYESA list of authorizers, each represented as a hexadecimal-encoded address.
payload_signaturesLISTNOA list of Base64-encoded signatures.
envelope_signaturesLISTYESA list of Base64-encoded signatures.

Example Response


_20
{
_20
"subscription_id": "some-id",
_20
"topic": "send_and_get_transaction_statuses",
_20
"payload": {
_20
"transaction_result": {
_20
"block_id": "7ad167602487665db095f7cb0b95139e5dcaf3ad2479ee4d14cade35b7d4bbdc",
_20
"collection_id": "d0855ed45c16be2831ab9892ec8a9ddfd10a0e01e683466971cfd87c759bf7d1",
_20
"execution": "Failure",
_20
"status": "Sealed",
_20
"status_code": 1,
_20
"error_message": "[Error Code: 1009] error caused by: 1 error occurred:\n\t* transaction verification failed: [Error Code: 1006] invalid proposal key: public key 0 on account dba05362251g43g4 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account dba05362251g43g4 does not have a valid signature: signature is not valid\n\n",
_20
"computation_used": "0",
_20
"events": [],
_20
"_links": {
_20
"_self": "/v1/transaction_results/92014de98466a6304ecd821c95ee2612e248c22419d243e6e3ff4d138dffde04"
_20
}
_20
},
_20
"message_index": 3
_20
}
_20
}

Rate this page