Get a Transaction by ID
Get a transaction data by the provided transaction ID.
get
https://flow-mainnet.g.alchemy.com/v2/demo/transactions
/
Get a transaction data by the provided transaction ID.

Example:

Request:

HTTP GET
cURL
https://flow-mainnet.g.alchemy.com/v2/demo/transactions/ea9215da800c8c5cb170dc7b820373168b98238760cb89d8a82e799aec32c39d
flow-mainnet.g.alchemy.com
curl --location --request GET 'https://flow-mainnet.g.alchemy.com/v2/demo/transactions/ea9215da800c8c5cb170dc7b820373168b98238760cb89d8a82e799aec32c39d'

Response

  • id -String- A 32-byte unique identifier for the transaction
  • script -String- Base64 encoded Cadence script describing the state mutation logic
  • arguments - String Array- Array of Base64 encoded arguments with in JSON-Cadence interchange format
  • reference_block_id -String- A 32-byte unique identifier for an expiration window (denominated in blocks) for which a transaction is considered valid by the network.
  • gas_limit -String- Limit on the amount of computation a transaction requires
  • payer -String- Address/account that pays the transaction fees
  • proposal_key -Object- Sequence counter for maintaining sequence number for a transaction
    • address -String- Account address for a given tx
    • key_index -String- Account key index
    • sequence_number -String- Cadence equivalence to a "nonce" and increments after each tx execution
  • authorizers -String Array- Accounts that authorize a transaction to read/mutate their resources.
  • payload_signatures -Array- Timestamp of a proposer's claim for block construction
    • address -String- Account address for a given tx
    • key_index -String- Account key index
    • signature -String- Signed tx payload by the proposer and authorizer
  • evelope_signatures -Array- Cryptographic signature of parent voter
    • address -String- Account address for a given tx
    • key_index -String- Account key index
    • signature -String- Signed tx signed by the payer
  • _expandable -Object- Expandable data
    • payload -String- The transaction payload contains the data that identifies the operations applied by the tx
    • execution_result -String- Resultant link to stored data
  • _links -Object- A summary of data stored
    • _self-String- A link from a source to target denoting the location of stored data
{
"id": "ea9215da800c8c5cb170dc7b820373168b98238760cb89d8a82e799aec32c39d",
"script": "aW1wb3J0IEZ1bmdpYmxlVG9rZW4gZnJvbSAweGYyMzNkY2VlODhmZTBhYmUKaW1wb3J0IFRvcFNob3RNYXJrZXRWMyBmcm9tIDB4YzFlNGY0ZjRjNDI1NzUxMAppb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JvdyBhIHJlZmVyZW5jZSB0byB0aGUgc2FsZQoJCWxldCB0b3BzaG90U2FsZUNvbGxlY3Rpb24gPSBhY2N0LmJvcnJvdzwmVG9wU2hvdE1hcmtldFYzLlNhbGVDb2xsZWN0aW9uPihmcm9tOiBUb3BTaG90TWFya2V0VjMubWFya2V0U3RvcmFnZVBhdGgpCgkJCT8/IHBhbmljKCJDb3VsZCBub3QgYm9ycm93IGZyb20gc2FsZSBpbiBzdG9yYWdlIikKCQkKCQkvLyBwdXQgdGhlIG1vbWVudCB1cCBmb3Igc2FsZQoJCXRvcHNob3RTYWxlQ29sbGVjdGlvbi5saXN0Rm9yU2FsZSh0b2tlbklEOiAxODMwOTQ3NywgcHJpY2U6IFVGaXg2NCg2KSkKCQkKCX0KfQ==",
"arguments": [],
"reference_block_id": "ff465b32767bcaaaae911e47bd7cd90672a0bca6810979da2be87770dded0bc3",
"gas_limit": "9999",
"payer": "18eb4ee6b3c026d2",
"proposal_key": {
"address": "8a9bba724dc6c822",
"key_index": "7",
"sequence_number": "270"
},
"authorizers": [
"8a9bba724dc6c822"
],
"payload_signatures": [
{
"address": "8a9bba724dc6c822",
"key_index": "0",
"signature": "Mdwt4/1B+JzVm0xhZbJq/wXhT2MAb4/423KcPigfqPJvB4Ma5VyJ9k0aA6+fbaV9juvBhJeNbra6o8LoNba5tA=="
},
{
"address": "8a9bba724dc6c822",
"key_index": "7",
"signature": "gJGXhd++fnXrbUG+2B3CqTNbz/eppQ3ZL8i5iP77oSt7XLJKqBSjJmUhBviqsjz3aGZ4OcJZV/yQOGnwjM5ItA=="
}
],
"envelope_signatures": [
{
"address": "18eb4ee6b3c026d2",
"key_index": "0",
"signature": "BTp0Yt4iNAJ87yzS+ruqZVhLyDOjFocQrGthStkKRs+vI8GOpUGGNbbRHnALBTAhMJkZQw0m4z/rAN1uVZsnVg=="
}
],
"_expandable": {
"result": "/v1/transaction_results/ea9215da800c8c5cb170dc7b820373168b98238760cb89d8a82e799aec32c39d"
},
"_links": {
"_self": "/v1/transactions/ea9215da800c8c5cb170dc7b820373168b98238760cb89d8a82e799aec32c39d"
}
}