---
title: "starknet_getTransactionByHash"
method: POST
path: "/{apiKey}"
---

# starknet_getTransactionByHash

`POST /{apiKey}`

The details and status of a submitted transaction.

## Path parameters

- `apiKey` string, required — For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.

## Request body

- object
  - `id` integer
  - `jsonrpc` string
  - `method` string
  - `params` string[]

## Response `200`

The details of a transaction by a given block id and index.

- object — The details and status of a submitted transaction.
  - `id` integer
  - `jsonrpc` string
  - `result` union
    - object — invokes a specific function in the desired contract (not necessarily an account)
      - `type` 'INVOKE', required
      - `max_fee` string, required — The maximal fee that can be charged for including the transaction
      - `version` '0x0' | '0x100000000000000000000000000000000', required — Version of the transaction scheme
      - `signature` string[], required
      - `contract_address` string, required — A field element. represented by at most 63 hex digits
      - `entry_point_selector` string, required — A field element. represented by at most 63 hex digits
      - `calldata` string[], required — The parameters passed to the function
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — initiates a transaction from a given account
      - `type` 'INVOKE', required
      - `sender_address` string, required — A field element. represented by at most 63 hex digits
      - `calldata` string[], required — The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)
      - `max_fee` string, required — A field element. represented by at most 63 hex digits
      - `version` '0x1' | '0x100000000000000000000000000000001', required — Version of the transaction scheme
      - `signature` string[], required
      - `nonce` string, required — A field element. represented by at most 63 hex digits
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — Initiates a transaction from a given account
      - `type` 'INVOKE', required
      - `sender_address` string, required — A field element. represented by at most 63 hex digits
      - `calldata` string[], required — The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)
      - `version` '0x3' | '0x100000000000000000000000000000003', required — Version of the transaction scheme
      - `signature` string[], required
      - `nonce` string, required — A field element. represented by at most 63 hex digits
      - `resource_bounds` object, required — resource bounds for the transaction execution
        - `l1_gas` object, required — The max amount and max price per unit of L1 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l1_data_gas` object, required — The max amount and max price per unit of L1 blob gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l2_gas` object, required — The max amount and max price per unit of L2 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
      - `tip` string, required — The tip for the transaction
      - `paymaster_data` string[], required — data needed to allow the paymaster to pay for the transaction in native tokens
      - `account_deployment_data` string[], required — data needed to deploy the account contract from which this tx will be initiated
      - `nonce_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's nonce (an account has a nonce per DA mode)
      - `fee_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's balance from which fee will be charged
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — a call to an l1_handler on an L2 contract induced by a message from L1
      - `transaction_hash` string, required — The hash of a Starknet transaction
      - `version` '0x0', required — Version of the transaction scheme
      - `type` 'L1_HANDLER', required
      - `nonce` string, required — The L1->L2 message nonce field of the SN Core L1 contract at the time the transaction was sent
      - `contract_address` string, required — A field element. represented by at most 63 hex digits
      - `entry_point_selector` string, required — A field element. represented by at most 63 hex digits
      - `calldata` string[], required — The parameters passed to the function
    - object — common properties of a transaction that is sent to the sequencer (but is not yet in a block)
      - `transaction_hash` string, required — The hash of a Starknet transaction
      - `max_fee` string, required — A field element. represented by at most 63 hex digits
      - `version` '0x1' | '0x100000000000000000000000000000001', required — Version of the transaction scheme
      - `signature` string[], required
      - `nonce` string, required — A field element. represented by at most 63 hex digits
      - `type` 'DECLARE', required
      - `sender_address` string, required — A field element. represented by at most 63 hex digits
      - `class_hash` string, required — A field element. represented by at most 63 hex digits
    - object
      - `type` 'DECLARE', required
      - `sender_address` string, required — A field element. represented by at most 63 hex digits
      - `compiled_class_hash` string, required — A field element. represented by at most 63 hex digits
      - `version` '0x3' | '0x100000000000000000000000000000003', required — Version of the transaction scheme
      - `signature` string[], required
      - `nonce` string, required — A field element. represented by at most 63 hex digits
      - `class_hash` string, required — A field element. represented by at most 63 hex digits
      - `resource_bounds` object, required — resource bounds for the transaction execution
        - `l1_gas` object, required — The max amount and max price per unit of L1 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l1_data_gas` object, required — The max amount and max price per unit of L1 blob gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l2_gas` object, required — The max amount and max price per unit of L2 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
      - `tip` string, required — the tip for the transaction
      - `paymaster_data` string[], required — data needed to allow the paymaster to pay for the transaction in native tokens
      - `account_deployment_data` string[], required — data needed to deploy the account contract from which this tx will be initiated
      - `nonce_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's nonce (an account has a nonce per DA mode)
      - `fee_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's balance from which fee will be charged
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions
      - `version` string, required — A field element. represented by at most 63 hex digits
      - `type` 'DEPLOY', required
      - `contract_address_salt` string, required — A field element. represented by at most 63 hex digits
      - `constructor_calldata` string[], required — The parameters passed to the constructor
      - `class_hash` string, required — A field element. represented by at most 63 hex digits
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — Deploys an account contract, charges fee from the pre-funded account addresses
      - `type` 'DEPLOY_ACCOUNT', required
      - `max_fee` string, required — A field element. represented by at most 63 hex digits
      - `version` '0x1' | '0x100000000000000000000000000000001', required — Version of the transaction scheme
      - `transaction_hash` string, required — The hash of a Starknet transaction
    - object — Deploys an account contract, charges fee from the pre-funded account addresses
      - `type` 'DEPLOY_ACCOUNT', required
      - `version` '0x3' | '0x100000000000000000000000000000003', required — Version of the transaction scheme
      - `signature` string[], required
      - `nonce` string, required — A field element. represented by at most 63 hex digits
      - `contract_address_salt` string, required — A field element. represented by at most 63 hex digits
      - `constructor_calldata` string[], required — The parameters passed to the constructor
      - `class_hash` string, required — A field element. represented by at most 63 hex digits
      - `resource_bounds` object, required — resource bounds for the transaction execution
        - `l1_gas` object, required — The max amount and max price per unit of L1 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l1_data_gas` object, required — The max amount and max price per unit of L1 blob gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
        - `l2_gas` object, required — The max amount and max price per unit of L2 gas used in this tx
          - `max_amount` string, required — the max amount of the resource that can be used in the tx
          - `max_price_per_unit` string, required — the max price per unit of this resource for this tx
      - `tip` string, required — the tip for the transaction
      - `paymaster_data` string[], required — data needed to allow the paymaster to pay for the transaction in native tokens
      - `nonce_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's nonce (an account has a nonce per DA mode)
      - `fee_data_availability_mode` 'L1' | 'L2', required — The storage domain of the account's balance from which fee will be charged
      - `transaction_hash` string, required — The hash of a Starknet transaction

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
