Contracts

Get Contract ABI for Verified contract source code

Returns the contract ABI for the verified contract source code.

GET https://testnetapi.metadium.com/v1/contracts/{contract_hash}/abi
api-key: Your API Key

Query Parameters

Parameter

Description

contract_hash

type: String

value: Address of contract

required: true


Get Contract Source Code for Verified Contract Source Code

Returns the contract source code for the verified contract source code.

GET https://testnetapi.metadium.com/v1/contracts/0x9afffe2525f25515c127c42ca18dacc5b331995a/code
api-key: Your API Key

Query Parameters

Parameter

Description

contract_hash

type: String

value: Address of contract

required: true


Verify Contract Source Code

Returns verification results for contract source code.

Query Parameters

Parameter

Description

contract_hash

type: String

value: Address of contract

required: true

contract_name

type: String

value: Name of contract

required: true

compiler

type: String

value: Solidity compiler version

required: true

runs_optimizer

type: Integer

value: Value of time which running optimizer

required: true

optimization_enabled

type: Integer

value: Identify if optimization is enable or not (1: enable, Other number: not)

required: true

contract_source

type: String

value: Solidity contract code(base64 encoding)

required: true

constructor_arguments

type: String

value: Arguments of constructor

required: true

evm_version

type: String

value: Evm version used when compiling

required: false

libraries

type: List<Object>

value: Library list used for the contract

required: false

Last updated