eth_getTransactionReceipt
PolygonC1Returns 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/polygon/rpcParameters
| Name | Type | Description |
|---|---|---|
| hash | DATA, 32 bytes | Transaction hash. |
Returns
Object — the receipt, or null if pending/unknown.
Request
curl https://api.1st-node.com/v1/polygon/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 Polygon
よくある質問
How do I check if a tx succeeded?
The receipt's status field is "0x1" for success and "0x0" for revert.
チャージして、キーを取得し、リリース。
セルフサーブ。暗号資産またはカードで支払い。クレジットで従量課金——重いプリミティブは高く、単純なものは安価。
APIキーを取得