Notus API
Smart wallets

Get Smart Wallet Portfolio

Get the portfolio of a smart wallet by its account abstraction address. The portfolio is a list of the user's balances in different tokens.

GET
/api/v1/wallets/{accountAbstractionAddress}/portfolio
x-api-key<token>

In: header

Path Parameters

accountAbstractionAddressstring

The smart wallet address (in hexadecimal format).

Match^0x[a-fA-F0-9]{40}$

Response Body

curl -X GET "https://api.notus.team/api/v1/wallets/string/portfolio"
fetch("https://api.notus.team/api/v1/wallets/string/portfolio")
package main

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

func main() {
  url := "https://api.notus.team/api/v1/wallets/string/portfolio"

  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://api.notus.team/api/v1/wallets/string/portfolio"

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://api.notus.team/api/v1/wallets/string/portfolio"))
  .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://api.notus.team/api/v1/wallets/string/portfolio");
var responseBody = await response.Content.ReadAsStringAsync();
{
  "portfolio": [
    {
      "address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6",
      "name": "Wrapped Bitcoin",
      "symbol": "WBTC",
      "decimals": 8,
      "logo": "https://wbtclogo.com",
      "chain": {
        "id": 137,
        "name": "POLYGON",
        "logo": "https://polygonlogo.com"
      },
      "balance": "100000000",
      "balanceFormatted": "1",
      "priceUsd": "1.0"
    }
  ],
  "nfts": [
    {
      "address": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
      "collection": {
        "name": "Uniswap V3 Positions NFT-V1",
        "symbol": "UNI-V3-POS",
        "logo": "https://univ3nft.com"
      },
      "tokenId": "2472425",
      "name": "Uniswap - 0.05% - USDT/WETH - 1517.8<>2550.4",
      "description": "This NFT represents a liquidity position in a Uniswap V3 USDT-WETH pool.",
      "image": "https://remilio.org/remilio/2830.png",
      "amount": "2450",
      "chain": {
        "id": 137,
        "name": "POLYGON",
        "logo": "https://polygonlogo.com"
      }
    }
  ]
}