This API provides endpoints for interacting with smart contracts on the blockchain. It allows for executing contract functions.
The request body should be in raw format and include the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | The address of the contract. |
| method | string | Yes | The method to be called on the contract. |
| parameters | array | Yes | An array of parameters to pass to the method. |
| abi | array | Yes | An array containing the ABI of the contract or method. |
calls array:
success and errors arrays:
| Parameter | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Smart contract address |
| method | string | Yes | Method name to call |
| parameters | array | No | Method parameters (defaults to []) |
| abi | array | Yes | Contract ABI |
| reference | string | No | Custom reference for tracking |
| metadata | object | No | Custom metadata |
success and errors arrays to determine overall result| Rule | Value |
|---|---|
| Max batch size | 20 operations |
| Min batch size | 1 operation |
| 2FA required | Yes |
"YOUR_WALLET_ID"
"ADDRESS_ID"
[
{
"abi": [
{
"constant": false,
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_value", "type": "uint256" }
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "transfer",
"parameters": [
"0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"10000"
]
},
{
"abi": [
{
"constant": false,
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_value", "type": "uint256" }
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
"method": "transfer",
"parameters": [
"0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"10000"
]
}
]