eth_getCode - Xlayer

Xlayer API - Returns code at a given address. This method can be used to distinguish between contract addresses and wallet addresses.

Path Params
string
required
Body Params
string
required
Defaults to 2.0
string
enum
required
Defaults to eth_getBalance
Allowed:
params
array of strings
required
length between 2 and 3

For getBalance/getCode: [address, blockTag]. For getStorageAt: [address, position, blockTag].

params*
int32
required
Defaults to 0
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json