Register deposit intent
After completing the onchain SynapseCore.deposit() transaction, register the txHash to initiate balance indexing.
POST/api/v1/balance/deposit/intentWallet JWTIdempotent
For AI agents
Call after the onchain USDC deposit is confirmed. The gateway indexes the event and credits consumer_available_balance.
Requires: Valid JWT + confirmed onchain deposit transaction
Next: Call POST /balance/deposit/intents/:id/confirm
Generated OpenAPI reference
POST
/api/v1/balance/deposit/intentAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
[key: string]?any
Response Body
application/json
application/json
curl -X POST "https://api-staging.synapse-network.ai/api/v1/balance/deposit/intent" \ -H "Content-Type: application/json" \ -d '{ "tx_hash": "0xOnchainTransactionHash", "amount": 10 }'{
"intent": {
"id": "di_abc123",
"status": "pending",
"tx_hash": "0x..."
}
}{
"code": "DUPLICATE_TX_HASH",
"message": "This transaction hash has already been registered"
}