getTransaction
The getTransaction method provides developers with a powerful tool to efficiently access and retrieve detailed information about specific transactions on the blockchain. By specifying the transaction hash, you can gain valuable insights into the content and characteristics of individual transactions, empowering developers to analyze and monitor blockchain activity effectively.
How to use getTransaction method ?
Below, you'll find an in-depth guide that provides a comprehensive explanation of how to utilize the getTransaction Builder API method effectively using Blast.
Parameters
Below, you can find the query parameters accepted by the method.
Field | Type | Description |
---|---|---|
transactionHash | string | The hash of the transaction |
Returns
Discover an insightful explanation of the returned parameters here, offering a deep understanding of their significance and implications.
Field | Type | Description |
---|---|---|
transactionHash | string | The hash of the transaction |
transactionIndex | number | The index of the transaction |
blockHash | string | The hash of the block containing the transaction |
blockNumber | number | The height of the block containing the transaction |
blockTimestamp | string | The timestamp of the block in which the transfer transaction was executed |
executionStatus | string |
|
finalityStatus | string |
|
type | number | The type of the transaction: |
version | number | |
actualFee | string | |
maxFee | string |
|
senderAddress | string |
|
signature | array[string] |
|
nonce | number | The number of transactions sent from the sender address:
|
newContractAddress | string |
|
classHash | string |
|
compiledClassHash | string | DECLARE_v2 |
constructorCallData | array[string] |
|
contractAddressSalt | string |
|
calldata | array[string] |
|
contractAddress | string | The address of the contract: |
entryPointSelector | string |
|
events | array[object] | Array of Event objects |
fromAddress | string | The address executing the transaction |
keys | array[string] | |
data | array[string] | |
messagesSent | array[object] | Array of Message objects |
fromAddress | string | The address executing the transaction |
toAddress | string | The address on the receiving end of the transaction |
payload | array[strings[ | |
executionResources | array[object] | |
bitwiseBuiltinApplications | number | |
ecOpBuiltinApplications | number | |
ecdsaBuiltinApplicationsn | number | |
keccakBuiltinApplications | number | |
memoryHoles | number | |
pedersenBuiltinApplications | number | |
poseidonBuiltinApplications | number | |
rangeCheckBuiltinApplications | number | |
steps | number | |
revertReason | string |
Example Request and Result for getTransaction
The example in this section uses a non-existing project id.
Make sure you replace it with your Starknet endpoint when issuing the Builder API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Curl request example
curl -X GET https://starknet-mainnet.blastapi.io/<project-id>/builder/getTransaction?transactionHash=0x07749161c5a647d9935bbfd9f61b2694b6b5c5e4937ead39340a31371476a51e -H 'Content-Type: application/json'