https://api.brdg.now/v1 and no API key is needed. Amounts are strings in the token’s smallest unit: USDC has 6 decimals, so 100000000 is 100 USDC.
1
2
Get a quote
Send the route, the tokens, the amount and both wallets. The response (shortened here) contains the best route, the fastest route and every venue that answered:
recipient is required here because Solana addresses differ from EVM ones.Every
amountOutAtomic already has the platform fee taken off. The full response is documented under Get quote.3
Build the transaction
Send the
decisionId from the quote. BRDG builds best unless you pass a quoteId to pick another quote, such as the one bestByTime names.steps lists every transaction to sign, in order. expectedOutAtomic matches the amountOutAtomic you were quoted. From here on, transferId identifies the transfer. Building the same decision again returns the same steps.4
Sign and submit
Have the user’s wallet sign each step, in order. On EVM, the wallet sets the nonce and gas (BRDG decodes the transaction and compares it with the steps it built. If they do not match, the request is refused and nothing is broadcast.
gasLimit is included when the venue provides one). On Solana, sign serializedTx exactly as returned.Then either send the signed transaction for BRDG to broadcast, or report the hash of a transaction the wallet already sent:5
Track
PENDING_SIGNATURE, SUBMITTED and PENDING to COMPLETED. It is finished once status is COMPLETED, PARTIAL, REFUNDED, FAILED or ABANDONED. Poll the endpoint, or use waitForTransfer in the SDK. Track a transfer explains each status.Next steps
Ranking
How the best route is chosen.
Fees
What a transfer costs.
Errors
Error codes and how to handle them.