Skip to main content

Endpoints


POST /spicedeposit

Record a deposit (add balance) or withdrawal (subtract balance) after on-chain verification.

Request Body

Response

Success (200)
Error (400)

Verification

For deposits (isDeposit: true), the API verifies the transaction on-chain by:
  1. Fetching the transaction receipt
  2. Verifying deposit events match the claimed amount
  3. 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)
The tokens object is structured as:
  • Key (outer): Chain ID as string
  • Key (inner): Token contract address
  • Value: Balance amount as string (in wei)

Example

Response Fields