Get contract constructor from contract ID

Returns Contract Constructor information of a specific blockchain environment with Contract Id as an identification value. Contract Id is a unique value that can identify a smart contract. Developers can check the Constructor information of the deployed smart contract through this information.

Response

Name

Type

Required

Description

contract_id

Number

True

A unique identifier of the smart contract.

state_mutability

String

True

A string with one of the following values.
pure : Function which does not read chain state.
view : Function which does not modify chain state.
nonpayable : Function which does not accept coin.
payable: Function which accepts coin.

contract_constructor_inputs

Object[]

True

The input value of the smart contract constructor.

contract_constructor_inputs object array

NameTypeRequiredDescription
contract_constructor_input_idNumberTrueA unique identifier of smart contract consturctor input.
nameStringTrueName of the parameter.
typeStringTrueType of input value.
internal_typeStringTrueType of input value used internally.
valueStringTrueValue of the parameter.
descriptionStringOptionalDescription of the parameter if exists.
Language
Click Try It! to start a request and see the response here!