GetContract

Queries a contract's information from the blockchain, including the bytecode of the contract, ABI, configuration parameters, etc.

This method will use 30 Compute Units.


Parameters

  • value - String - Required - Contract address, converted to a hex string.

  • visible - Boolean - Optional. Specifies whether the address is in Base58 format (default: false).

Returns

For a detailed explanation of the fields, please refer to Contract Deployment and Invocation.

Field
Type
Description

origin_address

string

Contract creator address

contract_address

string

Contract address

abi

ABI

ABI

bytecode

string

Bytecode

call_value

int64

The amount of TRX passed into the contract when deploying the contract

consume_user_resource_percent

int64

Proportion of user energy consumption

name

string

contract name

origin_energy_limit

int64

Each transaction is allowed to consume the maximum energy of the contract creator

code_hash

string

code hash

Last updated

Was this helpful?