Endpoints
POST /spicedeposit
Record a deposit (add balance) or withdrawal (subtract balance) after on-chain verification.Request Body
Response
Success (200)Verification
For deposits (isDeposit: true), the API verifies the transaction on-chain by:
- Fetching the transaction receipt
- Verifying deposit events match the claimed amount
- Confirming the sender and token address
Withdrawal verification is currently pending while the exact withdrawal event signature is confirmed.
Example
GET /spicedeposit/:address
Get all token balances for a user across all chains.Path Parameters
Response
Success (200)tokens object is structured as:
- Key (outer): Chain ID as string
- Key (inner): Token contract address
- Value: Balance amount as string (in wei)
