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

13 lines 1.41 kB
import { TransferOutput, Utxo } from "@avalabs/avalanchejs"; import { DefaultRequestMultipartBody, HttpResponse } from "msw"; 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 getPChainMockServer: (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 getDefaultGetFeeStateMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<import("msw").JsonBodyType>; export declare const getDefaultGetTxMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<import("msw").JsonBodyType>; export declare const getDefaultGetL1ValidatorMockResponse: (reqBody: Record<string, any> | DefaultRequestMultipartBody) => HttpResponse<import("msw").JsonBodyType>; //# sourceMappingURL=pChain.d.ts.map