EXAMPLES
Get a receipt by transaction hash. This one is from a transaction on the Ethereum mainnet, sending 1 DAI to vitalik.eth:
cast receipt 0x96164ff7b1f48641ed2168b18c1213dbe0ce2504f870a1187ed8cd2df576bae1 --rpc-url https://eth.llamarpc.com
blockHash 0xc6455167b00399dfbbc0335ccfe465d789dd17d3ad2e091be7575cd45f5105a0
blockNumber 21027977
contractAddress
cumulativeGasUsed 9740548
effectiveGasPrice 6103491361
from 0x498098ca1b7447fC5035f95B80be97eE16F82597
gasUsed 34706
logs [{
"address":"0x6b175474e89094c44da98b954eedeac495271d0f",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000498098ca1b7447fc5035f95b80be97ee16f82597",
"0x000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
],
"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
"blockHash":"0xc6455167b00399dfbbc0335ccfe465d789dd17d3ad2e091be7575cd45f5105a0",
"blockNumber":"0x140dc89",
"blockTimestamp":"0x6718dd53",
"transactionHash":"0x96164ff7b1f48641ed2168b18c1213dbe0ce2504f870a1187ed8cd2df576bae1",
"transactionIndex":"0x72",
"logIndex":"0x10e",
"removed":false
}]
logsBloom 0x00000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000008200000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000010000000000000004000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000002000000000000000000000000000000000000800000000000000000000000000000010000000000000000000000
root
status 1 (success)
transactionHash 0x96164ff7b1f48641ed2168b18c1213dbe0ce2504f870a1187ed8cd2df576bae1
transactionIndex 114
type 2
blobGasPrice
blobGasUsed
authorizationList
to 0x6B175474E89094C44Da98b954EedeAC495271d0F
Get a specific field from the receipt. In this case, the gasUsed:
cast receipt 0x96164ff7b1f48641ed2168b18c1213dbe0ce2504f870a1187ed8cd2df576bae1 gasUsed --rpc-url https://eth.llamarpc.com
34706
Get a block number from the receipt:
cast receipt 0x96164ff7b1f48641ed2168b18c1213dbe0ce2504f870a1187ed8cd2df576bae1 blockNumber --rpc-url https://eth.llamarpc.com
21027977