Smart Contracts

Contract interactions and state queries

Smart contract interactions, bytecode validation, and contract state queries.

Validate contract bytecode

post
/api/contract/validate_bytecode

Validates WebAssembly contract bytecode for deployment

Body
string · binaryOptional

WebAssembly bytecode

Responses
200

Bytecode validation result

application/json
post
/api/contract/validate_bytecode
200

Bytecode validation result

Get contract state value

get
/api/contract/get/{contractAddress}/{key}

Retrieves a specific value from contract storage

Path parameters
contractAddressstringRequired

Base58-encoded contract address

keystringRequired

Storage key to retrieve

Responses
200

Contract state retrieved successfully

application/json
Responseobject

Contract state value (format varies)

get
/api/contract/get/{contractAddress}/{key}
200

Contract state retrieved successfully

Get token richlist

get
/api/contract/richlist

Retrieves the richlist showing largest token holders

Responses
200

Richlist retrieved successfully

application/json
get
/api/contract/richlist
200

Richlist retrieved successfully