Skip to main content
Queries a contract’s information from the blockchain. The difference from the wallet/getcontract interface is that this interface returns not only the bytecode but also the runtime bytecode of the contract. Compared with bytecode, runtime bytecode does not contain constructor and constructor parameter information. 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