curl --request POST \
--url https://api.dutchapi.dubiabank.com/v1/crypto/withdrawals \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"asset": "USDC",
"chain": "ETH",
"address": "string",
"amount": "50"
}'
const res = await fetch("https://api.dutchapi.dubiabank.com/v1/crypto/withdrawals", {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"asset": "USDC",
"chain": "ETH",
"address": "string",
"amount": "50"
})
});
console.log(await res.json());
require "net/http"
require "json"
uri = URI("https://api.dutchapi.dubiabank.com/v1/crypto/withdrawals")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Bearer #{token}"
req["Content-Type"] = "application/json"
req.body = {
"asset": "USDC",
"chain": "ETH",
"address": "string",
"amount": "50"
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.body
<?php
$ch = curl_init("https://api.dutchapi.dubiabank.com/v1/crypto/withdrawals");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer $token", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode({
"asset": "USDC",
"chain": "ETH",
"address": "string",
"amount": "50"
})
]);
echo curl_exec($ch);
import requests
res = requests.request(
"POST",
"https://api.dutchapi.dubiabank.com/v1/crypto/withdrawals",
headers={"Authorization": f"Bearer {token}"},
json={
"asset": "USDC",
"chain": "ETH",
"address": "string",
"amount": "50"
}
)
print(res.json())