Flow of Funds
Refresher on how instant on-ramping works with Superbank’s API.
Pre-requisites
Before you begin, ensure you have:- A Superbank Developer account with API access
- A prefunded account with sufficient USDC balance
- Your API key.
On-Ramping
Step 1: Receive an instant on-ramping request
You user sends a real-time on-ramping request via your UI, or API. Persist their destination wallet address (destination.wallet_address).
Step 2: Create a Settlement Request
Create a settlement request by sending aPOST request to /v1/settlement-requests endpoint on Superbank’s API.
Request
cURL
Response
payment_instructions and settlement request id.
Step 3: Start on-ramping with your infrastructure provider
Use thepayment_instructions returned in the previous step as the on-ramping destination to request the deposit instructions from your infrastructure provider.
For example, here’s how to do it with Bridge as your infrastructure provider.
Request
cURL
Response
Step 4: Update settlement request status to FUNDS_SENT
Once the End-User has initated the payment using your infrastructure provider, update the settlement request status to FUNDS_SENT by sending the PUT request to /v1/settlement-requests/:id.
This triggers the instant settlement from your pre-funded wallet, to your User’s destination wallet.
Request
cURL
Response
Step 5: Instant settlement completed
Once you confirm the funds are sent via Step 4, Superbank moves USDC from your pre-funded wallet to the End-User’s wallet in real time. The End-User receives their USDC instantly (blockchain speed).Step 6: Update settlement request status to SETTLEMENT_COMPLETED
After T+X when the on-ramped transaction is completed, update the settlement request status to SETTLEMENT_COMPLETED and send the transaction hash back to Superbank by sending a PUT request to /v1/settlement-requests/:id .
Without the transaction hash, we will not be able to reconcile the payment with the settlement request you created.
Request
cURL