Skip to main content

ots_hasCode RPC Method - Otterscan

Checks if an Ethereum address contains a deployed code.

Updated on
May 12, 2025

ots_hasCode RPC Method - Otterscan

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
Response
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free