Wallet Info

Request wallet info of the account. The application needs to provide a wallet type. We also recommend only using "lbtc" lightning wallet for all your use-cases since it's built for instant micro payments.

Method


GET https://prod.ninjapay.me/sapi/v1/wallet

Parameters

wallet?: string // "lbtc", "btc" and "usdt" supported currently

Response

{"wallet_lbtc": <string>, "balance_lbtc": <int>}

Example


const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'API_KEY'
  },
  body: '{"wallet":"lbtc"}'
};

fetch('https://prod.ninjapay.me/sapi/v1/wallet', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated