@sen-use/web3
Version:
The library for Sentre
21 lines (20 loc) • 739 B
TypeScript
/// <reference types="node" />
import { web3 } from '@project-serum/anchor';
export declare function getMultipleAccounts(connection: web3.Connection, publicKeys: web3.PublicKey[], commitment?: web3.Commitment): Promise<Array<null | {
publicKey: web3.PublicKey;
account: web3.AccountInfo<Buffer>;
}>>;
/**
* SMART FETCH ACCOUNT WEB3
*/
declare type GetAccountDataSmartParams = {
connection: web3.Connection;
publicKey: web3.PublicKey;
debounce?: number;
commitment?: web3.Commitment;
};
export declare function getAccountDataSmart<T>(params: GetAccountDataSmartParams, parseData: (data: Buffer, rawData?: web3.AccountInfo<Buffer>) => T): Promise<{
publicKey: web3.PublicKey;
data: T | null;
}>;
export {};