readContractFunction
POST/api/v1/contracts/:id/read/
Read a function from a contract
Request
Path Parameters
id stringrequired
- application/json
Body
required
functionName stringrequired
args undefined[]required
property name* anyrequired
Responses
- 200
- 400
- 404
- 503
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [false
]
statusCode numberrequired
Possible values: [200
]
data required
{
"error": false,
"statusCode": 200,
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [400
]
code stringrequired
Possible values: [errors.contract.invalidArgs
]
data required
{
"error": true,
"statusCode": 400,
"code": "errors.contract.invalidArgs",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [404
]
code stringrequired
Possible values: [errors.contract.notFound
, errors.contract.notDeployed
, errors.contract.functionNotFound
]
data required
{
"error": true,
"statusCode": 404,
"code": "errors.contract.notFound",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [503
]
code stringrequired
Possible values: [errors.contract.failedToSend
]
data required
{
"error": true,
"statusCode": 503,
"code": "errors.contract.failedToSend",
"data": {}
}
Loading...