Skip to content
Discussion options

You must be logged in to vote
import { Account, Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET }); // default network is devnet
const aptos = new Aptos(config);

const accountAddress = "0x5960725b0be64bfd1931f9f1f2db9ff0833404a152bec1dda9fe18556bda3ef8";
const FAAddress = "0x7928ee33b2e3ee8561f0869ee3f3b93645f3e17ee946718fcd85e852f3f991a7";

const faBalance = await aptos.getCurrentFungibleAssetBalances({
    options: {
      where: {
        owner_address: {_eq: accountAddress},
        asset_type: {_eq: FAAddress}
      }
    }
});

I got this from example folder of aptos ts sdk, I think this is what I need

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daorren
Comment options

Answer selected by kshitijc1506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant