HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetContractInfo

Queries and returns the complete information of a contract from the blockchain. Unlike the wallet/getcontract interface, this endpoint returns both the contract's bytecode and its runtime bytecode.

Returns

FieldTypeDescription
runtimecodestringRuntime bytecode of the contract.
smart_contractSmartContractSmart contract object. See GetContract for fields.
contract_stateContractStateState of the contract. See Dynamic Energy Model for details.
contract_state.energy_usageint64Total basic energy usage of the contract in the current maintenance cycle.
contract_state.energy_factorint64Energy factor of the contract.
contract_state.update_cycleint64Current maintenance cycle number.
Language
Click Try It! to start a request and see the response here!