Due is an API platform for moving money between crypto and fiat. It lets you send, receive, and convert funds using stablecoins and bank accounts. You use Due to automate on/off ramping and track transfers programmatically. If you want to bridge crypto and traditional finance, Due makes it simple.
The response contains a signables array, typically with two objects to sign (Permit and PayoutIntent).
Sign with Privy: For each object in the signables array, call the Privy API to get a signature or send the signables to the client side for signing. Use the eth_signTypedData_v4 method with the value object from each signable.
Report incorrect code
Copy
Ask AI
curl --request POST \ --url https://api.privy.io/v1/wallets/<wallet_id>/rpc \ -u "<your-privy-app-id>:<your-privy-app-secret>" \ --data '{ "method": "eth_signTypedData_v4", "params": { "typed_data": { // ... Paste the `value` object from a signable here ... } } }'
Send funds from the wallet: Use the Privy API to sign and submit the onchain transfer for the exact amount to the funding address received. The transfer will process automatically once funds are received.
This flow lets users convert fiat currency from a bank account into cryptocurrency through Due, which deposits crypto into the user wallet. It involves obtaining a transfer quote, creating the transfer, and providing the user with banking details to complete the transaction. Due handles the fiat-to-crypto conversion and settlement, requiring no additional signatures or manual intervention.
Provide banking details to the user: The API response will include bankingDetails (account number, routing number, etc.). Share these details with the user so they can initiate the fiat transfer from their bank account. Due handles the conversion and deposits the cryptocurrency into the recipient wallet automatically. No additional signatures are required.
Virtual accounts provide dedicated banking details (e.g., an IBAN) that automatically convert incoming fiat deposits to a specified stablecoin and send them to your wallet.
That’s it! Your app can now move value between fiat bank accounts and stablecoins using Privy embedded wallets and the Due Network API, with Due handling conversion and settlement.Here are some additional resources to help expand your integration: