UNPKG

@avalanche-sdk/client

Version:

A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa

23 lines (19 loc) 699 B
import { expect, test } from "vitest"; import { avalanche } from "../../chains/index.js"; import { createAvalancheWalletCoreClient } from "../createAvalancheWalletCoreClient.js"; import { avalancheWalletActions } from "./avalancheWallet.js"; const client = createAvalancheWalletCoreClient({ chain: avalanche, transport: { type: "http" }, } as any); const avalancheWalletClient = avalancheWalletActions(client); test("default", async () => { expect(avalancheWalletClient).toMatchInlineSnapshot(`{ "getAccountPubKey": [Function], "send": [Function], "sendXPTransaction": [Function], "signXPMessage": [Function], "signXPTransaction": [Function], "waitForTxn": [Function], }`); });