@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
13 lines • 1.3 kB
TypeScript
import { TransferOutput, Utxo } from "@avalabs/avalanchejs";
import { DefaultRequestMultipartBody, HttpResponse } from "msw";
export declare const TEST_BASE_FEE = "0x2BF2";
export declare const getUTXOStrings: (amt: bigint | undefined, assetId: string, owners: string[], locktime?: number, threshold?: number, txnId?: string) => string[];
export declare const getValidUTXO: (amt: bigint | undefined, assetId: string, owners: string[], locktime?: number, threshold?: number, utxoId?: string) => Utxo<TransferOutput>;
export declare const getXChainMockServer: (params: {
overrideMocker?: Record<string, (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<any>>;
url?: string;
}) => import("msw/node").SetupServerApi;
export declare const getDefaultGetUTXOsMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody, testInputAmount?: bigint) => HttpResponse<import("msw").JsonBodyType>;
export declare const getDefaultGetTransactionCountMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<import("msw").JsonBodyType>;
export declare const getDefaultGetBaseFeeMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<import("msw").JsonBodyType>;
//# sourceMappingURL=xChain.d.ts.map