Comment on page

Instant Sell

You can sell your crypto for fiat which gets instantly paid to bank accounts. To do this, Make a POST request to the following endpoint.
https://api.localramp.co/v1/transaction/sell/initiate
The request takes this as the body
{
from_currency: "BTC",
to_currency: "NGN",
from_amount: "0.34928456",
destination_type: "bank_account",
account_number: "0123456789",
bank_code: "000",
}
With the following header
x-auth-token: <SECRET_KEY>
If the API call is successful, LocalRamp returns the following response:
{
"status": "success",
"data": {
"reference": "SELL_hDUkDSE36MHkds79",
"account_name": "RAJI JOHNSON",
"bank_name": "UNITED BANK"
}
}
Store the reference returned which would be used to verify the transaction.