Retrieve ledger fees per currency
curl --request POST \
--url https://api.custody.api-zodia.io/v3/api/custody/currencies/fees \
--header 'submitter-id: <submitter-id>'import requests
url = "https://api.custody.api-zodia.io/v3/api/custody/currencies/fees"
headers = {"submitter-id": "<submitter-id>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'submitter-id': '<submitter-id>'}};
fetch('https://api.custody.api-zodia.io/v3/api/custody/currencies/fees', 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.custody.api-zodia.io/v3/api/custody/currencies/fees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"submitter-id: <submitter-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.custody.api-zodia.io/v3/api/custody/currencies/fees"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("submitter-id", "<submitter-id>")
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.custody.api-zodia.io/v3/api/custody/currencies/fees")
.header("submitter-id", "<submitter-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v3/api/custody/currencies/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["submitter-id"] = '<submitter-id>'
response = http.request(request)
puts response.read_body{
"items": [
{
"high": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"medium": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"low": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"type": "<string>",
"weight": "BTC: satoshiPerVbyte (e.g. 3995), ETH: Gwei (e.g. 21000)",
"currencyId": "eth-Seth, btc-btc"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}Custody-V3
Retrieve ledger fees per currency
POST
/
v3
/
api
/
custody
/
currencies
/
fees
Retrieve ledger fees per currency
curl --request POST \
--url https://api.custody.api-zodia.io/v3/api/custody/currencies/fees \
--header 'submitter-id: <submitter-id>'import requests
url = "https://api.custody.api-zodia.io/v3/api/custody/currencies/fees"
headers = {"submitter-id": "<submitter-id>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'submitter-id': '<submitter-id>'}};
fetch('https://api.custody.api-zodia.io/v3/api/custody/currencies/fees', 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.custody.api-zodia.io/v3/api/custody/currencies/fees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"submitter-id: <submitter-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.custody.api-zodia.io/v3/api/custody/currencies/fees"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("submitter-id", "<submitter-id>")
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.custody.api-zodia.io/v3/api/custody/currencies/fees")
.header("submitter-id", "<submitter-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v3/api/custody/currencies/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["submitter-id"] = '<submitter-id>'
response = http.request(request)
puts response.read_body{
"items": [
{
"high": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"medium": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"low": {
"value": [
"9357300",
"3119100",
"1576767"
]
},
"type": "<string>",
"weight": "BTC: satoshiPerVbyte (e.g. 3995), ETH: Gwei (e.g. 21000)",
"currencyId": "eth-Seth, btc-btc"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}⌘I