/ DEVELOPERS / API / ETH_GETCODE

eth_getCode

Get the contract bytecode at an address, or '0x' for EOAs. dApps use the empty response to detect 'this is a wallet, not a contract'.

eth_getCode

Get the contract bytecode at an address, or '0x' for EOAs. dApps use the empty response to detect 'this is a wallet, not a contract'.

eth_*category: contractreturns: hex bytes
Share link

Parameters

valid

Address

Block tag

Response

Press Send Request to see a response.

Copy as

curl -X POST '/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xe20E4bE36144aF17eb87509077D02F8C38423Bf7","latest"],"id":1}'