Wallet Portfolio
curl --request POST \
--url https://api.coinvoyage.io/v2/wallet/portfolio \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"chain_ids": [
1,
8453,
137
],
"chain_type": "EVM",
"force_refresh": false,
"min_balance_usd": 1,
"wallet_address": "0x1234...abcd"
}
'import requests
url = "https://api.coinvoyage.io/v2/wallet/portfolio"
payload = {
"chain_ids": [1, 8453, 137],
"chain_type": "EVM",
"force_refresh": False,
"min_balance_usd": 1,
"wallet_address": "0x1234...abcd"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain_ids: [1, 8453, 137],
chain_type: 'EVM',
force_refresh: false,
min_balance_usd: 1,
wallet_address: '0x1234...abcd'
})
};
fetch('https://api.coinvoyage.io/v2/wallet/portfolio', 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.coinvoyage.io/v2/wallet/portfolio",
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([
'chain_ids' => [
1,
8453,
137
],
'chain_type' => 'EVM',
'force_refresh' => false,
'min_balance_usd' => 1,
'wallet_address' => '0x1234...abcd'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.coinvoyage.io/v2/wallet/portfolio"
payload := strings.NewReader("{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.coinvoyage.io/v2/wallet/portfolio")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinvoyage.io/v2/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}"
response = http.request(request)
puts response.read_body{
"chain_type": "EVM",
"currencies": [
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"balance": {
"raw_amount": "2400000",
"ui_amount": 2.4,
"ui_amount_display": "2.4",
"value_usd": 123.45
},
"chain_id": 1,
"chain_logo_uri": "https://assets.coingecko.com/asset_platforms/images/279/standard/ethereum.png",
"decimals": 6,
"logo_uri": "https://assets.coingecko.com/coins/images/6319/large/usdc.png",
"price_usd": 1,
"symbol": "USDC"
}
],
"wallet_address": "0x1234...abcd"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}wallet
Wallet Portfolio
Returns the wallet’s tokens with balances and USD values. Reusable beyond the pay-with-wallet flow (swap source picker, deposit balance display, etc.). Hits BalanceService caches; force_refresh bypasses L1+L2.
POST
/
wallet
/
portfolio
Wallet Portfolio
curl --request POST \
--url https://api.coinvoyage.io/v2/wallet/portfolio \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"chain_ids": [
1,
8453,
137
],
"chain_type": "EVM",
"force_refresh": false,
"min_balance_usd": 1,
"wallet_address": "0x1234...abcd"
}
'import requests
url = "https://api.coinvoyage.io/v2/wallet/portfolio"
payload = {
"chain_ids": [1, 8453, 137],
"chain_type": "EVM",
"force_refresh": False,
"min_balance_usd": 1,
"wallet_address": "0x1234...abcd"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain_ids: [1, 8453, 137],
chain_type: 'EVM',
force_refresh: false,
min_balance_usd: 1,
wallet_address: '0x1234...abcd'
})
};
fetch('https://api.coinvoyage.io/v2/wallet/portfolio', 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.coinvoyage.io/v2/wallet/portfolio",
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([
'chain_ids' => [
1,
8453,
137
],
'chain_type' => 'EVM',
'force_refresh' => false,
'min_balance_usd' => 1,
'wallet_address' => '0x1234...abcd'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.coinvoyage.io/v2/wallet/portfolio"
payload := strings.NewReader("{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.coinvoyage.io/v2/wallet/portfolio")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinvoyage.io/v2/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain_ids\": [\n 1,\n 8453,\n 137\n ],\n \"chain_type\": \"EVM\",\n \"force_refresh\": false,\n \"min_balance_usd\": 1,\n \"wallet_address\": \"0x1234...abcd\"\n}"
response = http.request(request)
puts response.read_body{
"chain_type": "EVM",
"currencies": [
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"balance": {
"raw_amount": "2400000",
"ui_amount": 2.4,
"ui_amount_display": "2.4",
"value_usd": 123.45
},
"chain_id": 1,
"chain_logo_uri": "https://assets.coingecko.com/asset_platforms/images/279/standard/ethereum.png",
"decimals": 6,
"logo_uri": "https://assets.coingecko.com/coins/images/6319/large/usdc.png",
"price_usd": 1,
"symbol": "USDC"
}
],
"wallet_address": "0x1234...abcd"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}Authorizations
Headers
API key for authentication
Body
application/json
Example:
"0x1234...abcd"
Available options:
EVM, SOL, SUI, UTXO Example:
"EVM"
Available options:
1, 10, 56, 137, 8453, 42161, 20000000000001, 30000000000001, 30000000000002 Example:
[1, 8453, 137]
Example:
1
Example:
false
Was this page helpful?
⌘I