Contents

eth_getCode RPC method

Parameters:

  1. Address - The address to check for code.

Returns:

  1. result - String value of the compiled bytecode.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getCode","params":["0x5B56438000bAc5ed2c6E0c1EcFF4354aBfFaf889","latest"],"id":1,"jsonrpc":"2.0"}'
Ready to try QuickNode? Start your 7-day free trial