Links

getTransaction

Get the contents of a transaction by the given transaction hash
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
SUCCEEDED, REVERTED
finalityStatus
string
ACCEPTED_ON_L2, ACCEPTED_ON_L1
type
number
The type of the transaction: DECLARE, DEPLOY, DEPLOY_ACCOUNT, INVOKE, L1_HANDLER
version
number
​
actualFee
string
​
maxFee
string
DECLARE, DEPLOY_ACCOUNT, INVOKE
senderAddress
string
DECLARE, INVOKE_v1
signature
array[string]
DECLARE, DEPLOY_ACCOUNT, INVOKE
nonce
number
The number of transactions sent from the sender address: DECLARE_v1_v2, DEPLOY_ACCOUNT, INVOKE_v1, L1_HANDLER
newContractAddress
string
DEPLOY, DEPLOY_ACCOUNT
classHash
string
DECLARE, DEPLOY, DEPLOY_ACCOUNT
compiledClassHash
string
DECLARE_v2
constructorCallData
array[string]
DEPLOY, DEPLOY_ACCOUNT
contractAddressSalt
string
DEPLOY, DEPLOY_ACCOUNT
calldata
array[string]
INVOKE, L1_HANDLER
contractAddress
string
The address of the contract: INVOKE_v0, L1_HANDLER
entryPointSelector
string
INVOKE_v0, L1_HANDLER
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!
get
https://starkent-mainnet.blastapi.io/<project-id>/builder/getTransaction?
Get the contents of a transaction by the given transaction hash
Parameters
Query
transactionHash*
0x07749161c5a647d9935bbfd9f61b2694b6b5c5e4937ead39340a31371476a51e
Responses
200: OK
Expand for a detailed response example

Curl request example

curl -X GET https://starknet-mainnet.blastapi.io/<project-id>/builder/getTransaction?transactionHash=0x07749161c5a647d9935bbfd9f61b2694b6b5c5e4937ead39340a31371476a51e -H 'Content-Type: application/json'