fix: expose getProgramAccounts RPC method

This commit is contained in:
Tyera Eulberg
2019-06-28 19:28:06 -06:00
committed by Michael Vines
parent c14a44b8b4
commit 0e7c8cd01f
5 changed files with 100 additions and 6 deletions

View File

@ -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>>;