Test this flow in the Sandbox at
https://crypto-sandbox.yativo.com/api/. Sandbox transactions are simulated — no real funds move.Get a gas fee estimate
Before sending, retrieve the current gas fee estimate for the target chain. This lets you show users an accurate fee breakdown and choose a priority level.Response:
Priority levels
| Priority | Speed | Use case |
|---|---|---|
slow | 1–3 min | Non-urgent payouts, batch processing |
medium | 15–30 sec | Default for most use cases |
fast | 5–15 sec | Time-sensitive transactions |
Send funds with an idempotency key
Use Response:
POST /transactions/send-funds to initiate the transfer. Always include an Idempotency-Key header to safely retry without double-spending.Idempotency keys
An idempotency key is a unique string you generate and attach to a request. If the request fails or times out, you can safely retry with the same key — Yativo will return the original response instead of creating a duplicate transaction.Best practices:- Derive the key from your internal record ID (e.g.,
payout_${payoutId}) - Keys must be unique per operation type — reusing a key for a different transfer will return the original transaction
- Keys expire after 24 hours
Poll for transaction status
You can poll for the current transaction status using Response (confirmed):
POST /transactions/get-transaction.Transaction statuses
| Status | Description |
|---|---|
pending | Submitted, waiting to be broadcast |
broadcasting | Being submitted to the network |
mempool | In the mempool, awaiting inclusion in a block |
confirmed | Included in a block with sufficient confirmations |
failed | Transaction failed (see failureReason) |
Common Errors
| Error | Cause | Fix |
|---|---|---|
INSUFFICIENT_BALANCE | Account balance too low | Check balance before sending |
INVALID_ADDRESS | Malformed or wrong-network address | Validate address for the target chain |
DUPLICATE_IDEMPOTENCY_KEY | Key reused for different parameters | Use a unique key per unique transfer |
AMOUNT_TOO_SMALL | Amount below chain minimum | Check minimum transfer amounts per chain |
Next Steps
- See Webhook Integration for the full
transaction.confirmedevent payload. - Use Swap Tokens to exchange assets before sending.

