⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

eth_getTransactionReceipt

Overview

Returns the transaction receipt, including status, gas used, and logs.

Movement-Specific Considerations

  • Finality is fast; receipts appear shortly after broadcast.
  • Log/event schema matches Ethereum.

Parameters

NameTypeRequiredDescription
txHash0x-hexYesTransaction hash

Returns

Receipt object or null if not yet available.

Code Examples

cURL

curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x<txHash>"],"id":1}'

Ethers.js v6

import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const r = await provider.send('eth_getTransactionReceipt', ['0x<txHash>']);
console.log(r);

Web3.js

import Web3 from 'web3';
const web3 = new Web3('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const r = await web3.eth.getTransactionReceipt('0x<txHash>');
console.log(r);

viem

import { createPublicClient, http } from 'viem';

const movement = {
id: 3073,
name: 'Movement',
nativeCurrency: { name: 'MOVE', symbol: 'MOVE', decimals: 18 },
rpcUrls: { default: { http: ['https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1'] } },
} as const;

const client = createPublicClient({
chain: movement,
transport: http('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1'),
});

const receipt = await client.getTransactionReceipt({ hash: '0x<txHash>' });
console.log(receipt);

Move Equivalent

Use /v1/transactions/by_hash/{hash} to inspect Move transaction results and events.

Common Errors

  • null: transaction not yet included; poll with backoff.