fix: expose getProgramAccounts RPC method
This commit is contained in:
committed by
Michael Vines
parent
c14a44b8b4
commit
0e7c8cd01f
@ -87,6 +87,9 @@ declare module '@solana/web3.js' {
|
||||
declare export class Connection {
|
||||
constructor(endpoint: string): Connection;
|
||||
getAccountInfo(publicKey: PublicKey): Promise<AccountInfo>;
|
||||
getProgramAccounts(
|
||||
programId: PublicKey,
|
||||
): Promise<Array<[PublicKey, AccountInfo]>>;
|
||||
getBalance(publicKey: PublicKey): Promise<number>;
|
||||
getClusterNodes(): Promise<Array<ContactInfo>>;
|
||||
getEpochVoteAccounts(): Promise<Array<VoteAccountInfo>>;
|
||||
|
Reference in New Issue
Block a user