http://api.dirtroad.dev/tools/web3/evm/eth-get-code
by dirtroad.dev
Retrieve the bytecode of a smart contract deployed at a specific address on a blockchain network. Returns the contract code as a hex string. Useful for contract verification, analyzing deployed contracts, and checking if an address contains contract code versus being an externally owned account.
developerbase-mainnetscheme: exact$0.0001
Payment Options
| Network | Price | Scheme | Pay To |
|---|---|---|---|
| base | 100 | exact | 0x71dc0Bc68e7f0e2c5aaCE661b0F3Fb995a80AAF4 |
Usage
cURL
curl -X GET "http://api.dirtroad.dev/tools/web3/evm/eth-get-code" \
-H "X-402-Payment: <payment_proof>"JavaScript
const response = await fetch("http://api.dirtroad.dev/tools/web3/evm/eth-get-code", {
headers: {
"X-402-Payment": paymentProof,
},
});
const data = await response.json();Details
- Type
- http
- x402 Version
- 1
- MIME Type
- application/json
- Last Seen
- 2/12/2026
- Indexed
- 2/12/2026
Facilitator
PayAI
https://facilitator.payai.network