Skip to main content
POST
/
v2
/
info
/
balances
cURL
curl --request POST \
  --url https://api.skip.build/v2/info/balances \
  --header 'Content-Type: application/json' \
  --data '
{
  "chains": {
    "137": {
      "address": "0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5",
      "denoms": [
        "polygon-native",
        "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
      ]
    },
    "osmosis-1": {
      "address": "osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc",
      "denoms": [
        "uosmo"
      ]
    }
  }
}
'
import requests

url = "https://api.skip.build/v2/info/balances"

payload = { "chains": {
"137": {
"address": "0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5",
"denoms": ["polygon-native", "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"]
},
"osmosis-1": {
"address": "osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc",
"denoms": ["uosmo"]
}
} }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
chains: {
'137': {
address: '0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5',
denoms: ['polygon-native', '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359']
},
'osmosis-1': {address: 'osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc', denoms: ['uosmo']}
}
})
};

fetch('https://api.skip.build/v2/info/balances', 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.skip.build/v2/info/balances",
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([
'chains' => [
'137' => [
'address' => '0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5',
'denoms' => [
'polygon-native',
'0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
]
],
'osmosis-1' => [
'address' => 'osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc',
'denoms' => [
'uosmo'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$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.skip.build/v2/info/balances"

payload := strings.NewReader("{\n \"chains\": {\n \"137\": {\n \"address\": \"0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5\",\n \"denoms\": [\n \"polygon-native\",\n \"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\"\n ]\n },\n \"osmosis-1\": {\n \"address\": \"osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc\",\n \"denoms\": [\n \"uosmo\"\n ]\n }\n }\n}")

req, _ := http.NewRequest("POST", url, payload)

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.skip.build/v2/info/balances")
.header("Content-Type", "application/json")
.body("{\n \"chains\": {\n \"137\": {\n \"address\": \"0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5\",\n \"denoms\": [\n \"polygon-native\",\n \"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\"\n ]\n },\n \"osmosis-1\": {\n \"address\": \"osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc\",\n \"denoms\": [\n \"uosmo\"\n ]\n }\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.skip.build/v2/info/balances")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"chains\": {\n \"137\": {\n \"address\": \"0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5\",\n \"denoms\": [\n \"polygon-native\",\n \"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\"\n ]\n },\n \"osmosis-1\": {\n \"address\": \"osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc\",\n \"denoms\": [\n \"uosmo\"\n ]\n }\n }\n}"

response = http.request(request)
puts response.read_body
{
  "chains": {
    "137": {
      "address": "0x24a9267cE9e0a8F4467B584FDDa12baf1Df772B5",
      "denoms": {
        "polygon-native": {
          "amount": "58477097336215771549",
          "decimals": 18,
          "formatted_amount": "58.477097336215771549",
          "price": "0.406894",
          "value_usd": "23.793980"
        },
        "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359": {
          "amount": "100000000",
          "decimals": 6,
          "formatted_amount": "100.000000",
          "price": "0.581495",
          "value_usd": "58.1495"
        }
      }
    },
    "osmosis-1": {
      "address": "osmo12xufazw43lanl8dkvf3l7y9zzm8n3zswftw2yc",
      "denoms": {
        "uosmo": {
          "amount": "100000000",
          "decimals": 6,
          "formatted_amount": "100.000000",
          "price": "0.581495",
          "value_usd": "58.1495"
        }
      }
    }
  }
}

Body

application/json
chains
object

Response

200 - application/json

The balances of the assets

chains
object