Marco Explorer API Library (0.0.19)
Download OpenAPI specification:Download
OpenApi for Marco Explorer API Library
callSmartContractSimulation
Execute a smart contract simulation. It includes the contract definition, method to be executed and its inputs
Request Body schema: application/json
Array of objects (ContractDefinition) | |
inputs | Array of strings |
methodName | string |
smartContractAddress | string |
Responses
Request samples
- Payload
Content type
application/json
{- "contractDefinition": "[{ 'type':'function', 'name':'foo', 'inputs': [{'name':'a','type':'uint256'}], 'outputs': [{'name':'b','type':'address'}] }]",
- "inputs": "[{'from':'0x1465238746523874652374652387', 'value': 10}]",
- "methodName": "string",
- "smartContractAddress": "string"
}
Response samples
- 200
Content type
application/json
"{'type': 'String.class', 'value': [{'to':'0x1234567890123456789012345678901234567891'}]}"
getReceiptForTransactionByLocator
Get a receipt of a transaction given its Transaction Resource Locator
query Parameters
locator required | string The transaction's locator |
Responses
Response samples
- 200
Content type
application/json
{- "locator": "string",
- "smartContractAddress": "string",
- "status": "succeeded"
}