Search
⌘K
Linea
Methods
debug_getBadBlocks
debug_getRawBlock
debug_getRawHeader
debug_getRawReceipts
debug_getRawTransaction
debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceCall
debug_traceTransaction
eth_accounts
eth_blobBaseFee
eth_blockNumber
eth_call
eth_chainId
eth_coinbase
eth_createAccessList
eth_estimateGas
eth_feeHistory
eth_gasPrice
eth_getBalance
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockReceipts
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getCode
eth_getFilterChanges
eth_getFilterLogs
eth_getLogs
eth_getProof
eth_getStorageAt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_hashrate
eth_maxPriorityFeePerGas
eth_mining
eth_newBlockFilter
eth_newFilter
eth_newPendingTransactionFilter
eth_protocolVersion
eth_sendRawTransaction
eth_sendTransaction
eth_sign
eth_signTransaction
eth_simulateV1
eth_subscribe
eth_syncing
eth_uninstallFilter
eth_unsubscribe
net_listening
net_peerCount
net_version
trace_block
trace_call
trace_callMany
trace_filter
trace_get
trace_rawTransaction
trace_replayBlockTransactions
trace_replayTransaction
trace_transaction
txpool_content
web3_clientVersion
web3_sha3
Docs·APIs·Web3 RPC API·Linea·Methods·eth_getTransactionReceipt

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

https://api.1inch.com/web3/59144

Parameters

Transaction hash (required)

Transaction hash
* string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
string
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/59144', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_getTransactionReceipt',
    params: ['string'],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Receipt information

Receipt information
any
oneOf[0]
null
oneOf[1]
object
type
string
transactionHash
* string
transactionIndex
* string
blockHash
* string
blockNumber
* string
from
* string
to
any
oneOf[0]
null
oneOf[1]
string
cumulativeGasUsed
* string
gasUsed
* string
blobGasUsed
string
contractAddress
any
oneOf[0]
string
oneOf[1]
null
logs
* array
items
object
removed
boolean
logIndex
string
transactionIndex
string
transactionHash
* string
blockHash
string
blockNumber
string
address
string
data
string
topics
array
items
string
additionalProperties
none
logsBloom
* string
root
string
status
string
effectiveGasPrice
* string
blobGasPrice
string
additionalProperties
none
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "blockHash": "0xe7212a92cfb9b06addc80dec2a0dfae9ea94fd344efeb157c41e12994fcad60a",
  "blockNumber": "0x50",
  "contractAddress": null,
  "cumulativeGasUsed": "0x5208",
  "from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",
  "gasUsed": "0x5208",
  "blobGasUsed": "0x20000",
  "effectiveGasPrice": "0x1",
  "blobGasPrice": "0x3",
  "logs": [],
  "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "status": "0x1",
  "to": "0xf17f52151ebef6c7334fad080c5704d77216b732",
  "transactionHash": "0xc00e97af59c6f88de163306935f7682af1a34c67245e414537d02e422815efc3",
  "transactionIndex": "0x0"
}

Did you find what you need?