Skip to main content

eth_getCode RPC Method

Loading...

Updated on
Mar 18, 2026

eth_getCode RPC Method

Parameters

address
string
REQUIRED
Loading...
blockNumber
string
REQUIRED
Loading...

Returns

result
string
Loading...
Request
1
curl -X POST "https://docs-demo.robinhood-testnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_getCode",
6
"params": [
7
"0xcFED52fa50f36A055939C2EF1e887Aa127E44445",
8
"latest"
9
],
10
"id": 1
11
}'
1
curl -X POST "https://docs-demo.robinhood-testnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_getCode",
6
"params": [
7
"0xcFED52fa50f36A055939C2EF1e887Aa127E44445",
8
"latest"
9
],
10
"id": 1
11
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x60806040526004361061008f575f3560e01c8063715018a611610058578063715018a6146101675780638371b8891461017d5780638da5cb5b146101a75780639ead7222146101d1578063f2fde38b1461020d5761008f565b80623d47901461009357806314c7763b146100cf5780632cd76758146100f9578063342b7e7114610123578063433ede471461014b575b5f5ffd5b34801561009e575f5ffd5b506100b960048036038101906100b49190610944565b610235565b6040516100c69190610987565b60405180910390f35b3480156100da575f5ffd5b506100e361024a565b6040516100f09190610987565b60405180910390f3..."
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x60806040526004361061008f575f3560e01c8063715018a611610058578063715018a6146101675780638371b8891461017d5780638da5cb5b146101a75780639ead7222146101d1578063f2fde38b1461020d5761008f565b80623d47901461009357806314c7763b146100cf5780632cd76758146100f9578063342b7e7114610123578063433ede471461014b575b5f5ffd5b34801561009e575f5ffd5b506100b960048036038101906100b49190610944565b610235565b6040516100c69190610987565b60405180910390f35b3480156100da575f5ffd5b506100e361024a565b6040516100f09190610987565b60405180910390f3..."
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free