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

Example

Request

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

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": "68c474287b76192cd0158fcc9de95f666b270a190d3e42aa2094dd4f766ff89f",
"script": "CiAgICAgICAgICAgICAgICBpbXBvcnQgTE5WQ1QgZnJvbSAweDFlM2M3OGM2ZDU4MDI3M2IKICAgICAgICAgICAgICAgIGltcG9ydCBOb25GdW5naWJsZVRva2VuIGZyb20gMHgxZD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9yYWdlUGF0aCkKICAgICAgICAgICAgICAgICAgICAgICAgbG9nKCJDYXBhYmlsaXR5IGNyZWF0ZWQiKQoKICAgICAgICAgICAgICAgICAgICAgICAgLy8gZG8gbm90IGFkZCBiZWxvdywgYXMgeW91IGNhbm5vdCBjcmVhdGUgcmVzb3VyY2UgdHlwZSBvdXRzaWRlIG9mIGNvbnRhaW5pbmcgY29udHJhY3QgKHRocm93cyBlcnJvcikKICAgICAgICAgICAgICAgICAgICAgICAgLy8gYWNjdC5zYXZlKDwtY3JlYXRlIExOVkNULk5GVE1pbnRlcigpLCB0bzogTE5WQ1QuTWludGVyU3RvcmFnZVBhdGgpCiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICA=",
"arguments": [],
"reference_block_id": "06b8b564464b562fc48ce50245f02843831e9234cbaa0aadd1f4c251830ea462",
"gas_limit": "100",
"payer": "b8c4eaae63469796",
"proposal_key": {
"address": "b8c4eaae63469796",
"key_index": "0",
"sequence_number": "4"
},
"authorizers": [
"b8c4eaae63469796"
],
"payload_signatures": [],
"envelope_signatures": [
{
"address": "b8c4eaae63469796",
"key_index": "0",
"signature": "OJucJiOnxHfdj9VNtZEEG2qNn5WUr1iuv0vAdOFvdSM5Y7Lwsr7r6T8f4FnSaU1N6GHK6eTOln+KSa+uGXywTg=="
}
],
"_expandable": {
"result": "/v1/transaction_results/68c474287b76192cd0158fcc9de95f666b270a190d3e42aa2094dd4f766ff89f"
},
"_links": {
"_self": "/v1/transactions/68c474287b76192cd0158fcc9de95f666b270a190d3e42aa2094dd4f766ff89f"
}
}