@solana/rpc-api 2.0.0-experimental.12ae1c6
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/LICENSE +20 -0
- package/README.md +17 -0
- package/dist/index.browser.cjs +199 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.js +197 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.native.js +197 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.node.cjs +199 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.js +197 -0
- package/dist/index.node.js.map +1 -0
- package/dist/types/common-transactions.d.ts +247 -0
- package/dist/types/common-transactions.d.ts.map +1 -0
- package/dist/types/common.d.ts +69 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/getAccountInfo.d.ts +35 -0
- package/dist/types/getAccountInfo.d.ts.map +1 -0
- package/dist/types/getBalance.d.ts +15 -0
- package/dist/types/getBalance.d.ts.map +1 -0
- package/dist/types/getBlock.d.ts +174 -0
- package/dist/types/getBlock.d.ts.map +1 -0
- package/dist/types/getBlockCommitment.d.ts +15 -0
- package/dist/types/getBlockCommitment.d.ts.map +1 -0
- package/dist/types/getBlockHeight.d.ts +14 -0
- package/dist/types/getBlockHeight.d.ts.map +1 -0
- package/dist/types/getBlockProduction.d.ts +39 -0
- package/dist/types/getBlockProduction.d.ts.map +1 -0
- package/dist/types/getBlockTime.d.ts +14 -0
- package/dist/types/getBlockTime.d.ts.map +1 -0
- package/dist/types/getBlocks.d.ts +13 -0
- package/dist/types/getBlocks.d.ts.map +1 -0
- package/dist/types/getBlocksWithLimit.d.ts +14 -0
- package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
- package/dist/types/getClusterNodes.d.ts +34 -0
- package/dist/types/getClusterNodes.d.ts.map +1 -0
- package/dist/types/getEpochInfo.d.ts +27 -0
- package/dist/types/getEpochInfo.d.ts.map +1 -0
- package/dist/types/getEpochSchedule.d.ts +23 -0
- package/dist/types/getEpochSchedule.d.ts.map +1 -0
- package/dist/types/getFeeForMessage.d.ts +16 -0
- package/dist/types/getFeeForMessage.d.ts.map +1 -0
- package/dist/types/getFirstAvailableBlock.d.ts +12 -0
- package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
- package/dist/types/getGenesisHash.d.ts +11 -0
- package/dist/types/getGenesisHash.d.ts.map +1 -0
- package/dist/types/getHealth.d.ts +10 -0
- package/dist/types/getHealth.d.ts.map +1 -0
- package/dist/types/getHighestSnapshotSlot.d.ts +18 -0
- package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
- package/dist/types/getIdentity.d.ts +13 -0
- package/dist/types/getIdentity.d.ts.map +1 -0
- package/dist/types/getInflationGovernor.d.ts +29 -0
- package/dist/types/getInflationGovernor.d.ts.map +1 -0
- package/dist/types/getInflationRate.d.ts +21 -0
- package/dist/types/getInflationRate.d.ts.map +1 -0
- package/dist/types/getInflationReward.d.ts +22 -0
- package/dist/types/getInflationReward.d.ts.map +1 -0
- package/dist/types/getLargestAccounts.d.ts +23 -0
- package/dist/types/getLargestAccounts.d.ts.map +1 -0
- package/dist/types/getLatestBlockhash.d.ts +19 -0
- package/dist/types/getLatestBlockhash.d.ts.map +1 -0
- package/dist/types/getLeaderSchedule.d.ts +51 -0
- package/dist/types/getLeaderSchedule.d.ts.map +1 -0
- package/dist/types/getMaxRetransmitSlot.d.ts +12 -0
- package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
- package/dist/types/getMaxShredInsertSlot.d.ts +12 -0
- package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts +13 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
- package/dist/types/getMultipleAccounts.d.ts +45 -0
- package/dist/types/getMultipleAccounts.d.ts.map +1 -0
- package/dist/types/getProgramAccounts.d.ts +61 -0
- package/dist/types/getProgramAccounts.d.ts.map +1 -0
- package/dist/types/getRecentPerformanceSamples.d.ts +25 -0
- package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -0
- package/dist/types/getRecentPrioritizationFees.d.ts +31 -0
- package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -0
- package/dist/types/getSignatureStatuses.d.ts +58 -0
- package/dist/types/getSignatureStatuses.d.ts.map +1 -0
- package/dist/types/getSignaturesForAddress.d.ts +40 -0
- package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
- package/dist/types/getSlot.d.ts +14 -0
- package/dist/types/getSlot.d.ts.map +1 -0
- package/dist/types/getSlotLeader.d.ts +13 -0
- package/dist/types/getSlotLeader.d.ts.map +1 -0
- package/dist/types/getSlotLeaders.d.ts +17 -0
- package/dist/types/getSlotLeaders.d.ts.map +1 -0
- package/dist/types/getStakeActivation.d.ts +24 -0
- package/dist/types/getStakeActivation.d.ts.map +1 -0
- package/dist/types/getStakeMinimumDelegation.d.ts +13 -0
- package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
- package/dist/types/getSupply.d.ts +42 -0
- package/dist/types/getSupply.d.ts.map +1 -0
- package/dist/types/getTokenAccountBalance.d.ts +16 -0
- package/dist/types/getTokenAccountBalance.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts +55 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByOwner.d.ts +55 -0
- package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -0
- package/dist/types/getTokenLargestAccounts.d.ts +16 -0
- package/dist/types/getTokenLargestAccounts.d.ts.map +1 -0
- package/dist/types/getTokenSupply.d.ts +16 -0
- package/dist/types/getTokenSupply.d.ts.map +1 -0
- package/dist/types/getTransaction.d.ts +166 -0
- package/dist/types/getTransaction.d.ts.map +1 -0
- package/dist/types/getTransactionCount.d.ts +14 -0
- package/dist/types/getTransactionCount.d.ts.map +1 -0
- package/dist/types/getVersion.d.ts +15 -0
- package/dist/types/getVersion.d.ts.map +1 -0
- package/dist/types/getVoteAccounts.d.ts +44 -0
- package/dist/types/getVoteAccounts.d.ts.map +1 -0
- package/dist/types/index.d.ts +64 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/isBlockhashValid.d.ts +18 -0
- package/dist/types/isBlockhashValid.d.ts.map +1 -0
- package/dist/types/minimumLedgerSlot.d.ts +12 -0
- package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
- package/dist/types/requestAirdrop.d.ts +16 -0
- package/dist/types/requestAirdrop.d.ts.map +1 -0
- package/dist/types/sendTransaction.d.ts +49 -0
- package/dist/types/sendTransaction.d.ts.map +1 -0
- package/dist/types/simulateTransaction.d.ts +105 -0
- package/dist/types/simulateTransaction.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Base58EncodedBytes, Blockhash, Commitment, Slot, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
|
|
3
|
+
import type { TransactionVersion } from '@solana/transactions';
|
|
4
|
+
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions.js';
|
|
5
|
+
type GetBlockApiResponseBase = Readonly<{
|
|
6
|
+
/** the blockhash of this block */
|
|
7
|
+
blockhash: Blockhash;
|
|
8
|
+
/** The number of blocks beneath this block */
|
|
9
|
+
blockHeight: U64UnsafeBeyond2Pow53Minus1;
|
|
10
|
+
/** The number of blocks beneath this block */
|
|
11
|
+
blockTime: UnixTimestamp;
|
|
12
|
+
/** The slot index of this block's parent */
|
|
13
|
+
parentSlot: Slot;
|
|
14
|
+
/** The blockhash of this block's parent */
|
|
15
|
+
previousBlockhash: Blockhash;
|
|
16
|
+
}>;
|
|
17
|
+
type GetBlockApiResponseWithRewards = Readonly<{
|
|
18
|
+
/** Block-level rewards */
|
|
19
|
+
rewards: readonly Reward[];
|
|
20
|
+
}>;
|
|
21
|
+
type GetBlockApiResponseWithSignatures = Readonly<{
|
|
22
|
+
/** List of signatures applied to transactions in this block */
|
|
23
|
+
signatures: readonly Base58EncodedBytes[];
|
|
24
|
+
}>;
|
|
25
|
+
type GetBlockApiResponseWithTransactions<TTransaction> = Readonly<{
|
|
26
|
+
transactions: readonly TTransaction[];
|
|
27
|
+
}>;
|
|
28
|
+
type GetBlockCommonConfig = Readonly<{
|
|
29
|
+
/** @defaultValue finalized */
|
|
30
|
+
commitment?: Omit<Commitment, 'processed'>;
|
|
31
|
+
}>;
|
|
32
|
+
type GetBlockEncoding = 'base58' | 'base64' | 'json' | 'jsonParsed';
|
|
33
|
+
type GetBlockMaxSupportedTransactionVersion = Exclude<TransactionVersion, 'legacy'>;
|
|
34
|
+
export interface GetBlockApi extends RpcApiMethods {
|
|
35
|
+
/**
|
|
36
|
+
* Returns identity and transaction information about a confirmed block in the ledger
|
|
37
|
+
*/
|
|
38
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
39
|
+
encoding?: GetBlockEncoding;
|
|
40
|
+
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
|
|
41
|
+
rewards: false;
|
|
42
|
+
transactionDetails: 'none';
|
|
43
|
+
}>): GetBlockApiResponseBase | null;
|
|
44
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
45
|
+
encoding?: GetBlockEncoding;
|
|
46
|
+
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
|
|
47
|
+
rewards?: true;
|
|
48
|
+
transactionDetails: 'none';
|
|
49
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards) | null;
|
|
50
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
51
|
+
encoding?: GetBlockEncoding;
|
|
52
|
+
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
|
|
53
|
+
rewards: false;
|
|
54
|
+
transactionDetails: 'signatures';
|
|
55
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithSignatures) | null;
|
|
56
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
57
|
+
encoding?: GetBlockEncoding;
|
|
58
|
+
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
|
|
59
|
+
rewards?: true;
|
|
60
|
+
transactionDetails: 'signatures';
|
|
61
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithSignatures) | null;
|
|
62
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
63
|
+
encoding?: GetBlockEncoding;
|
|
64
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
65
|
+
rewards: false;
|
|
66
|
+
transactionDetails: 'accounts';
|
|
67
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForAccounts<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
68
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
69
|
+
encoding?: GetBlockEncoding;
|
|
70
|
+
rewards: false;
|
|
71
|
+
transactionDetails: 'accounts';
|
|
72
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForAccounts<void>>) | null;
|
|
73
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
74
|
+
encoding?: GetBlockEncoding;
|
|
75
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
76
|
+
rewards?: true;
|
|
77
|
+
transactionDetails: 'accounts';
|
|
78
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForAccounts<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
79
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
80
|
+
encoding?: GetBlockEncoding;
|
|
81
|
+
rewards?: true;
|
|
82
|
+
transactionDetails: 'accounts';
|
|
83
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForAccounts<void>>) | null;
|
|
84
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
85
|
+
encoding: 'base58';
|
|
86
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
87
|
+
rewards: false;
|
|
88
|
+
transactionDetails?: 'full';
|
|
89
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullBase58<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
90
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
91
|
+
encoding: 'base58';
|
|
92
|
+
rewards: false;
|
|
93
|
+
transactionDetails?: 'full';
|
|
94
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullBase58<void>>) | null;
|
|
95
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
96
|
+
encoding: 'base58';
|
|
97
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
98
|
+
rewards?: true;
|
|
99
|
+
transactionDetails?: 'full';
|
|
100
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullBase58<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
101
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
102
|
+
encoding: 'base58';
|
|
103
|
+
rewards?: true;
|
|
104
|
+
transactionDetails?: 'full';
|
|
105
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullBase58<void>>) | null;
|
|
106
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
107
|
+
encoding: 'base64';
|
|
108
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
109
|
+
rewards: false;
|
|
110
|
+
transactionDetails?: 'full';
|
|
111
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullBase64<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
112
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
113
|
+
encoding: 'base64';
|
|
114
|
+
rewards: false;
|
|
115
|
+
transactionDetails?: 'full';
|
|
116
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullBase64<void>>) | null;
|
|
117
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
118
|
+
encoding: 'base64';
|
|
119
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
120
|
+
rewards?: true;
|
|
121
|
+
transactionDetails?: 'full';
|
|
122
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullBase64<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
123
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
124
|
+
encoding: 'base64';
|
|
125
|
+
rewards?: true;
|
|
126
|
+
transactionDetails?: 'full';
|
|
127
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullBase64<void>>) | null;
|
|
128
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
129
|
+
encoding: 'jsonParsed';
|
|
130
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
131
|
+
rewards: false;
|
|
132
|
+
transactionDetails?: 'full';
|
|
133
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullJsonParsed<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
134
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
135
|
+
encoding: 'jsonParsed';
|
|
136
|
+
rewards: false;
|
|
137
|
+
transactionDetails?: 'full';
|
|
138
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullJsonParsed<void>>) | null;
|
|
139
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
140
|
+
encoding: 'jsonParsed';
|
|
141
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
142
|
+
rewards?: boolean;
|
|
143
|
+
transactionDetails?: 'full';
|
|
144
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullJsonParsed<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
145
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
146
|
+
encoding: 'jsonParsed';
|
|
147
|
+
rewards?: boolean;
|
|
148
|
+
transactionDetails?: 'full';
|
|
149
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullJsonParsed<void>>) | null;
|
|
150
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
151
|
+
encoding?: 'json';
|
|
152
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
153
|
+
rewards: false;
|
|
154
|
+
transactionDetails?: 'full';
|
|
155
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullJson<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
156
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
157
|
+
encoding?: 'json';
|
|
158
|
+
rewards: false;
|
|
159
|
+
transactionDetails?: 'full';
|
|
160
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithTransactions<TransactionForFullJson<void>>) | null;
|
|
161
|
+
getBlock(slot: Slot, config: GetBlockCommonConfig & Readonly<{
|
|
162
|
+
encoding?: 'json';
|
|
163
|
+
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
|
|
164
|
+
rewards?: boolean;
|
|
165
|
+
transactionDetails?: 'full';
|
|
166
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullJson<GetBlockMaxSupportedTransactionVersion>>) | null;
|
|
167
|
+
getBlock(slot: Slot, config?: GetBlockCommonConfig & Readonly<{
|
|
168
|
+
encoding?: 'json';
|
|
169
|
+
rewards?: boolean;
|
|
170
|
+
transactionDetails?: 'full';
|
|
171
|
+
}>): (GetBlockApiResponseBase & GetBlockApiResponseWithRewards & GetBlockApiResponseWithTransactions<TransactionForFullJson<void>>) | null;
|
|
172
|
+
}
|
|
173
|
+
export {};
|
|
174
|
+
//# sourceMappingURL=getBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlock.d.ts","sourceRoot":"","sources":["../../src/getBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,IAAI,EACJ,2BAA2B,EAC3B,aAAa,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EACH,MAAM,EACN,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC/B,MAAM,uBAAuB,CAAC;AAI/B,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,8CAA8C;IAC9C,WAAW,EAAE,2BAA2B,CAAC;IACzC,8CAA8C;IAC9C,SAAS,EAAE,aAAa,CAAC;IACzB,4CAA4C;IAC5C,UAAU,EAAE,IAAI,CAAC;IACjB,2CAA2C;IAC3C,iBAAiB,EAAE,SAAS,CAAC;CAChC,CAAC,CAAC;AAEH,KA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V,MAAM,EAAE,oBAAoB,GACxB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,KAAK,CAAC;QACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GACP,CAAC,uBAAuB,GAAG,mCAAmC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAExG,QAAQ,CACJ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,oBAAoB,GACxB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,8BAA8B,EAAE,sCAAsC,CAAC;QACvE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GAEJ,CAAC,uBAAuB,GACpB,8BAA8B,GAC9B,mCAAmC,CAAC,sBAAsB,CAAC,sCAAsC,CAAC,CAAC,CAAC,GACxG,IAAI,CAAC;IAEX,QAAQ,CACJ,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,oBAAoB,GACzB,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC,GAEJ,CAAC,uBAAuB,GACpB,8BAA8B,GAC9B,mCAAmC,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,GACtE,IAAI,CAAC;CACd"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { LamportsUnsafeBeyond2Pow53Minus1, Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetBlockCommitmentApiResponse = Readonly<{
|
|
4
|
+
commitment: LamportsUnsafeBeyond2Pow53Minus1[] | null;
|
|
5
|
+
totalStake: LamportsUnsafeBeyond2Pow53Minus1;
|
|
6
|
+
}>;
|
|
7
|
+
export interface GetBlockCommitmentApi extends RpcApiMethods {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the amount of cluster stake in lamports that has voted on
|
|
10
|
+
* a particular block, as well as the stake attributed to each vote account
|
|
11
|
+
*/
|
|
12
|
+
getBlockCommitment(slot: Slot): GetBlockCommitmentApiResponse;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getBlockCommitment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockCommitment.d.ts","sourceRoot":"","sources":["../../src/getBlockCommitment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEhF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,UAAU,EAAE,gCAAgC,EAAE,GAAG,IAAI,CAAC;IACtD,UAAU,EAAE,gCAAgC,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,6BAA6B,CAAC;CACjE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetBlockHeightApiResponse = U64UnsafeBeyond2Pow53Minus1;
|
|
4
|
+
export interface GetBlockHeightApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current block height of the node
|
|
7
|
+
*/
|
|
8
|
+
getBlockHeight(config?: Readonly<{
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
}>): GetBlockHeightApiResponse;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=getBlockHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockHeight.d.ts","sourceRoot":"","sources":["../../src/getBlockHeight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,yBAAyB,GAAG,2BAA2B,CAAC;AAE7D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CACV,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,yBAAyB,CAAC;CAChC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
4
|
+
type NumberOfLeaderSlots = U64UnsafeBeyond2Pow53Minus1;
|
|
5
|
+
type NumberOfBlocksProduced = U64UnsafeBeyond2Pow53Minus1;
|
|
6
|
+
type SlotRange = Readonly<{
|
|
7
|
+
firstSlot: Slot;
|
|
8
|
+
lastSlot: Slot;
|
|
9
|
+
}>;
|
|
10
|
+
type GetBlockProductionApiConfigBase = Readonly<{
|
|
11
|
+
commitment?: Commitment;
|
|
12
|
+
range?: SlotRange;
|
|
13
|
+
}>;
|
|
14
|
+
type GetBlockProductionApiResponseBase = SolanaRpcResponse<{
|
|
15
|
+
range: SlotRange;
|
|
16
|
+
}>;
|
|
17
|
+
type GetBlockProductionApiResponseWithAllIdentities = Readonly<{
|
|
18
|
+
value: Readonly<{
|
|
19
|
+
byIdentity: Record<Address, [NumberOfLeaderSlots, NumberOfBlocksProduced]>;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
type GetBlockProductionApiResponseWithSingleIdentity<TIdentity extends string> = Readonly<{
|
|
23
|
+
value: Readonly<{
|
|
24
|
+
byIdentity: Readonly<{
|
|
25
|
+
[TAddress in TIdentity]?: [NumberOfLeaderSlots, NumberOfBlocksProduced];
|
|
26
|
+
}>;
|
|
27
|
+
}>;
|
|
28
|
+
}>;
|
|
29
|
+
export interface GetBlockProductionApi extends RpcApiMethods {
|
|
30
|
+
/**
|
|
31
|
+
* Returns recent block production information from the current or previous epoch.
|
|
32
|
+
*/
|
|
33
|
+
getBlockProduction<TIdentity extends Address>(config: GetBlockProductionApiConfigBase & Readonly<{
|
|
34
|
+
identity: TIdentity;
|
|
35
|
+
}>): GetBlockProductionApiResponseBase & GetBlockProductionApiResponseWithSingleIdentity<TIdentity>;
|
|
36
|
+
getBlockProduction(config?: GetBlockProductionApiConfigBase): GetBlockProductionApiResponseBase & GetBlockProductionApiResponseWithAllIdentities;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=getBlockProduction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockProduction.d.ts","sourceRoot":"","sources":["../../src/getBlockProduction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE1G,KAAK,mBAAmB,GAAG,2BAA2B,CAAC;AACvD,KAAK,sBAAsB,GAAG,2BAA2B,CAAC;AAE1D,KAAK,SAAS,GAAG,QAAQ,CAAC;IACtB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAEH,KAAK,+BAA+B,GAAG,QAAQ,CAAC;IAC5C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,KAAK,iCAAiC,GAAG,iBAAiB,CAAC;IACvD,KAAK,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEH,KAAK,8CAA8C,GAAG,QAAQ,CAAC;IAC3D,KAAK,EAAE,QAAQ,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,CAAC;KAC9E,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,KAAK,+CAA+C,CAAC,SAAS,SAAS,MAAM,IAAI,QAAQ,CAAC;IACtF,KAAK,EAAE,QAAQ,CAAC;QACZ,UAAU,EAAE,QAAQ,CAAC;aAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;SAAE,CAAC,CAAC;KACrG,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CAAC,SAAS,SAAS,OAAO,EACxC,MAAM,EAAE,+BAA+B,GACnC,QAAQ,CAAC;QACL,QAAQ,EAAE,SAAS,CAAC;KACvB,CAAC,GACP,iCAAiC,GAAG,+CAA+C,CAAC,SAAS,CAAC,CAAC;IAClG,kBAAkB,CACd,MAAM,CAAC,EAAE,+BAA+B,GACzC,iCAAiC,GAAG,8CAA8C,CAAC;CACzF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot, UnixTimestamp } from '@solana/rpc-types';
|
|
3
|
+
/** Estimated production time, as Unix timestamp (seconds since the Unix epoch) */
|
|
4
|
+
type GetBlockTimeApiResponse = UnixTimestamp;
|
|
5
|
+
export interface GetBlockTimeApi extends RpcApiMethods {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the estimated production time of a block.
|
|
8
|
+
*/
|
|
9
|
+
getBlockTime(
|
|
10
|
+
/** block number, identified by Slot */
|
|
11
|
+
blockNumber: Slot): GetBlockTimeApiResponse;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=getBlockTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockTime.d.ts","sourceRoot":"","sources":["../../src/getBlockTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,kFAAkF;AAClF,KAAK,uBAAuB,GAAG,aAAa,CAAC;AAE7C,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAClD;;OAEG;IACH,YAAY;IACR,uCAAuC;IACvC,WAAW,EAAE,IAAI,GAClB,uBAAuB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetBlocksApiResponse = Slot[];
|
|
4
|
+
export interface GetBlocksApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns a list of confirmed blocks between two slots
|
|
7
|
+
*/
|
|
8
|
+
getBlocks(startSlot: Slot, endSlotInclusive?: Slot, config?: Readonly<{
|
|
9
|
+
commitment?: Exclude<Commitment, 'processed'>;
|
|
10
|
+
}>): GetBlocksApiResponse;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getBlocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlocks.d.ts","sourceRoot":"","sources":["../../src/getBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,oBAAoB,GAAG,IAAI,EAAE,CAAC;AAEnC,MAAM,WAAW,YAAa,SAAQ,aAAa;IAC/C;;OAEG;IACH,SAAS,CACL,SAAS,EAAE,IAAI,EACf,gBAAgB,CAAC,EAAE,IAAI,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,oBAAoB,CAAC;CAC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetBlocksWithLimitApiResponse = Slot[];
|
|
4
|
+
export interface GetBlocksWithLimitApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns a list of confirmed blocks starting at the given slot
|
|
7
|
+
* for up to `limit` blocks
|
|
8
|
+
*/
|
|
9
|
+
getBlocksWithLimit(startSlot: Slot, limit: number, config?: Readonly<{
|
|
10
|
+
commitment?: Exclude<Commitment, 'processed'>;
|
|
11
|
+
}>): GetBlocksWithLimitApiResponse;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=getBlocksWithLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlocksWithLimit.d.ts","sourceRoot":"","sources":["../../src/getBlocksWithLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,6BAA6B,GAAG,IAAI,EAAE,CAAC;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CACd,SAAS,EAAE,IAAI,EAGf,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,6BAA6B,CAAC;CACpC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
type GetClusterNodesNode = Readonly<{
|
|
4
|
+
/** The unique identifier of the node's feature set */
|
|
5
|
+
featureSet: number | null;
|
|
6
|
+
/** Gossip network address for the node */
|
|
7
|
+
gossip: string | null;
|
|
8
|
+
/** Node public key, as base-58 encoded string */
|
|
9
|
+
pubkey: Address;
|
|
10
|
+
/**
|
|
11
|
+
* JSON RPC network address for the node,
|
|
12
|
+
* or `null` if the JSON RPC service is not enabled
|
|
13
|
+
*/
|
|
14
|
+
rpc: string | null;
|
|
15
|
+
/** The shred version the node has been configured to use */
|
|
16
|
+
shredVersion: number | null;
|
|
17
|
+
/** TPU network address for the node */
|
|
18
|
+
tpu: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The software version of the node,
|
|
21
|
+
* or `null` if the version information is not available
|
|
22
|
+
*/
|
|
23
|
+
version: string | null;
|
|
24
|
+
}>;
|
|
25
|
+
type GetClusterNodesApiResponse = readonly GetClusterNodesNode[];
|
|
26
|
+
export interface GetClusterNodesApi extends RpcApiMethods {
|
|
27
|
+
/**
|
|
28
|
+
* Returns information about all the nodes participating in the cluster
|
|
29
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
30
|
+
*/
|
|
31
|
+
getClusterNodes(NO_CONFIG?: Record<string, never>): GetClusterNodesApiResponse;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=getClusterNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClusterNodes.d.ts","sourceRoot":"","sources":["../../src/getClusterNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAChC,sDAAsD;IACtD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,uCAAuC;IACvC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC,CAAC;AAEH,KAAK,0BAA0B,GAAG,SAAS,mBAAmB,EAAE,CAAC;AAEjE,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACrD;;;OAGG;IACH,eAAe,CAEX,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,0BAA0B,CAAC;CACjC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetEpochInfoApiResponse = Readonly<{
|
|
4
|
+
/** the current slot */
|
|
5
|
+
absoluteSlot: Slot;
|
|
6
|
+
/** the current block height */
|
|
7
|
+
blockHeight: U64UnsafeBeyond2Pow53Minus1;
|
|
8
|
+
/** the current epoch */
|
|
9
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
10
|
+
/** the current slot relative to the start of the current epoch */
|
|
11
|
+
slotIndex: U64UnsafeBeyond2Pow53Minus1;
|
|
12
|
+
/** the number of slots in this epoch */
|
|
13
|
+
slotsInEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
14
|
+
/** total number of transactions processed without error since genesis */
|
|
15
|
+
transactionCount: U64UnsafeBeyond2Pow53Minus1 | null;
|
|
16
|
+
}>;
|
|
17
|
+
export interface GetEpochInfoApi extends RpcApiMethods {
|
|
18
|
+
/**
|
|
19
|
+
* Returns the balance of the account of provided Pubkey
|
|
20
|
+
*/
|
|
21
|
+
getEpochInfo(config?: Readonly<{
|
|
22
|
+
commitment?: Commitment;
|
|
23
|
+
minContextSlot?: Slot;
|
|
24
|
+
}>): GetEpochInfoApiResponse;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=getEpochInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEpochInfo.d.ts","sourceRoot":"","sources":["../../src/getEpochInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,uBAAuB;IACvB,YAAY,EAAE,IAAI,CAAC;IACnB,+BAA+B;IAC/B,WAAW,EAAE,2BAA2B,CAAC;IACzC,wBAAwB;IACxB,KAAK,EAAE,2BAA2B,CAAC;IACnC,kEAAkE;IAClE,SAAS,EAAE,2BAA2B,CAAC;IACvC,wCAAwC;IACxC,YAAY,EAAE,2BAA2B,CAAC;IAC1C,yEAAyE;IACzE,gBAAgB,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAClD;;OAEG;IACH,YAAY,CACR,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,uBAAuB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetEpochScheduleApiResponse = Readonly<{
|
|
4
|
+
/** the maximum number of slots in each epoch */
|
|
5
|
+
slotsPerEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
6
|
+
/** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
|
|
7
|
+
leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
|
|
8
|
+
/** whether epochs start short and grow */
|
|
9
|
+
warmup: boolean;
|
|
10
|
+
/** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
|
|
11
|
+
firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
12
|
+
/** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
|
|
13
|
+
firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
|
|
14
|
+
}>;
|
|
15
|
+
export interface GetEpochScheduleApi extends RpcApiMethods {
|
|
16
|
+
/**
|
|
17
|
+
* Returns the epoch schedule information from this cluster's genesis config
|
|
18
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
19
|
+
*/
|
|
20
|
+
getEpochSchedule(NO_CONFIG?: Record<string, never>): GetEpochScheduleApiResponse;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=getEpochSchedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEpochSchedule.d.ts","sourceRoot":"","sources":["../../src/getEpochSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,gDAAgD;IAChD,aAAa,EAAE,2BAA2B,CAAC;IAC3C,qGAAqG;IACrG,wBAAwB,EAAE,2BAA2B,CAAC;IACtD,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,qFAAqF;IACrF,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C,2DAA2D;IAC3D,eAAe,EAAE,2BAA2B,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;;OAGG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
import type { SerializedMessageBytesBase64 } from '@solana/transactions';
|
|
4
|
+
/** Fee corresponding to the message at the specified blockhash */
|
|
5
|
+
type GetFeeForMessageApiResponse = SolanaRpcResponse<U64UnsafeBeyond2Pow53Minus1 | null>;
|
|
6
|
+
export interface GetFeeForMessageApi extends RpcApiMethods {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the fee the network will charge for a particular Message
|
|
9
|
+
*/
|
|
10
|
+
getFeeForMessage(message: SerializedMessageBytesBase64, config?: Readonly<{
|
|
11
|
+
commitment?: Commitment;
|
|
12
|
+
minContextSlot?: Slot;
|
|
13
|
+
}>): GetFeeForMessageApiResponse;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=getFeeForMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeForMessage.d.ts","sourceRoot":"","sources":["../../src/getFeeForMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC1G,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEzE,kEAAkE;AAClE,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAAC;AAEzF,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;OAEG;IACH,gBAAgB,CACZ,OAAO,EAAE,4BAA4B,EACrC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,2BAA2B,CAAC;CAClC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetFirstAvailableBlockApiResponse = Slot;
|
|
4
|
+
export interface GetFirstAvailableBlockApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the slot of the lowest confirmed block that has not been purged from the ledger
|
|
7
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
8
|
+
*/
|
|
9
|
+
getFirstAvailableBlock(NO_CONFIG?: Record<string, never>): GetFirstAvailableBlockApiResponse;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getFirstAvailableBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFirstAvailableBlock.d.ts","sourceRoot":"","sources":["../../src/getFirstAvailableBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC5D;;;OAGG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Blockhash } from '@solana/rpc-types';
|
|
3
|
+
type GetGenesisHashApiResponse = Blockhash;
|
|
4
|
+
export interface GetGenesisHashApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the genesis hash
|
|
7
|
+
*/
|
|
8
|
+
getGenesisHash(NO_CONFIG?: Record<string, never>): GetGenesisHashApiResponse;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=getGenesisHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGenesisHash.d.ts","sourceRoot":"","sources":["../../src/getGenesisHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,yBAAyB,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CAEV,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,yBAAyB,CAAC;CAChC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
type GetHealthApiResponse = 'ok';
|
|
3
|
+
export interface GetHealthApi extends RpcApiMethods {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the health status of the node ("ok" if healthy).
|
|
6
|
+
*/
|
|
7
|
+
getHealth(NO_CONFIG?: Record<string, never>): GetHealthApiResponse;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=getHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHealth.d.ts","sourceRoot":"","sources":["../../src/getHealth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,oBAAoB,GAAG,IAAI,CAAC;AAEjC,MAAM,WAAW,YAAa,SAAQ,aAAa;IAC/C;;OAEG;IACH,SAAS,CAEL,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,oBAAoB,CAAC;CAC3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetHighestSnapshotSlotApiResponse = Readonly<{
|
|
4
|
+
full: Slot;
|
|
5
|
+
incremental: Slot | null;
|
|
6
|
+
}>;
|
|
7
|
+
export interface GetHighestSnapshotSlotApi extends RpcApiMethods {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the highest slot information that the node has snapshots for.
|
|
10
|
+
*
|
|
11
|
+
* This will find the highest full snapshot slot, and the highest
|
|
12
|
+
* incremental snapshot slot based on the full snapshot slot, if there
|
|
13
|
+
* is one.
|
|
14
|
+
*/
|
|
15
|
+
getHighestSnapshotSlot(NO_CONFIG?: Record<string, never>): GetHighestSnapshotSlotApiResponse;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=getHighestSnapshotSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHighestSnapshotSlot.d.ts","sourceRoot":"","sources":["../../src/getHighestSnapshotSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,QAAQ,CAAC;IAC9C,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC5D;;;;;;OAMG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
type GetIdentityApiResponse = Readonly<{
|
|
4
|
+
identity: Address;
|
|
5
|
+
}>;
|
|
6
|
+
export interface GetIdentityApi extends RpcApiMethods {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the identity pubkey for the current node
|
|
9
|
+
*/
|
|
10
|
+
getIdentity(NO_CONFIG?: Record<string, never>): GetIdentityApiResponse;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getIdentity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIdentity.d.ts","sourceRoot":"","sources":["../../src/getIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,sBAAsB,GAAG,QAAQ,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,aAAa;IACjD;;OAEG;IACH,WAAW,CAEP,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,sBAAsB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment } from '@solana/rpc-types';
|
|
3
|
+
import type { F64UnsafeSeeDocumentation } from './common.js';
|
|
4
|
+
type GetInflationGovernorApiResponse = Readonly<{
|
|
5
|
+
/** The initial inflation percentage from time 0 */
|
|
6
|
+
initial: F64UnsafeSeeDocumentation;
|
|
7
|
+
/** Percentage of total inflation allocated to the foundation */
|
|
8
|
+
foundation: F64UnsafeSeeDocumentation;
|
|
9
|
+
/** Duration of foundation pool inflation in years */
|
|
10
|
+
foundationTerm: F64UnsafeSeeDocumentation;
|
|
11
|
+
/**
|
|
12
|
+
* Rate per year at which inflation is lowered.
|
|
13
|
+
* (Rate reduction is derived using the target
|
|
14
|
+
* slot time in genesis config)
|
|
15
|
+
*/
|
|
16
|
+
taper: F64UnsafeSeeDocumentation;
|
|
17
|
+
/** Terminal inflation percentage */
|
|
18
|
+
terminal: F64UnsafeSeeDocumentation;
|
|
19
|
+
}>;
|
|
20
|
+
export interface GetInflationGovernorApi extends RpcApiMethods {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the current inflation governor
|
|
23
|
+
*/
|
|
24
|
+
getInflationGovernor(config?: Readonly<{
|
|
25
|
+
commitment?: Commitment;
|
|
26
|
+
}>): GetInflationGovernorApiResponse;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=getInflationGovernor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInflationGovernor.d.ts","sourceRoot":"","sources":["../../src/getInflationGovernor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAE1D,KAAK,+BAA+B,GAAG,QAAQ,CAAC;IAC5C,mDAAmD;IACnD,OAAO,EAAE,yBAAyB,CAAC;IACnC,gEAAgE;IAChE,UAAU,EAAE,yBAAyB,CAAC;IACtC,qDAAqD;IACrD,cAAc,EAAE,yBAAyB,CAAC;IAC1C;;;;OAIG;IACH,KAAK,EAAE,yBAAyB,CAAC;IACjC,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D;;OAEG;IACH,oBAAoB,CAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,+BAA+B,CAAC;CACtC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
import type { F64UnsafeSeeDocumentation } from './common.js';
|
|
4
|
+
type GetInflationRateApiResponse = Readonly<{
|
|
5
|
+
/** Epoch for which these values are valid */
|
|
6
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
+
/** Inflation allocated to the foundation */
|
|
8
|
+
foundation: F64UnsafeSeeDocumentation;
|
|
9
|
+
/** Total inflation */
|
|
10
|
+
total: F64UnsafeSeeDocumentation;
|
|
11
|
+
/** Inflation allocated to validators */
|
|
12
|
+
validator: F64UnsafeSeeDocumentation;
|
|
13
|
+
}>;
|
|
14
|
+
export interface GetInflationRateApi extends RpcApiMethods {
|
|
15
|
+
/**
|
|
16
|
+
* Returns the current block height of the node
|
|
17
|
+
*/
|
|
18
|
+
getInflationRate(NO_CONFIG?: Record<string, never>): GetInflationRateApiResponse;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=getInflationRate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInflationRate.d.ts","sourceRoot":"","sources":["../../src/getInflationRate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAE1D,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,6CAA6C;IAC7C,KAAK,EAAE,2BAA2B,CAAC;IACnC,4CAA4C;IAC5C,UAAU,EAAE,yBAAyB,CAAC;IACtC,sBAAsB;IACtB,KAAK,EAAE,yBAAyB,CAAC;IACjC,wCAAwC;IACxC,SAAS,EAAE,yBAAyB,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;OAEG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC"}
|