zks_getTransactionDetails
Returns data about a transaction given by the transaction hash.
Parameters
hash
: [Required] The transaction hash encoded in hexadecimal format.
Response
Object containing the transaction data:
ethCommitTxHash
: The transaction hash of the commit transaction.ethExecuteTxHash
: The transaction hash of the execute transaction.ethProveTxHash
: The Ethereum transaction hash of the proof transaction.fee
: The fee amount for the transaction in hexadecimal format.gasPerPubdata
: The gas per public data for the transaction in hexadecimal format.initiatorAddress
: The address of the transaction initiator.isL1Originated
: A boolean value indicating whether the transaction originated from L1 network.receivedAt
: The timestamp when the transaction was received on the L2 network.status
: The status of the transaction.
Example
Replace YOUR-API-KEY
with an API key from your Infura dashboard.