eth_getTransactionReceipt

EthereumC1

Returns the receipt for a mined transaction: status, gas used, contract address (for deployments) and emitted logs. Null while the transaction is still pending.

Endpoint
POST https://api.1st-node.com/v1/ethereum/rpc

Parameters

NameTypeDescription
hashDATA, 32 bytesTransaction hash.

Returns

Object — the receipt, or null if pending/unknown.

Request

curl https://api.1st-node.com/v1/ethereum/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getTransactionReceipt",
  "params": ["0x88df…"]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getTransactionReceipt",
  "params": ["0x88df…"]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": { "status": "0x1", "gasUsed": "0x5208", "logs": [] }
}
More transactions methods on Ethereum

Ethereum API

常见问题

How do I check if a tx succeeded?

The receipt's status field is "0x1" for success and "0x0" for revert.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥