Avalanche SDK Client
    Preparing search index...

    Function getUtxosForAddress

    • Get the UTXOs for an address.

      Parameters

      Returns Promise<Utxo<Serializable>[]>

      The array of UTXOs. May contain duplicates. []

      import { createAvalancheWalletCoreClient } from "@avalanche-sdk/client";
      import { avalanche } from "@avalanche-sdk/client/chains";

      const client = createAvalancheWalletCoreClient({
      chain: avalanche,
      transport: {
      type: "http",
      },
      });

      const utxos = await getUtxosForAddress(client, {
      address: "0x1234567890123456789012345678901234567890",
      chainAlias: "P",
      });