post https://api.infstones.com/theta/mainnet/
Returns information about a transaction for a given hash.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
TRANSACTION HASH | ✅ | String | Hash of a transaction. |
"params": [
"0x526f7c31b0b42e68e81c03cb775d4da20950f19469aa5c7ba1cd274e63516d1c"
]
Result
A transaction object, or null
when no transaction was found.
Result Fields
Key | Type | Detail |
---|---|---|
blockHash | String | Hash of the block where this transaction was in. null if the transaction is pending. |
blockNumber | String | A hex code of an integer that represents the block number where this transaction was in. null if the transaction is pending. |
from | String | Address the transaction is sent from. |
gas | String | A hex code of an integer that represents the gas provided by the sender. |
gasPrice | String | A hex code of an integer that represents the gas price provided by the sender in Wei. |
hash | String | Hash of the transaction, 32 Bytes. |
input | String | The data send along with the transaction. |
nonce | String | A hex code of an integer that represents the number of transactions made by the sender prior to this one. |
r | String | ECDSA signature r. |
s | String | ECDSA signature s. |
to | String | Address the transaction is directed to. null if it's a contract creation transaction. |
transactionIndex | String | A hex code of an integer that represents the transactions index position in the block. null if the transaction is pending. |
v | String | ECDSA recovery id. |
value | String | Value transferred in Wei. |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params": ["0x526f7c31b0b42e68e81c03cb775d4da20950f19469aa5c7ba1cd274e63516d1c"],"id":1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x52d417b7a1f082651811d142e0e79540e88c8024935d39572773acef7219a5d5",
"blockNumber": "0x128560b",
"from": "0x46647eeeff051dd371b57173433158db17dcc352",
"to": "0x42df72e781a92ffe281e35dd2eebcbde424b9d9e",
"gas": "0x213c2",
"gasPrice": "0x3a352944000",
"hash": "0x526f7c31b0b42e68e81c03cb775d4da20950f19469aa5c7ba1cd274e63516d1c",
"nonce": "0xce",
"input": "0x23b872dd00000000000000000000000046647eeeff051dd371b57173433158db17dcc352000000000000000000000000f59b5f54d1c4ed80669f94c0c443b53c3038ab9e000000000000000000000000000000000000000000000000000000000000004c",
"transactionIndex": "0x1",
"value": "0x0",
"v": "0x0",
"r": "0x97c9fbb26f2e6120cac9f44966ff67cc65504f6b4a2edaa04cee9b49cc526636",
"s": "0x26d75f1ac0cd4e508f951cf3c097fb79919c6de067527841f6fd98b8810696fd"
}
}