ots_hasCode RPC Method
Parameters
address
string
REQUIRED
The Ethereum address for which the deployed code is to be checked
blockNumber
integer
REQUIRED
The block number at which the code presence will be checked or latest to check the latest state
Returns
result
boolean
It is true, if the address contains the bytecode, otherwise false
Request
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"ots_hasCode","params":["0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",17854438],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free