feat: add support for getSupply RPC method
This commit is contained in:
committed by
Michael Vines
parent
6d24110bcd
commit
9c677c7d3d
8
web3.js/module.d.ts
vendored
8
web3.js/module.d.ts
vendored
@ -173,6 +173,13 @@ declare module '@solana/web3.js' {
|
||||
firstNormalSlot: number;
|
||||
};
|
||||
|
||||
export type Supply = {
|
||||
total: number;
|
||||
circulating: number;
|
||||
nonCirculating: number;
|
||||
nonCirculatingAccounts: Array<PublicKey>;
|
||||
};
|
||||
|
||||
export type VoteAccountStatus = {
|
||||
current: Array<VoteAccountInfo>;
|
||||
delinquent: Array<VoteAccountInfo>;
|
||||
@ -200,6 +207,7 @@ declare module '@solana/web3.js' {
|
||||
getBalance(publicKey: PublicKey, commitment?: Commitment): Promise<number>;
|
||||
getBlockTime(slot: number): Promise<number | null>;
|
||||
getMinimumLedgerSlot(): Promise<number>;
|
||||
getSupply(commitment?: Commitment): Promise<RpcResponseAndContext<Supply>>;
|
||||
getClusterNodes(): Promise<Array<ContactInfo>>;
|
||||
getConfirmedBlock(slot: number): Promise<ConfirmedBlock>;
|
||||
getConfirmedTransaction(
|
||||
|
Reference in New Issue
Block a user