Passer au contenu principal
POST
Master Wallet Write

Batch Operations

This endpoint supports batch operations, allowing you to execute multiple contract write operations in a single API call. This is particularly useful for common patterns like “approve + deposit”.

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

Autorisations

x-api-key
string
header
requis

Paramètres de chemin

walletId
string
requis
Exemple:

"{{walletId}}"

Corps

application/json
calls
object[]
Exemple:

Réponse

200 - application/json

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

data
object
message
string
Exemple:

"Contract write initiated successfully"

statusCode
number
Exemple:

200