curl --request POST \
--url https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assetId": "ae455f23-3824-4125-baab-d158315cbcbd",
"amount": "100.00",
"currency": "NGN",
"paymentMethod": "bank_transfer",
"amountSide": "source",
"paymentMethodData": {
"accountNumber": "0123456789",
"accountName": "Ada Okafor",
"bankCode": "999"
},
"isGaslessWithdraw": false,
"provider": "example-provider"
}
'import requests
url = "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote"
payload = {
"assetId": "ae455f23-3824-4125-baab-d158315cbcbd",
"amount": "100.00",
"currency": "NGN",
"paymentMethod": "bank_transfer",
"amountSide": "source",
"paymentMethodData": {
"accountNumber": "0123456789",
"accountName": "Ada Okafor",
"bankCode": "999"
},
"isGaslessWithdraw": False,
"provider": "example-provider"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assetId: 'ae455f23-3824-4125-baab-d158315cbcbd',
amount: '100.00',
currency: 'NGN',
paymentMethod: 'bank_transfer',
amountSide: 'source',
paymentMethodData: {accountNumber: '0123456789', accountName: 'Ada Okafor', bankCode: '999'},
isGaslessWithdraw: false,
provider: 'example-provider'
})
};
fetch('https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assetId' => 'ae455f23-3824-4125-baab-d158315cbcbd',
'amount' => '100.00',
'currency' => 'NGN',
'paymentMethod' => 'bank_transfer',
'amountSide' => 'source',
'paymentMethodData' => [
'accountNumber' => '0123456789',
'accountName' => 'Ada Okafor',
'bankCode' => '999'
],
'isGaslessWithdraw' => false,
'provider' => 'example-provider'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote"
payload := strings.NewReader("{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Successful",
"data": {
"debitAmount": "101.50",
"minAmount": "10.00",
"networkFee": "0.00006779052",
"networkFeeInUSD": "0.14",
"estimatedArrivalTime": 60,
"transactionFee": "1.50",
"nativeBalance": "0.000929309612767174",
"nativeBalanceInUSD": "1.97"
}
}Master Wallet Get Quote
curl --request POST \
--url https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assetId": "ae455f23-3824-4125-baab-d158315cbcbd",
"amount": "100.00",
"currency": "NGN",
"paymentMethod": "bank_transfer",
"amountSide": "source",
"paymentMethodData": {
"accountNumber": "0123456789",
"accountName": "Ada Okafor",
"bankCode": "999"
},
"isGaslessWithdraw": false,
"provider": "example-provider"
}
'import requests
url = "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote"
payload = {
"assetId": "ae455f23-3824-4125-baab-d158315cbcbd",
"amount": "100.00",
"currency": "NGN",
"paymentMethod": "bank_transfer",
"amountSide": "source",
"paymentMethodData": {
"accountNumber": "0123456789",
"accountName": "Ada Okafor",
"bankCode": "999"
},
"isGaslessWithdraw": False,
"provider": "example-provider"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assetId: 'ae455f23-3824-4125-baab-d158315cbcbd',
amount: '100.00',
currency: 'NGN',
paymentMethod: 'bank_transfer',
amountSide: 'source',
paymentMethodData: {accountNumber: '0123456789', accountName: 'Ada Okafor', bankCode: '999'},
isGaslessWithdraw: false,
provider: 'example-provider'
})
};
fetch('https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assetId' => 'ae455f23-3824-4125-baab-d158315cbcbd',
'amount' => '100.00',
'currency' => 'NGN',
'paymentMethod' => 'bank_transfer',
'amountSide' => 'source',
'paymentMethodData' => [
'accountNumber' => '0123456789',
'accountName' => 'Ada Okafor',
'bankCode' => '999'
],
'isGaslessWithdraw' => false,
'provider' => 'example-provider'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote"
payload := strings.NewReader("{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v2/wallets/{id}/withdraw/fiat/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetId\": \"ae455f23-3824-4125-baab-d158315cbcbd\",\n \"amount\": \"100.00\",\n \"currency\": \"NGN\",\n \"paymentMethod\": \"bank_transfer\",\n \"amountSide\": \"source\",\n \"paymentMethodData\": {\n \"accountNumber\": \"0123456789\",\n \"accountName\": \"Ada Okafor\",\n \"bankCode\": \"999\"\n },\n \"isGaslessWithdraw\": false,\n \"provider\": \"example-provider\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Successful",
"data": {
"debitAmount": "101.50",
"minAmount": "10.00",
"networkFee": "0.00006779052",
"networkFeeInUSD": "0.14",
"estimatedArrivalTime": 60,
"transactionFee": "1.50",
"nativeBalance": "0.000929309612767174",
"nativeBalanceInUSD": "1.97"
}
}Authorizations
Path Parameters
Wallet identifier.
Body
Stablecoin asset identifier.
"ae455f23-3824-4125-baab-d158315cbcbd"
Amount as a decimal string. Interpreted as the stablecoin amount to send or the fiat amount to deliver, depending on amountSide.
^\d+(\.\d+)?$"100.00"
ISO 4217 payout currency.
3"NGN"
Payment-method id returned by discovery.
"bank_transfer"
Which side of the conversion amount refers to. source (default) fixes the stablecoin amount you send; target fixes the fiat amount the recipient receives — the stablecoin debit is derived from the quoted rate and rounded up to the asset's decimal precision so the recipient receives the full fiat amount. Available on v2 endpoints only.
source, target "source"
Values validated against the payment-method requirements schema.
{
"accountNumber": "0123456789",
"accountName": "Ada Okafor",
"bankCode": "999"
}
Whether Blockradar should sponsor the on-chain gas where supported.
false
Optional provider slug. Omit for automatic routing.
"example-provider"

