kaia_getCode RPC Method
Parameters
address
string
REQUIRED
The address of the account being queried
BlockNumberOrHashOrTag
string
REQUIRED
The block number in integer, block hash or block tag(earliest and latest)
Returns
result
string
The code from the given address.
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_getCode",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0xcda6be802fa1f6861a5a574f5e349ea2b3f2d175",10"latest"11]12}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free