Fetch All Supported Blockchains by Ludo API

Guide on how to fetch all the supported blockchains

Endpoint

GET https://rest-v1.ludo.ninja/info/blockchains

Returns a JSON object with the properties below

blockchains ━ Array, An array of objects each containing the following fields

name ━ String, The name of the blockchain supported.

symbol ━ String, The symbol of the blockchain supported.

logo ━ String, The logo of the blockchain supported.

How to fetch all the supported blockchains by Ludo API

In this guide, we will be looking into how to fetch all blockchains that are supported by the Ludo API.

Below is an example of how to use the endpoint in order to get all the blockchains that are supported by Ludo API

curl --request GET \
     --url https://rest-v1.ludo.ninja/info/blockchains \
     --header 'accept: application/json'
const options = {method: 'GET', headers: {accept: 'application/json'}};

fetch('https://rest-v1.ludo.ninja/info/blockchains', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
import requests

url = "https://rest-v1.ludo.ninja/info/blockchains"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)

After a successful result, you will get a response of all the blockchains that are supported by Ludo API.