The client to use. AvalancheWalletCoreClient
The parameters. GetUtxosForAddressParams
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",
});
Get the UTXOs for an address.