Save your Nigerian bank account as a settlement instruction, then sell USDC from your wallet and have Gravv pay the naira to that account.
6 min read
Use this recipe to save your Nigerian bank account as a settlement instruction, then sell USDC from your wallet and have Gravv pay the naira to that account. A settlement instruction is a saved record of where Gravv sends the currency you buy.
Who it is for. A crypto business that holds USDC on Gravv and needs naira in its own Nigerian bank account to pay local costs.
Status. Available once Gravv sets an OTC rate for your business.
Money example
Your treasury wallet holds 5,000 USDC.
1.
You save your bank account once as an NGN settlement instruction. This tells Gravv where to send your naira.
2.
You get a quote to sell 1,000 USDC for NGN at a rate of 1,495.5. You receive 1,495,500 NGN.
3.
You place the order with the instruction as the destination. 1,000 USDC leaves your wallet at once.
4.
Gravv pays 1,495,500 NGN to your bank account, and the order status becomes completed.
Before you start
•
A USDC wallet or USDC account that belongs to your business and holds at least the amount you sell.
•
An active settlement instruction whose currency is the currency you buy, NGN. You can create it in step 1.
•
If you use a scoped key, it needs fx:read, fx:order_create, and payee:create to create the instruction.
Find out what is required
First list your NGN instructions, so you can reuse one if it exists. The currency filter is exact and case-sensitive.
If a field is missing, the create call names it in the error. The order call checks that the instruction belongs to your business, is active, and is in the currency you buy.
Poll GET /v1/fx/orders/6b65a6a4-8b81-48f6-b38a-088ca65ed389 until the order status is completed. Then use the order's destination_amount and client_reference to match the naira payment on your bank statement.
What can go wrong
Response
Why
Fix
400 instruction type must be "bank_account" or "crypto_wallet": invalid input
instruction_type is missing or not in lower case
Send it in lower case
400 account name is required: invalid input / currency is required: invalid input
A required field is missing
Add the missing field
400 account number is required for bank accounts: invalid input / bank name is required for bank accounts: invalid input
A bank instruction is missing one or both of these fields
Add both
400 bad destination: [400] invalid order destination
The id is a payee id, an unknown or deleted instruction, another business's instruction, or an instruction that is not in the currency you buy
Use an active instruction whose currency is the quote's to_currency
400 invalid order destination
destination.type is ssi, account or wallet, or the destination has no id
None. Gravv sends no webhooks for settlement instructions or FX orders.
Testing in sandbox
Settlement instructions work the same in sandbox as in live, because they are records only. To place an order, your sandbox business needs an OTC rate. Without one, the quote call returns quote currency pair is not supported. No real bank payment happens in sandbox.