๐Ÿ”ฒ๐Ÿ”œ runes_getBalance

The runes_getBalance method will be added soon. This is a documentation preview.

You can use the runes_getBalance method to retrieve all your user's Runes balances, i.e. each Rune token that their connected wallet address owns, and in which amount. No query parameters are required for the method:

import { Wallet } from "sats-connect";

     const response = await Wallet.request('getRunes');

    if (response.status === 'success') {
      console.error(response.result);
    } else {
      console.error(response.error);
    }
  };

The runes_getBalance method will not trigger any operation or prompt your user to sign any transaction. It will return an array of balance objects, each representing the connected wallet's holdings of a rune token:

Last updated