Transactions

Get transaction by hash

Changed on

Look up a transaction by its hash. This is the same hash that is returned by the API when submitting a transaction (see PendingTransaction).

When given a transaction hash, the server first looks for the transaction in storage (on-chain, committed). If no on-chain transaction is found, it looks the transaction up by hash in the mempool (pending, not yet committed).

To create a transaction hash by yourself, do the following:

  1. Hash message bytes: "RawTransaction" bytes + BCS bytes of Transaction.
  2. Apply hash algorithm SHA3-256 to the hash message bytes.
  3. Hex-encode the hash bytes with 0x prefix.
get/transactions/by_hash/{txn_hash}

Request

  • Base URL
    /v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /v1/transactions/by_hash/{txn_hash}
  • Auth
    none declared

Path parameters

txn_hashstring required

Hash of transaction to retrieve

Response

Transaction required(unresolved $ref)

Changes

    • breaking

      the mandatory response header X-APTOS-BLOCK-HEIGHT removed for the status 200

    • breaking

      the mandatory response header X-APTOS-CHAIN-ID removed for the status 200

    • breaking

      the mandatory response header X-APTOS-EPOCH removed for the status 200

    • breaking

      the mandatory response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 200

    • breaking

      the mandatory response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 200

    • breaking

      the mandatory response header X-APTOS-LEDGER-VERSION removed for the status 200

    • breaking

      the mandatory response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 200

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 400

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 403

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 404

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 410

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 500

    • warning

      the optional response header X-APTOS-BLOCK-HEIGHT removed for the status 503

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 400

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 403

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 404

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 410

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 500

    • warning

      the optional response header X-APTOS-CHAIN-ID removed for the status 503

    • warning

      the optional response header X-APTOS-CURSOR removed for the status 200

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 400

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 403

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 404

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 410

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 500

    • warning

      the optional response header X-APTOS-EPOCH removed for the status 503

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 200

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 400

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 403

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 404

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 410

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 500

    • warning

      the optional response header X-APTOS-GAS-USED removed for the status 503

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 400

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 403

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 404

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 410

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 500

    • warning

      the optional response header X-APTOS-LEDGER-OLDEST-VERSION removed for the status 503

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 400

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 403

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 404

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 410

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 500

    • warning

      the optional response header X-APTOS-LEDGER-TIMESTAMPUSEC removed for the status 503

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 400

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 403

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 404

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 410

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 500

    • warning

      the optional response header X-APTOS-LEDGER-VERSION removed for the status 503

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 400

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 403

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 404

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 410

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 500

    • warning

      the optional response header X-APTOS-OLDEST-BLOCK-HEIGHT removed for the status 503

    • breaking

      added to the //////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////////// response property oneOf list for the response status

    • breaking

      added to the ////////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////// response property oneOf list for the response status

    • breaking

      added to the ////////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////// response property oneOf list for the response status

    • breaking

      added to the //////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////////// response property oneOf list for the response status

    • breaking

      added to the ////////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////// response property oneOf list for the response status

    • breaking

      added to the ////////////////// response property oneOf list for the response status

    • breaking

      added to the ///////////////// response property oneOf list for the response status

    • info

      added abstract_signature discriminator mapping keys to the //////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the //////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ////////////////// response property for the response status

    • info

      added abstract_signature discriminator mapping keys to the ///////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the //////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the //////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ////////////////// response property for the response status

    • info

      removed abstraction_signature discriminator mapping keys from the ///////////////// response property for the response status

    • info

      removed from the //////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////////// response property oneOf list for the response status

    • info

      removed from the ////////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////// response property oneOf list for the response status

    • info

      removed from the ////////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////// response property oneOf list for the response status

    • info

      removed from the //////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////////// response property oneOf list for the response status

    • info

      removed from the ////////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////// response property oneOf list for the response status

    • info

      removed from the ////////////////// response property oneOf list for the response status

    • info

      removed from the ///////////////// response property oneOf list for the response status