Enable customers globally to get paid, save and spend in USD or EUR by creating a virtual account and a wallet for each customer. Fiat deposits into the virtual account are converted to stablecoins and sent to the customer’s wallet.
Head over to dashboard.bridge.xyz. Once logged in, click on the “API Keys” tab on the top menu bar and generate a new API key.Bridge will make your API key available only once, so make sure to immediately copy and save the key safely and securely.
Your key is used to authenticate into our APIs and is highly sensitive. If it ever gets compromised, you can immediately revoke key access from our dashboard and generate a new key.
Create a customer ID for each user who needs a USD or EUR account. Customers will need to accept our terms of service and complete KYC.Check out this guide for a full in depth explanation on onboarding customers. The below example walks you through using a KYC link to onboard your customer.
Use the Virtual Accounts API to provision permanent fiat deposit addresses for your customers. You define the source currency for the account and configure the destination to be a Bridge wallet.Bridge handles the fiat-to-crypto conversion and sends the funds on-chain automatically.
Request
Copy
Ask AI
curl --location --request POST 'https://api.bridge.xyz/v0/customers/<customer_id>/virtual_accounts' \--header 'Content-Type: application/json' \--header 'Api-Key: <Api-Key>' \--header 'Idempotency-Key: <Unique Idempotency Key>' \--data-raw '{ # The source object specifies a USD virtual account. "source": { "currency": "usd", }, # The destination object instructs Bridge where to send the USD deposits to. # Bridge will automatically handle converting and sending USD to the crypto destination. "destination": { "payment_rail": "solana", "currency": "usdb", "bridge_wallet_id": "wallet_123" }, # You can specifcy an optional developer fee to monetize on transactions. "developer_fee_percent": "1.0" // 1%.}'
Once a Virtual Account is created, use the source_deposit_instructions object in the response to share the fiat deposit details with your customer. Funds sent to those details will be automatically converted and delivered to the crypto destination you specified.