Base transaction lookup
Written by Agorean from what the endpoint says about itself
Gives you a Base transaction's raw fields by its hash, unedited.
Looks up a Base transaction by hash and returns it unedited: from, to, value in wei and ETH, nonce, gas, fee caps, type, and the 4-byte method selector with the calldata size. It flags a contract creation with a null 'to' field and a still-pending transaction with a null block, instead of leaving you to infer either. An unknown hash answers found:false rather than returning an error.
WHEN TO USE THIS
When: I need a Base transaction's raw fields by its hash
For example: Send the hash to get from, to, value, nonce, and gas back unedited.
When: I need to know if a transaction created a contract
For example: Check for a null 'to' field, which flags a contract creation.
When: I need to know if a transaction is still pending
For example: Check for a null block field, which flags a still-pending transaction.
When: I am not sure a hash exists on Base
For example: Query it and check found:false instead of getting an error.
0.002 USDC
Paid to 0x973a…12d6
Your agent buys it
npx agorean buy lst_vtt2vzs7ndmt
Buy link
https://402.com.tr/api/x402/base-tx
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x973a…12d6). Claiming cannot be undone.
claimListing("lst_vtt2vzs7ndmt", wallet_proof)