Relysia
Relysia WalletAPI DocumentationGithub RepositoryDemo
  • Relysia SDK
  • Getting Started
    • Setup
    • API
    • Infrastructure
  • Wallets
    • Wallets
    • Mnemonic
    • Addresses
    • Metrics
    • Balance
    • History
  • Payments
    • Lookup
    • Sweep
    • URI
    • Transactions
    • Raw Transactions
    • Invoices
      • Create Invoice
      • Get Invoice
      • Pay Invoice
    • Payments
    • Asm
  • token
    • Basics
    • Token Issuance
    • NFT Issuance
    • Atomic Swaps
    • Details
    • Leaderboard
  • Utility
    • Post
    • Upload
    • Conversion
    • Paymail
    • Transpile-Compile
  • Enterprise Wallet
    • Overview
    • Authentication
    • Management
    • Wallet
    • Smart Contracts
    • Transaction
    • Fee Manager
    • Events
  • Realtime Transaction Notification
    • Use Case
    • Setup and Configuration
    • Events and Messages
  • More
    • Metashard
    • Satolearn
Powered by GitBook
On this page
  1. Wallets

Balance

How many currencies and NFTs do you own?

PreviousMetricsNextHistory

Last updated 1 year ago

After the address, the second most essential feature of wallets are the display of the current wallet balance. Next to the standard inputs, you can define a fiat currency display of the balance.

var parameters = {
    serviceId: 'optional',
    walletID: 'optional',
    currency: 'optional',
}

const response = await relysia.wallet.v1.balance(parameters);

The balance endpoint returns the BSV balance and fiat equivalent and STAS token balances of your wallet.

Get your wallet balance.

GET https://api.relysia.com/v1/balance

Returns both coin and token balances.

Headers

Name
Type
Description

walletID

string

type

string

currency

string

nextPageToken

string

{
  "statusCode": 200,
  "data": {
    "status": "success",
    "msg": "Operation Completed Successfully",
    "totalBalance": {
      "currency": "USD",
      "balance": 0.11926660683
    },
    "coins": [
      {
        "protocol": "BSV",
        "balance": 248542
      }
    ],
    "meta": {
      "nextPageToken": null
    }
  }
}