@lightprotocol/stateless.js 0.17.2-alpha.0 → 0.17.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/rpc-interface.d.ts +3 -3
- package/dist/cjs/browser/rpc.d.ts +2 -57
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +2 -3
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/rpc-interface.d.ts +3 -3
- package/dist/cjs/node/rpc.d.ts +2 -57
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +2 -3
- package/dist/es/browser/index.js +1 -1
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/rpc-interface.d.ts +3 -3
- package/dist/es/browser/rpc.d.ts +2 -57
- package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +2 -3
- package/dist/types/index.d.ts +5 -185
- package/package.json +4 -4
- package/dist/cjs/browser/connection-interface.d.ts +0 -125
- package/dist/cjs/node/connection-interface.d.ts +0 -125
- package/dist/es/browser/connection-interface.d.ts +0 -125
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { PublicKey, Commitment, GetBalanceConfig, RpcResponseAndContext, Supply, TokenAmount, GetSupplyConfig, TokenAccountsFilter, GetProgramAccountsResponse, GetTokenAccountsByOwnerConfig, AccountInfo, ParsedAccountData, GetLargestAccountsConfig, AccountBalancePair, TokenAccountBalancePair, GetAccountInfoConfig, GetMultipleAccountsConfig, StakeActivationData, GetBlockHeightConfig, GetBlockProductionConfig, BlockProduction, GetLatestBlockhashConfig, BlockhashWithExpiryBlockHeight, SimulatedTransactionResponse, SimulateTransactionConfig, SendOptions, TransactionSignature, AddressLookupTableAccount, GetParsedProgramAccountsConfig, Finality, GetVersionedBlockConfig, VersionedBlockResponse, VersionedAccountsModeBlockResponse, VersionedNoneModeBlockResponse, ParsedAccountsModeBlockResponse, ParsedNoneModeBlockResponse, ParsedTransactionWithMeta, VersionedTransaction, VersionedTransactionResponse, ConfirmedBlock, ConfirmedSignatureInfo, ConfirmedSignaturesForAddress2Options, SignatureStatusConfig, SignatureStatus, Version, VoteAccountStatus, GetSlotConfig, GetSlotLeaderConfig, GetProgramAccountsConfig, SignatureResult, TransactionConfirmationStrategy, AccountChangeCallback, ProgramAccountChangeCallback, LogsCallback, SlotChangeCallback, SlotUpdateCallback, SignatureResultCallback, SignatureSubscriptionCallback, SignatureSubscriptionOptions, RootChangeCallback, GetStakeActivationConfig, InflationGovernor, GetTransactionCountConfig, GetInflationRewardConfig, InflationReward, InflationRate, GetEpochInfoConfig, EpochInfo, EpochSchedule, LeaderSchedule, Blockhash, FeeCalculator, PerfSample, VersionedMessage, GetRecentPrioritizationFeesConfig, RecentPrioritizationFees, IsBlockhashValidConfig, GetVersionedTransactionConfig, ParsedConfirmedTransaction, ConfirmedTransaction, BlockSignatures, SignaturesForAddressOptions, GetNonceAndContextConfig, NonceAccount, GetNonceConfig, GetStakeMinimumDelegationConfig, AccountSubscriptionConfig, ProgramAccountSubscriptionConfig, LogsFilter, ContactInfo } from '@solana/web3.js';
|
|
2
|
-
export type ClientSubscriptionId = number;
|
|
3
|
-
export interface ConnectionInterface {
|
|
4
|
-
readonly commitment?: Commitment;
|
|
5
|
-
readonly rpcEndpoint: string;
|
|
6
|
-
getBalanceAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<RpcResponseAndContext<number>>;
|
|
7
|
-
getBalance(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<number>;
|
|
8
|
-
getBlockTime(slot: number): Promise<number | null>;
|
|
9
|
-
getMinimumLedgerSlot(): Promise<number>;
|
|
10
|
-
getFirstAvailableBlock(): Promise<number>;
|
|
11
|
-
getSupply(config?: GetSupplyConfig | Commitment): Promise<RpcResponseAndContext<Supply>>;
|
|
12
|
-
getTokenSupply(tokenMintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
13
|
-
getTokenAccountBalance(tokenAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
14
|
-
getTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitmentOrConfig?: Commitment | GetTokenAccountsByOwnerConfig): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
15
|
-
getParsedTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitment?: Commitment): Promise<RpcResponseAndContext<Array<{
|
|
16
|
-
pubkey: PublicKey;
|
|
17
|
-
account: AccountInfo<ParsedAccountData>;
|
|
18
|
-
}>>>;
|
|
19
|
-
getLargestAccounts(config?: GetLargestAccountsConfig): Promise<RpcResponseAndContext<Array<AccountBalancePair>>>;
|
|
20
|
-
getTokenLargestAccounts(mintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<Array<TokenAccountBalancePair>>>;
|
|
21
|
-
getAccountInfoAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer> | null>>;
|
|
22
|
-
getParsedAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer | ParsedAccountData> | null>>;
|
|
23
|
-
getAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<AccountInfo<Buffer> | null>;
|
|
24
|
-
getMultipleParsedAccounts(publicKeys: PublicKey[], rawConfig?: GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer | ParsedAccountData> | null)[]>>;
|
|
25
|
-
getMultipleAccountsInfoAndContext(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer> | null)[]>>;
|
|
26
|
-
getMultipleAccountsInfo(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<(AccountInfo<Buffer> | null)[]>;
|
|
27
|
-
getStakeActivation(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetStakeActivationConfig, epoch?: number): Promise<StakeActivationData>;
|
|
28
|
-
getProgramAccounts(programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment): Promise<GetProgramAccountsResponse>;
|
|
29
|
-
getProgramAccounts(programId: PublicKey, configOrCommitment: GetProgramAccountsConfig & {
|
|
30
|
-
withContext: true;
|
|
31
|
-
}): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
32
|
-
getParsedProgramAccounts(programId: PublicKey, configOrCommitment?: GetParsedProgramAccountsConfig | Commitment): Promise<Array<{
|
|
33
|
-
pubkey: PublicKey;
|
|
34
|
-
account: AccountInfo<Buffer | ParsedAccountData>;
|
|
35
|
-
}>>;
|
|
36
|
-
confirmTransaction(strategy: TransactionConfirmationStrategy, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
37
|
-
confirmTransaction(strategy: TransactionSignature, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
38
|
-
getClusterNodes(): Promise<Array<ContactInfo>>;
|
|
39
|
-
getVoteAccounts(commitment?: Commitment): Promise<VoteAccountStatus>;
|
|
40
|
-
getSlot(commitmentOrConfig?: Commitment | GetSlotConfig): Promise<number>;
|
|
41
|
-
getSlotLeader(commitmentOrConfig?: Commitment | GetSlotLeaderConfig): Promise<string>;
|
|
42
|
-
getSlotLeaders(startSlot: number, limit: number): Promise<Array<PublicKey>>;
|
|
43
|
-
getSignatureStatus(signature: TransactionSignature, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<SignatureStatus | null>>;
|
|
44
|
-
getSignatureStatuses(signatures: Array<TransactionSignature>, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<Array<SignatureStatus | null>>>;
|
|
45
|
-
getTransactionCount(commitmentOrConfig?: Commitment | GetTransactionCountConfig): Promise<number>;
|
|
46
|
-
getTotalSupply(commitment?: Commitment): Promise<number>;
|
|
47
|
-
getInflationGovernor(commitment?: Commitment): Promise<InflationGovernor>;
|
|
48
|
-
getInflationReward(addresses: PublicKey[], epoch?: number, commitmentOrConfig?: Commitment | GetInflationRewardConfig): Promise<(InflationReward | null)[]>;
|
|
49
|
-
getInflationRate(): Promise<InflationRate>;
|
|
50
|
-
getEpochInfo(commitmentOrConfig?: Commitment | GetEpochInfoConfig): Promise<EpochInfo>;
|
|
51
|
-
getEpochSchedule(): Promise<EpochSchedule>;
|
|
52
|
-
getLeaderSchedule(): Promise<LeaderSchedule>;
|
|
53
|
-
getMinimumBalanceForRentExemption(dataLength: number, commitment?: Commitment): Promise<number>;
|
|
54
|
-
getRecentBlockhashAndContext(commitment?: Commitment): Promise<RpcResponseAndContext<{
|
|
55
|
-
blockhash: Blockhash;
|
|
56
|
-
feeCalculator: FeeCalculator;
|
|
57
|
-
}>>;
|
|
58
|
-
getRecentPerformanceSamples(limit?: number): Promise<Array<PerfSample>>;
|
|
59
|
-
getFeeCalculatorForBlockhash(blockhash: Blockhash, commitment?: Commitment): Promise<RpcResponseAndContext<FeeCalculator | null>>;
|
|
60
|
-
getFeeForMessage(message: VersionedMessage, commitment?: Commitment): Promise<RpcResponseAndContext<number | null>>;
|
|
61
|
-
getRecentPrioritizationFees(config?: GetRecentPrioritizationFeesConfig): Promise<RecentPrioritizationFees[]>;
|
|
62
|
-
getRecentBlockhash(commitment?: Commitment): Promise<{
|
|
63
|
-
blockhash: Blockhash;
|
|
64
|
-
feeCalculator: FeeCalculator;
|
|
65
|
-
}>;
|
|
66
|
-
getLatestBlockhash(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<BlockhashWithExpiryBlockHeight>;
|
|
67
|
-
getLatestBlockhashAndContext(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<RpcResponseAndContext<BlockhashWithExpiryBlockHeight>>;
|
|
68
|
-
isBlockhashValid(blockhash: Blockhash, rawConfig?: IsBlockhashValidConfig): Promise<RpcResponseAndContext<boolean>>;
|
|
69
|
-
getVersion(): Promise<Version>;
|
|
70
|
-
getGenesisHash(): Promise<string>;
|
|
71
|
-
getBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<VersionedBlockResponse | null>;
|
|
72
|
-
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
73
|
-
transactionDetails: 'accounts';
|
|
74
|
-
}): Promise<VersionedAccountsModeBlockResponse | null>;
|
|
75
|
-
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
76
|
-
transactionDetails: 'none';
|
|
77
|
-
}): Promise<VersionedNoneModeBlockResponse | null>;
|
|
78
|
-
getParsedBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<ParsedAccountsModeBlockResponse>;
|
|
79
|
-
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
80
|
-
transactionDetails: 'accounts';
|
|
81
|
-
}): Promise<ParsedAccountsModeBlockResponse>;
|
|
82
|
-
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
83
|
-
transactionDetails: 'none';
|
|
84
|
-
}): Promise<ParsedNoneModeBlockResponse>;
|
|
85
|
-
getBlockHeight(commitmentOrConfig?: Commitment | GetBlockHeightConfig): Promise<number>;
|
|
86
|
-
getBlockProduction(configOrCommitment?: GetBlockProductionConfig | Commitment): Promise<RpcResponseAndContext<BlockProduction>>;
|
|
87
|
-
getTransaction(signature: string, rawConfig?: GetVersionedTransactionConfig): Promise<VersionedTransactionResponse | null>;
|
|
88
|
-
getParsedTransaction(signature: TransactionSignature, commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<ParsedTransactionWithMeta | null>;
|
|
89
|
-
getParsedTransactions(signatures: TransactionSignature[], commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<(ParsedTransactionWithMeta | null)[]>;
|
|
90
|
-
getTransactions(signatures: TransactionSignature[], commitmentOrConfig: GetVersionedTransactionConfig | Finality): Promise<(VersionedTransactionResponse | null)[]>;
|
|
91
|
-
getConfirmedBlock(slot: number, commitment?: Finality): Promise<ConfirmedBlock>;
|
|
92
|
-
getBlocks(startSlot: number, endSlot?: number, commitment?: Finality): Promise<Array<number>>;
|
|
93
|
-
getBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
94
|
-
getConfirmedBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
95
|
-
getConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ConfirmedTransaction | null>;
|
|
96
|
-
getParsedConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ParsedConfirmedTransaction | null>;
|
|
97
|
-
getParsedConfirmedTransactions(signatures: TransactionSignature[], commitment?: Finality): Promise<(ParsedConfirmedTransaction | null)[]>;
|
|
98
|
-
getConfirmedSignaturesForAddress(address: PublicKey, startSlot: number, endSlot: number): Promise<Array<TransactionSignature>>;
|
|
99
|
-
getConfirmedSignaturesForAddress2(address: PublicKey, options?: ConfirmedSignaturesForAddress2Options, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
100
|
-
getSignaturesForAddress(address: PublicKey, options?: SignaturesForAddressOptions, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
101
|
-
getAddressLookupTable(accountKey: PublicKey, config?: GetAccountInfoConfig): Promise<RpcResponseAndContext<AddressLookupTableAccount | null>>;
|
|
102
|
-
getNonceAndContext(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceAndContextConfig): Promise<RpcResponseAndContext<NonceAccount | null>>;
|
|
103
|
-
getNonce(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceConfig): Promise<NonceAccount | null>;
|
|
104
|
-
requestAirdrop(to: PublicKey, lamports: number): Promise<TransactionSignature>;
|
|
105
|
-
getStakeMinimumDelegation(config?: GetStakeMinimumDelegationConfig): Promise<RpcResponseAndContext<number>>;
|
|
106
|
-
simulateTransaction(transaction: VersionedTransaction, config?: SimulateTransactionConfig): Promise<RpcResponseAndContext<SimulatedTransactionResponse>>;
|
|
107
|
-
sendTransaction(transaction: VersionedTransaction, options?: SendOptions): Promise<TransactionSignature>;
|
|
108
|
-
sendRawTransaction(rawTransaction: Buffer | Uint8Array | Array<number>, options?: SendOptions): Promise<TransactionSignature>;
|
|
109
|
-
sendEncodedTransaction(encodedTransaction: string, options?: SendOptions): Promise<TransactionSignature>;
|
|
110
|
-
onAccountChange(publicKey: PublicKey, callback: AccountChangeCallback, config?: AccountSubscriptionConfig): ClientSubscriptionId;
|
|
111
|
-
onProgramAccountChange(programId: PublicKey, callback: ProgramAccountChangeCallback, config?: ProgramAccountSubscriptionConfig): ClientSubscriptionId;
|
|
112
|
-
onLogs(filter: LogsFilter, callback: LogsCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
113
|
-
onSlotChange(callback: SlotChangeCallback): ClientSubscriptionId;
|
|
114
|
-
onSlotUpdate(callback: SlotUpdateCallback): ClientSubscriptionId;
|
|
115
|
-
onSignature(signature: TransactionSignature, callback: SignatureResultCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
116
|
-
onSignatureWithOptions(signature: TransactionSignature, callback: SignatureSubscriptionCallback, options?: SignatureSubscriptionOptions): ClientSubscriptionId;
|
|
117
|
-
onRootChange(callback: RootChangeCallback): ClientSubscriptionId;
|
|
118
|
-
removeAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
119
|
-
removeProgramAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
120
|
-
removeOnLogsListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
121
|
-
removeSlotChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
122
|
-
removeSlotUpdateListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
123
|
-
removeSignatureListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
124
|
-
removeRootChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
125
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { PublicKey, Commitment, GetBalanceConfig, RpcResponseAndContext, Supply, TokenAmount, GetSupplyConfig, TokenAccountsFilter, GetProgramAccountsResponse, GetTokenAccountsByOwnerConfig, AccountInfo, ParsedAccountData, GetLargestAccountsConfig, AccountBalancePair, TokenAccountBalancePair, GetAccountInfoConfig, GetMultipleAccountsConfig, StakeActivationData, GetBlockHeightConfig, GetBlockProductionConfig, BlockProduction, GetLatestBlockhashConfig, BlockhashWithExpiryBlockHeight, SimulatedTransactionResponse, SimulateTransactionConfig, SendOptions, TransactionSignature, AddressLookupTableAccount, GetParsedProgramAccountsConfig, Finality, GetVersionedBlockConfig, VersionedBlockResponse, VersionedAccountsModeBlockResponse, VersionedNoneModeBlockResponse, ParsedAccountsModeBlockResponse, ParsedNoneModeBlockResponse, ParsedTransactionWithMeta, VersionedTransaction, VersionedTransactionResponse, ConfirmedBlock, ConfirmedSignatureInfo, ConfirmedSignaturesForAddress2Options, SignatureStatusConfig, SignatureStatus, Version, VoteAccountStatus, GetSlotConfig, GetSlotLeaderConfig, GetProgramAccountsConfig, SignatureResult, TransactionConfirmationStrategy, AccountChangeCallback, ProgramAccountChangeCallback, LogsCallback, SlotChangeCallback, SlotUpdateCallback, SignatureResultCallback, SignatureSubscriptionCallback, SignatureSubscriptionOptions, RootChangeCallback, GetStakeActivationConfig, InflationGovernor, GetTransactionCountConfig, GetInflationRewardConfig, InflationReward, InflationRate, GetEpochInfoConfig, EpochInfo, EpochSchedule, LeaderSchedule, Blockhash, FeeCalculator, PerfSample, VersionedMessage, GetRecentPrioritizationFeesConfig, RecentPrioritizationFees, IsBlockhashValidConfig, GetVersionedTransactionConfig, ParsedConfirmedTransaction, ConfirmedTransaction, BlockSignatures, SignaturesForAddressOptions, GetNonceAndContextConfig, NonceAccount, GetNonceConfig, GetStakeMinimumDelegationConfig, AccountSubscriptionConfig, ProgramAccountSubscriptionConfig, LogsFilter, ContactInfo } from '@solana/web3.js';
|
|
2
|
-
export type ClientSubscriptionId = number;
|
|
3
|
-
export interface ConnectionInterface {
|
|
4
|
-
readonly commitment?: Commitment;
|
|
5
|
-
readonly rpcEndpoint: string;
|
|
6
|
-
getBalanceAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<RpcResponseAndContext<number>>;
|
|
7
|
-
getBalance(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<number>;
|
|
8
|
-
getBlockTime(slot: number): Promise<number | null>;
|
|
9
|
-
getMinimumLedgerSlot(): Promise<number>;
|
|
10
|
-
getFirstAvailableBlock(): Promise<number>;
|
|
11
|
-
getSupply(config?: GetSupplyConfig | Commitment): Promise<RpcResponseAndContext<Supply>>;
|
|
12
|
-
getTokenSupply(tokenMintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
13
|
-
getTokenAccountBalance(tokenAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
14
|
-
getTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitmentOrConfig?: Commitment | GetTokenAccountsByOwnerConfig): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
15
|
-
getParsedTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitment?: Commitment): Promise<RpcResponseAndContext<Array<{
|
|
16
|
-
pubkey: PublicKey;
|
|
17
|
-
account: AccountInfo<ParsedAccountData>;
|
|
18
|
-
}>>>;
|
|
19
|
-
getLargestAccounts(config?: GetLargestAccountsConfig): Promise<RpcResponseAndContext<Array<AccountBalancePair>>>;
|
|
20
|
-
getTokenLargestAccounts(mintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<Array<TokenAccountBalancePair>>>;
|
|
21
|
-
getAccountInfoAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer> | null>>;
|
|
22
|
-
getParsedAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer | ParsedAccountData> | null>>;
|
|
23
|
-
getAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<AccountInfo<Buffer> | null>;
|
|
24
|
-
getMultipleParsedAccounts(publicKeys: PublicKey[], rawConfig?: GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer | ParsedAccountData> | null)[]>>;
|
|
25
|
-
getMultipleAccountsInfoAndContext(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer> | null)[]>>;
|
|
26
|
-
getMultipleAccountsInfo(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<(AccountInfo<Buffer> | null)[]>;
|
|
27
|
-
getStakeActivation(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetStakeActivationConfig, epoch?: number): Promise<StakeActivationData>;
|
|
28
|
-
getProgramAccounts(programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment): Promise<GetProgramAccountsResponse>;
|
|
29
|
-
getProgramAccounts(programId: PublicKey, configOrCommitment: GetProgramAccountsConfig & {
|
|
30
|
-
withContext: true;
|
|
31
|
-
}): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
32
|
-
getParsedProgramAccounts(programId: PublicKey, configOrCommitment?: GetParsedProgramAccountsConfig | Commitment): Promise<Array<{
|
|
33
|
-
pubkey: PublicKey;
|
|
34
|
-
account: AccountInfo<Buffer | ParsedAccountData>;
|
|
35
|
-
}>>;
|
|
36
|
-
confirmTransaction(strategy: TransactionConfirmationStrategy, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
37
|
-
confirmTransaction(strategy: TransactionSignature, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
38
|
-
getClusterNodes(): Promise<Array<ContactInfo>>;
|
|
39
|
-
getVoteAccounts(commitment?: Commitment): Promise<VoteAccountStatus>;
|
|
40
|
-
getSlot(commitmentOrConfig?: Commitment | GetSlotConfig): Promise<number>;
|
|
41
|
-
getSlotLeader(commitmentOrConfig?: Commitment | GetSlotLeaderConfig): Promise<string>;
|
|
42
|
-
getSlotLeaders(startSlot: number, limit: number): Promise<Array<PublicKey>>;
|
|
43
|
-
getSignatureStatus(signature: TransactionSignature, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<SignatureStatus | null>>;
|
|
44
|
-
getSignatureStatuses(signatures: Array<TransactionSignature>, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<Array<SignatureStatus | null>>>;
|
|
45
|
-
getTransactionCount(commitmentOrConfig?: Commitment | GetTransactionCountConfig): Promise<number>;
|
|
46
|
-
getTotalSupply(commitment?: Commitment): Promise<number>;
|
|
47
|
-
getInflationGovernor(commitment?: Commitment): Promise<InflationGovernor>;
|
|
48
|
-
getInflationReward(addresses: PublicKey[], epoch?: number, commitmentOrConfig?: Commitment | GetInflationRewardConfig): Promise<(InflationReward | null)[]>;
|
|
49
|
-
getInflationRate(): Promise<InflationRate>;
|
|
50
|
-
getEpochInfo(commitmentOrConfig?: Commitment | GetEpochInfoConfig): Promise<EpochInfo>;
|
|
51
|
-
getEpochSchedule(): Promise<EpochSchedule>;
|
|
52
|
-
getLeaderSchedule(): Promise<LeaderSchedule>;
|
|
53
|
-
getMinimumBalanceForRentExemption(dataLength: number, commitment?: Commitment): Promise<number>;
|
|
54
|
-
getRecentBlockhashAndContext(commitment?: Commitment): Promise<RpcResponseAndContext<{
|
|
55
|
-
blockhash: Blockhash;
|
|
56
|
-
feeCalculator: FeeCalculator;
|
|
57
|
-
}>>;
|
|
58
|
-
getRecentPerformanceSamples(limit?: number): Promise<Array<PerfSample>>;
|
|
59
|
-
getFeeCalculatorForBlockhash(blockhash: Blockhash, commitment?: Commitment): Promise<RpcResponseAndContext<FeeCalculator | null>>;
|
|
60
|
-
getFeeForMessage(message: VersionedMessage, commitment?: Commitment): Promise<RpcResponseAndContext<number | null>>;
|
|
61
|
-
getRecentPrioritizationFees(config?: GetRecentPrioritizationFeesConfig): Promise<RecentPrioritizationFees[]>;
|
|
62
|
-
getRecentBlockhash(commitment?: Commitment): Promise<{
|
|
63
|
-
blockhash: Blockhash;
|
|
64
|
-
feeCalculator: FeeCalculator;
|
|
65
|
-
}>;
|
|
66
|
-
getLatestBlockhash(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<BlockhashWithExpiryBlockHeight>;
|
|
67
|
-
getLatestBlockhashAndContext(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<RpcResponseAndContext<BlockhashWithExpiryBlockHeight>>;
|
|
68
|
-
isBlockhashValid(blockhash: Blockhash, rawConfig?: IsBlockhashValidConfig): Promise<RpcResponseAndContext<boolean>>;
|
|
69
|
-
getVersion(): Promise<Version>;
|
|
70
|
-
getGenesisHash(): Promise<string>;
|
|
71
|
-
getBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<VersionedBlockResponse | null>;
|
|
72
|
-
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
73
|
-
transactionDetails: 'accounts';
|
|
74
|
-
}): Promise<VersionedAccountsModeBlockResponse | null>;
|
|
75
|
-
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
76
|
-
transactionDetails: 'none';
|
|
77
|
-
}): Promise<VersionedNoneModeBlockResponse | null>;
|
|
78
|
-
getParsedBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<ParsedAccountsModeBlockResponse>;
|
|
79
|
-
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
80
|
-
transactionDetails: 'accounts';
|
|
81
|
-
}): Promise<ParsedAccountsModeBlockResponse>;
|
|
82
|
-
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
83
|
-
transactionDetails: 'none';
|
|
84
|
-
}): Promise<ParsedNoneModeBlockResponse>;
|
|
85
|
-
getBlockHeight(commitmentOrConfig?: Commitment | GetBlockHeightConfig): Promise<number>;
|
|
86
|
-
getBlockProduction(configOrCommitment?: GetBlockProductionConfig | Commitment): Promise<RpcResponseAndContext<BlockProduction>>;
|
|
87
|
-
getTransaction(signature: string, rawConfig?: GetVersionedTransactionConfig): Promise<VersionedTransactionResponse | null>;
|
|
88
|
-
getParsedTransaction(signature: TransactionSignature, commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<ParsedTransactionWithMeta | null>;
|
|
89
|
-
getParsedTransactions(signatures: TransactionSignature[], commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<(ParsedTransactionWithMeta | null)[]>;
|
|
90
|
-
getTransactions(signatures: TransactionSignature[], commitmentOrConfig: GetVersionedTransactionConfig | Finality): Promise<(VersionedTransactionResponse | null)[]>;
|
|
91
|
-
getConfirmedBlock(slot: number, commitment?: Finality): Promise<ConfirmedBlock>;
|
|
92
|
-
getBlocks(startSlot: number, endSlot?: number, commitment?: Finality): Promise<Array<number>>;
|
|
93
|
-
getBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
94
|
-
getConfirmedBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
95
|
-
getConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ConfirmedTransaction | null>;
|
|
96
|
-
getParsedConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ParsedConfirmedTransaction | null>;
|
|
97
|
-
getParsedConfirmedTransactions(signatures: TransactionSignature[], commitment?: Finality): Promise<(ParsedConfirmedTransaction | null)[]>;
|
|
98
|
-
getConfirmedSignaturesForAddress(address: PublicKey, startSlot: number, endSlot: number): Promise<Array<TransactionSignature>>;
|
|
99
|
-
getConfirmedSignaturesForAddress2(address: PublicKey, options?: ConfirmedSignaturesForAddress2Options, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
100
|
-
getSignaturesForAddress(address: PublicKey, options?: SignaturesForAddressOptions, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
101
|
-
getAddressLookupTable(accountKey: PublicKey, config?: GetAccountInfoConfig): Promise<RpcResponseAndContext<AddressLookupTableAccount | null>>;
|
|
102
|
-
getNonceAndContext(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceAndContextConfig): Promise<RpcResponseAndContext<NonceAccount | null>>;
|
|
103
|
-
getNonce(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceConfig): Promise<NonceAccount | null>;
|
|
104
|
-
requestAirdrop(to: PublicKey, lamports: number): Promise<TransactionSignature>;
|
|
105
|
-
getStakeMinimumDelegation(config?: GetStakeMinimumDelegationConfig): Promise<RpcResponseAndContext<number>>;
|
|
106
|
-
simulateTransaction(transaction: VersionedTransaction, config?: SimulateTransactionConfig): Promise<RpcResponseAndContext<SimulatedTransactionResponse>>;
|
|
107
|
-
sendTransaction(transaction: VersionedTransaction, options?: SendOptions): Promise<TransactionSignature>;
|
|
108
|
-
sendRawTransaction(rawTransaction: Buffer | Uint8Array | Array<number>, options?: SendOptions): Promise<TransactionSignature>;
|
|
109
|
-
sendEncodedTransaction(encodedTransaction: string, options?: SendOptions): Promise<TransactionSignature>;
|
|
110
|
-
onAccountChange(publicKey: PublicKey, callback: AccountChangeCallback, config?: AccountSubscriptionConfig): ClientSubscriptionId;
|
|
111
|
-
onProgramAccountChange(programId: PublicKey, callback: ProgramAccountChangeCallback, config?: ProgramAccountSubscriptionConfig): ClientSubscriptionId;
|
|
112
|
-
onLogs(filter: LogsFilter, callback: LogsCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
113
|
-
onSlotChange(callback: SlotChangeCallback): ClientSubscriptionId;
|
|
114
|
-
onSlotUpdate(callback: SlotUpdateCallback): ClientSubscriptionId;
|
|
115
|
-
onSignature(signature: TransactionSignature, callback: SignatureResultCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
116
|
-
onSignatureWithOptions(signature: TransactionSignature, callback: SignatureSubscriptionCallback, options?: SignatureSubscriptionOptions): ClientSubscriptionId;
|
|
117
|
-
onRootChange(callback: RootChangeCallback): ClientSubscriptionId;
|
|
118
|
-
removeAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
119
|
-
removeProgramAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
120
|
-
removeOnLogsListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
121
|
-
removeSlotChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
122
|
-
removeSlotUpdateListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
123
|
-
removeSignatureListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
124
|
-
removeRootChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
125
|
-
}
|