eth_getTransactionByHash

AvalancheC1

Returns the transaction matching the given hash, or null if it is unknown or still pending propagation.

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

Parameters

NameTypeDescription
hashDATA, 32 bytesTransaction hash.

Returns

Object — the transaction, or null if not found.

Request

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

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": { "hash": "0x88df…", "from": "0x…", "to": "0x…", "value": "0x0" }
}
More transactions methods on Avalanche

Avalanche API

Пополнили, получили ключ, запустили.

Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.

Получить API-ключ