Child Address Write
Child Address Write
This API provides endpoints for interacting with smart contracts on the blockchain. It allows for executing contract functions.
Request Body
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. |
POST
Child Address Write
Documentation Index
Fetch the complete documentation index at: https://docs.blockradar.co/llms.txt
Use this file to discover all available pages before exploring further.
Batch Operations
This endpoint supports batch operations, allowing you to execute multiple contract write operations from a specific child address in a single API call.Batch Request Format
To execute multiple writes, use thecalls array:
Batch Response Format
Batch responses includesuccess and errors arrays:
Batch Call Item Schema
| 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 |
Error Handling
Batch operations use a partial success pattern:- Operations are executed sequentially
- A failure in one operation does not stop subsequent operations
- Check both
successanderrorsarrays to determine overall result
Validation Rules
| Rule | Value |
|---|---|
| Max batch size | 20 operations |
| Min batch size | 1 operation |
| 2FA required | Yes |
Use Cases
- Approve + Deposit: Approve token spending then deposit in one call
- Multi-step transactions: Chain multiple contract calls for DeFi operations
- Protocol interactions: Execute complex protocol interactions atomically
Authorizations
Path Parameters
Example:
"YOUR_WALLET_ID"
Example:
"ADDRESS_ID"
Body
application/json
Example:
[
{
"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"
]
}
]
