get https://ag.eqhub.eqbr.com/api/v2/contracts//constructor
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
Name | Type | Required | Description |
---|---|---|---|
contract_constructor_input_id | Number | True | A unique identifier of smart contract consturctor input. |
name | String | True | Name of the parameter. |
type | String | True | Type of input value. |
internal_type | String | True | Type of input value used internally. |
value | String | True | Value of the parameter. |
description | String | Optional | Description of the parameter if exists. |