📍ftm.getTransactionReceipt()

Description: Retrieves the receipt of a transaction using its hash.

Parameters

Name

Type

Description

hash

string

The hash of the transaction.

Returns

Type

Description

object

A transaction receipt object, or null if no receipt was found.

Response Object Structure

Field

Type

Description

transactionHash

string

Hash of the transaction.

transactionIndex

string (hex)

Index position of the transaction in the block.

from

string

Address of the sender.

to

string / null

Address of the receiver, or null for contract creation transactions.

blockHash

string

Hash of the block containing this transaction.

blockNumber

string (hex)

Block number where the transaction was included.

cumulativeGasUsed

integer

Total gas used when this transaction was executed in the block.

gasUsed

integer

Gas used by this specific transaction.

contractAddress

string / null

Contract address created (for contract creation), otherwise null.

logs

array

Array of log objects generated by this transaction.

logsBloom

string

Bloom filter for retrieving related logs.

value

string (hex)

Value transferred in Wei.

v

string (hex)

ECDSA recovery ID.

r

string

ECDSA signature r.

s

string

ECDSA signature s.

root

string (32 bytes)

Post-transaction state root (pre-Byzantium).

status

string (hex)

Transaction status (1 for success, 0 for failure).

Last updated