Get Gas Price Estimate
POST/transactions/get-gas-price
Returns an estimated network fee for a transaction before committing to it.
string
required
The blockchain to estimate fees for (e.g.
"ethereum", "solana", "polygon").string
Fee priority:
"low", "medium", or "high". Defaults to "low".string
Estimated transaction value in USD. Used to calculate proportional fees on some chains.
string
Asset ObjectId for context-aware fee estimation.
string
Token symbol for context-aware fee estimation (e.g.
"USDC").cURL
Response
Send Funds
POST/transactions/send-funds
Initiates an outbound crypto transfer. An idempotency key is automatically generated to prevent duplicate transactions.
string
required
The MongoDB ObjectId of the account that owns the source asset.
string
required
The MongoDB ObjectId of the asset (wallet) to send from.
string
required
The recipient’s blockchain address.
number
required
Amount to send, in the token’s native units (e.g.
100 for 100 USDC).string
required
Token ticker / short name (e.g.
"ETH", "USDC", "SOL"). Must match the asset record.string
required
Blockchain network (e.g.
"ethereum", "solana", "polygon").string
required
Transaction category:
"personal", "business", "payment", "auto-forward", "other", etc.string
Gas priority:
"low", "medium", "high". Defaults to "medium".string
Optional human-readable note.
boolean
Pay gas from the wallet’s own native balance. Only for native token assets. Defaults to
false.Response
Idempotency
Supply anIdempotency-Key header to prevent duplicate transactions on retry. If the same key is submitted again by the same user, the original response is returned instead of creating a new transaction. Without a key, no deduplication is applied. Keys expire after 24 hours.
List Transactions
POST/transactions/get-transactions
Returns up to 100 transactions for the authenticated user, sorted by most recent. Use the filter parameters to narrow results.
string
Search by
transaction_id or transaction_hash (case-insensitive substring match).string
Filter by status:
pending, completed, failed.string
Filter by asset ObjectId or asset name substring.
string
Filter by transaction
type field (e.g. "USDC", "ETH").string
Filter by blockchain (e.g.
"ethereum", "solana").cURL
Response
Transaction Statuses
The
blockchain_status field tracks on-chain state separately:
Priority Levels
Gas Funding for Token Withdrawals
When withdrawing token assets (USDC, USDT, etc.) the sending wallet needs native currency for gas. Yativo handles this automatically:- User Gas Station configured — gas is funded from the user’s own gas station wallet
- No user Gas Station — the platform Gas Station is used as a fallback
use_self_funding: true— only valid for native token assets (ETH, SOL, etc.); gas is deducted from the wallet’s own balance without a markup
gas_funding_markup in the response.
Ensure
amount is larger than platform_fee + gas_funding_markup. The API returns a 400 if the amount cannot cover total fees.
