跳转到主要内容
POST
Child Address Write

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 the calls array:

Batch Response Format

Batch responses include success and errors arrays:

Batch Call Item Schema

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 success and errors arrays to determine overall result

Validation Rules

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

授权

x-api-key
string
header
必填

路径参数

walletId
string
必填
示例:

"YOUR_WALLET_ID"

addressId
string
必填
示例:

"ADDRESS_ID"

请求体

application/json
calls
object[]
示例:

响应

200 - application/json

Ethereum / Tron / Ethereum (Batch) / Tron (Batch)

data
object
message
string
示例:

"Contract write initiated successfully"

statusCode
number
示例:

200