LogoP | Magickbase
Open api

V0 statistics tx Fee History

GET
/v0/statistics/ckb/tx-fee-history
AuthorizationBearer <token>

In: header

Response Body

curl -X GET "https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history"
fetch("https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history"

response = requests.request("GET", url)

print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;

HttpClient client = HttpClient.newBuilder()
  .connectTimeout(Duration.ofSeconds(10))
  .build();

HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
  .uri(URI.create("https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history"))
  .GET()
  .build();

try {
  HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
  System.out.println("Status code: " + response.statusCode());
  System.out.println("Response body: " + response.body());
} catch (Exception e) {
  e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var response = await client.GetAsync("https://preflight.magickbase.com/api/openapi/v0/statistics/ckb/tx-fee-history");
var responseBody = await response.Content.ReadAsStringAsync();
[
  {
    "createdAtUnixtimestamp": "string",
    "totalTxFee": "string"
  }
]
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}