@solana/rpc-api 2.0.0-experimental.00fa195

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.
Files changed (121) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +17 -0
  3. package/dist/index.browser.cjs +199 -0
  4. package/dist/index.browser.cjs.map +1 -0
  5. package/dist/index.browser.js +197 -0
  6. package/dist/index.browser.js.map +1 -0
  7. package/dist/index.native.js +197 -0
  8. package/dist/index.native.js.map +1 -0
  9. package/dist/index.node.cjs +199 -0
  10. package/dist/index.node.cjs.map +1 -0
  11. package/dist/index.node.js +197 -0
  12. package/dist/index.node.js.map +1 -0
  13. package/dist/types/getAccountInfo.d.ts +34 -0
  14. package/dist/types/getAccountInfo.d.ts.map +1 -0
  15. package/dist/types/getBalance.d.ts +15 -0
  16. package/dist/types/getBalance.d.ts.map +1 -0
  17. package/dist/types/getBlock.d.ts +173 -0
  18. package/dist/types/getBlock.d.ts.map +1 -0
  19. package/dist/types/getBlockCommitment.d.ts +15 -0
  20. package/dist/types/getBlockCommitment.d.ts.map +1 -0
  21. package/dist/types/getBlockHeight.d.ts +14 -0
  22. package/dist/types/getBlockHeight.d.ts.map +1 -0
  23. package/dist/types/getBlockProduction.d.ts +39 -0
  24. package/dist/types/getBlockProduction.d.ts.map +1 -0
  25. package/dist/types/getBlockTime.d.ts +14 -0
  26. package/dist/types/getBlockTime.d.ts.map +1 -0
  27. package/dist/types/getBlocks.d.ts +13 -0
  28. package/dist/types/getBlocks.d.ts.map +1 -0
  29. package/dist/types/getBlocksWithLimit.d.ts +14 -0
  30. package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
  31. package/dist/types/getClusterNodes.d.ts +34 -0
  32. package/dist/types/getClusterNodes.d.ts.map +1 -0
  33. package/dist/types/getEpochInfo.d.ts +27 -0
  34. package/dist/types/getEpochInfo.d.ts.map +1 -0
  35. package/dist/types/getEpochSchedule.d.ts +23 -0
  36. package/dist/types/getEpochSchedule.d.ts.map +1 -0
  37. package/dist/types/getFeeForMessage.d.ts +16 -0
  38. package/dist/types/getFeeForMessage.d.ts.map +1 -0
  39. package/dist/types/getFirstAvailableBlock.d.ts +12 -0
  40. package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
  41. package/dist/types/getGenesisHash.d.ts +11 -0
  42. package/dist/types/getGenesisHash.d.ts.map +1 -0
  43. package/dist/types/getHealth.d.ts +10 -0
  44. package/dist/types/getHealth.d.ts.map +1 -0
  45. package/dist/types/getHighestSnapshotSlot.d.ts +18 -0
  46. package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
  47. package/dist/types/getIdentity.d.ts +13 -0
  48. package/dist/types/getIdentity.d.ts.map +1 -0
  49. package/dist/types/getInflationGovernor.d.ts +28 -0
  50. package/dist/types/getInflationGovernor.d.ts.map +1 -0
  51. package/dist/types/getInflationRate.d.ts +20 -0
  52. package/dist/types/getInflationRate.d.ts.map +1 -0
  53. package/dist/types/getInflationReward.d.ts +22 -0
  54. package/dist/types/getInflationReward.d.ts.map +1 -0
  55. package/dist/types/getLargestAccounts.d.ts +23 -0
  56. package/dist/types/getLargestAccounts.d.ts.map +1 -0
  57. package/dist/types/getLatestBlockhash.d.ts +19 -0
  58. package/dist/types/getLatestBlockhash.d.ts.map +1 -0
  59. package/dist/types/getLeaderSchedule.d.ts +51 -0
  60. package/dist/types/getLeaderSchedule.d.ts.map +1 -0
  61. package/dist/types/getMaxRetransmitSlot.d.ts +12 -0
  62. package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
  63. package/dist/types/getMaxShredInsertSlot.d.ts +12 -0
  64. package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
  65. package/dist/types/getMinimumBalanceForRentExemption.d.ts +13 -0
  66. package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
  67. package/dist/types/getMultipleAccounts.d.ts +44 -0
  68. package/dist/types/getMultipleAccounts.d.ts.map +1 -0
  69. package/dist/types/getProgramAccounts.d.ts +60 -0
  70. package/dist/types/getProgramAccounts.d.ts.map +1 -0
  71. package/dist/types/getRecentPerformanceSamples.d.ts +25 -0
  72. package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -0
  73. package/dist/types/getRecentPrioritizationFees.d.ts +30 -0
  74. package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -0
  75. package/dist/types/getSignatureStatuses.d.ts +58 -0
  76. package/dist/types/getSignatureStatuses.d.ts.map +1 -0
  77. package/dist/types/getSignaturesForAddress.d.ts +40 -0
  78. package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
  79. package/dist/types/getSlot.d.ts +14 -0
  80. package/dist/types/getSlot.d.ts.map +1 -0
  81. package/dist/types/getSlotLeader.d.ts +13 -0
  82. package/dist/types/getSlotLeader.d.ts.map +1 -0
  83. package/dist/types/getSlotLeaders.d.ts +17 -0
  84. package/dist/types/getSlotLeaders.d.ts.map +1 -0
  85. package/dist/types/getStakeActivation.d.ts +24 -0
  86. package/dist/types/getStakeActivation.d.ts.map +1 -0
  87. package/dist/types/getStakeMinimumDelegation.d.ts +13 -0
  88. package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
  89. package/dist/types/getSupply.d.ts +42 -0
  90. package/dist/types/getSupply.d.ts.map +1 -0
  91. package/dist/types/getTokenAccountBalance.d.ts +16 -0
  92. package/dist/types/getTokenAccountBalance.d.ts.map +1 -0
  93. package/dist/types/getTokenAccountsByDelegate.d.ts +54 -0
  94. package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -0
  95. package/dist/types/getTokenAccountsByOwner.d.ts +54 -0
  96. package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -0
  97. package/dist/types/getTokenLargestAccounts.d.ts +16 -0
  98. package/dist/types/getTokenLargestAccounts.d.ts.map +1 -0
  99. package/dist/types/getTokenSupply.d.ts +16 -0
  100. package/dist/types/getTokenSupply.d.ts.map +1 -0
  101. package/dist/types/getTransaction.d.ts +164 -0
  102. package/dist/types/getTransaction.d.ts.map +1 -0
  103. package/dist/types/getTransactionCount.d.ts +14 -0
  104. package/dist/types/getTransactionCount.d.ts.map +1 -0
  105. package/dist/types/getVersion.d.ts +15 -0
  106. package/dist/types/getVersion.d.ts.map +1 -0
  107. package/dist/types/getVoteAccounts.d.ts +44 -0
  108. package/dist/types/getVoteAccounts.d.ts.map +1 -0
  109. package/dist/types/index.d.ts +65 -0
  110. package/dist/types/index.d.ts.map +1 -0
  111. package/dist/types/isBlockhashValid.d.ts +18 -0
  112. package/dist/types/isBlockhashValid.d.ts.map +1 -0
  113. package/dist/types/minimumLedgerSlot.d.ts +12 -0
  114. package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
  115. package/dist/types/requestAirdrop.d.ts +16 -0
  116. package/dist/types/requestAirdrop.d.ts.map +1 -0
  117. package/dist/types/sendTransaction.d.ts +49 -0
  118. package/dist/types/sendTransaction.d.ts.map +1 -0
  119. package/dist/types/simulateTransaction.d.ts +104 -0
  120. package/dist/types/simulateTransaction.d.ts.map +1 -0
  121. package/package.json +83 -0
@@ -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
+ /** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
5
+ firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
6
+ /** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
7
+ firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
8
+ /** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
9
+ leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
10
+ /** the maximum number of slots in each epoch */
11
+ slotsPerEpoch: U64UnsafeBeyond2Pow53Minus1;
12
+ /** whether epochs start short and grow */
13
+ warmup: boolean;
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,qFAAqF;IACrF,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C,2DAA2D;IAC3D,eAAe,EAAE,2BAA2B,CAAC;IAC7C,qGAAqG;IACrG,wBAAwB,EAAE,2BAA2B,CAAC;IACtD,gDAAgD;IAChD,aAAa,EAAE,2BAA2B,CAAC;IAC3C,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACnB,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,28 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Commitment, F64UnsafeSeeDocumentation } from '@solana/rpc-types';
3
+ type GetInflationGovernorApiResponse = Readonly<{
4
+ /** Percentage of total inflation allocated to the foundation */
5
+ foundation: F64UnsafeSeeDocumentation;
6
+ /** Duration of foundation pool inflation in years */
7
+ foundationTerm: F64UnsafeSeeDocumentation;
8
+ /** The initial inflation percentage from time 0 */
9
+ initial: F64UnsafeSeeDocumentation;
10
+ /**
11
+ * Rate per year at which inflation is lowered.
12
+ * (Rate reduction is derived using the target
13
+ * slot time in genesis config)
14
+ */
15
+ taper: F64UnsafeSeeDocumentation;
16
+ /** Terminal inflation percentage */
17
+ terminal: F64UnsafeSeeDocumentation;
18
+ }>;
19
+ export interface GetInflationGovernorApi extends RpcApiMethods {
20
+ /**
21
+ * Returns the current inflation governor
22
+ */
23
+ getInflationGovernor(config?: Readonly<{
24
+ commitment?: Commitment;
25
+ }>): GetInflationGovernorApiResponse;
26
+ }
27
+ export {};
28
+ //# 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,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,KAAK,+BAA+B,GAAG,QAAQ,CAAC;IAC5C,gEAAgE;IAChE,UAAU,EAAE,yBAAyB,CAAC;IACtC,qDAAqD;IACrD,cAAc,EAAE,yBAAyB,CAAC;IAC1C,mDAAmD;IACnD,OAAO,EAAE,yBAAyB,CAAC;IACnC;;;;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,20 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type GetInflationRateApiResponse = Readonly<{
4
+ /** Epoch for which these values are valid */
5
+ epoch: U64UnsafeBeyond2Pow53Minus1;
6
+ /** Inflation allocated to the foundation */
7
+ foundation: F64UnsafeSeeDocumentation;
8
+ /** Total inflation */
9
+ total: F64UnsafeSeeDocumentation;
10
+ /** Inflation allocated to validators */
11
+ validator: F64UnsafeSeeDocumentation;
12
+ }>;
13
+ export interface GetInflationRateApi extends RpcApiMethods {
14
+ /**
15
+ * Returns the current block height of the node
16
+ */
17
+ getInflationRate(NO_CONFIG?: Record<string, never>): GetInflationRateApiResponse;
18
+ }
19
+ export {};
20
+ //# 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,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhG,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"}
@@ -0,0 +1,22 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ type GetInflationRewardApiResponse = Readonly<{
5
+ amount: LamportsUnsafeBeyond2Pow53Minus1;
6
+ commission: number;
7
+ effectiveSlot: Slot;
8
+ epoch: U64UnsafeBeyond2Pow53Minus1;
9
+ postBalance: LamportsUnsafeBeyond2Pow53Minus1;
10
+ }>;
11
+ export interface GetInflationRewardApi extends RpcApiMethods {
12
+ /**
13
+ * Returns the current block height of the node
14
+ */
15
+ getInflationReward(addresses: Address[], config?: Readonly<{
16
+ commitment?: Commitment;
17
+ epoch?: U64UnsafeBeyond2Pow53Minus1;
18
+ minContextSlot?: Slot;
19
+ }>): Promise<readonly (GetInflationRewardApiResponse | null)[]>;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=getInflationReward.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInflationReward.d.ts","sourceRoot":"","sources":["../../src/getInflationReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,UAAU,EACV,gCAAgC,EAChC,IAAI,EACJ,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAE1C,MAAM,EAAE,gCAAgC,CAAC;IAEzC,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,EAAE,IAAI,CAAC;IAEpB,KAAK,EAAE,2BAA2B,CAAC;IAEnC,WAAW,EAAE,gCAAgC,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CACd,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAGxB,KAAK,CAAC,EAAE,2BAA2B,CAAC;QAEpC,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,OAAO,CAAC,SAAS,CAAC,6BAA6B,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACjE"}
@@ -0,0 +1,23 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
4
+ type GetLargestAccountsResponseItem = Readonly<{
5
+ /** Base-58 encoded address of the account */
6
+ address: Address;
7
+ /** Number of lamports in the account */
8
+ lamports: LamportsUnsafeBeyond2Pow53Minus1;
9
+ }>;
10
+ type GetLargestAccountsApiResponse = SolanaRpcResponse<GetLargestAccountsResponseItem[]>;
11
+ export interface GetLargestAccountsApi extends RpcApiMethods {
12
+ /**
13
+ * Returns the 20 largest accounts, by lamport balance
14
+ * (results may be cached up to two hours)
15
+ */
16
+ getLargestAccounts(config?: Readonly<{
17
+ commitment?: Commitment;
18
+ /** Filter results by account type */
19
+ filter?: 'circulating' | 'nonCirculating';
20
+ }>): GetLargestAccountsApiResponse;
21
+ }
22
+ export {};
23
+ //# sourceMappingURL=getLargestAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLargestAccounts.d.ts","sourceRoot":"","sources":["../../src/getLargestAccounts.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,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,QAAQ,EAAE,gCAAgC,CAAC;CAC9C,CAAC,CAAC;AAEH,KAAK,6BAA6B,GAAG,iBAAiB,CAAC,8BAA8B,EAAE,CAAC,CAAC;AAEzF,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CACd,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,qCAAqC;QACrC,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC;KAC7C,CAAC,GACH,6BAA6B,CAAC;CACpC"}
@@ -0,0 +1,19 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Blockhash, Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type GetLatestBlockhashApiResponse = SolanaRpcResponse<{
4
+ /** a Hash as base-58 encoded string */
5
+ blockhash: Blockhash;
6
+ /** last block height at which the blockhash will be valid */
7
+ lastValidBlockHeight: U64UnsafeBeyond2Pow53Minus1;
8
+ }>;
9
+ export interface GetLatestBlockhashApi extends RpcApiMethods {
10
+ /**
11
+ * Returns the latest blockhash
12
+ */
13
+ getLatestBlockhash(config?: Readonly<{
14
+ commitment?: Commitment;
15
+ minContextSlot?: Slot;
16
+ }>): GetLatestBlockhashApiResponse;
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=getLatestBlockhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLatestBlockhash.d.ts","sourceRoot":"","sources":["../../src/getLatestBlockhash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErH,KAAK,6BAA6B,GAAG,iBAAiB,CAAC;IACnD,uCAAuC;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,oBAAoB,EAAE,2BAA2B,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CACd,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,6BAA6B,CAAC;CACpC"}
@@ -0,0 +1,51 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, Slot } from '@solana/rpc-types';
4
+ type GetLeaderScheduleApiConfigBase = Readonly<{
5
+ commitment?: Commitment;
6
+ }>;
7
+ /**
8
+ * This return type is a dictionary of validator identities, as base-58 encoded
9
+ * strings, and their corresponding leader slot indices as values
10
+ * (indices are relative to the first slot in the requested epoch)
11
+ * @example
12
+ * ```json
13
+ * {
14
+ * "4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F": [
15
+ * 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
16
+ * 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
17
+ * 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
18
+ * 57, 58, 59, 60, 61, 62, 63
19
+ * ]
20
+ * }
21
+ * ```
22
+ */
23
+ type GetLeaderScheduleApiResponseWithAllIdentities = Record<Address, Slot[]>;
24
+ type GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity extends string> = Readonly<{
25
+ [TAddress in TIdentity]?: Slot[];
26
+ }>;
27
+ export interface GetLeaderScheduleApi extends RpcApiMethods {
28
+ /**
29
+ * Fetch the leader schedule for the epoch that corresponds to the provided slot.
30
+ * If unspecified, the leader schedule for the current epoch is fetched
31
+ *
32
+ * When a slot is provided, the leader schedule for the epoch that corresponds
33
+ * to the provided slot is returned, and this can be null if the slot corresponds
34
+ * to an epoch that does not exist.
35
+ *
36
+ * The RPC request payload provides a `null` value for `slot` when the slot is not
37
+ * specified but the request wishes to include config.
38
+ */
39
+ getLeaderSchedule<TIdentity extends Address>(slot: Slot, config: GetLeaderScheduleApiConfigBase & Readonly<{
40
+ /** Only return results for this validator identity (base58 encoded address) */
41
+ identity: Address;
42
+ }>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity> | null;
43
+ getLeaderSchedule(slot: Slot, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities | null;
44
+ getLeaderSchedule<TIdentity extends Address>(slot: null, config: GetLeaderScheduleApiConfigBase & Readonly<{
45
+ /** Only return results for this validator identity (base58 encoded address) */
46
+ identity: Address;
47
+ }>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity>;
48
+ getLeaderSchedule(slot: null, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities;
49
+ }
50
+ export {};
51
+ //# sourceMappingURL=getLeaderSchedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLeaderSchedule.d.ts","sourceRoot":"","sources":["../../src/getLeaderSchedule.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,MAAM,mBAAmB,CAAC;AAE1D,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,KAAK,6CAA6C,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAE7E,KAAK,8CAA8C,CAAC,SAAS,SAAS,MAAM,IAAI,QAAQ,CAAC;KACpF,QAAQ,IAAI,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACvD;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,SAAS,SAAS,OAAO,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,8BAA8B,GAClC,QAAQ,CAAC;QACL,+EAA+E;QAC/E,QAAQ,EAAE,OAAO,CAAC;KACrB,CAAC,GACP,8CAA8C,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACpE,iBAAiB,CACb,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,GAAG,IAAI,CAAC;IACxD,iBAAiB,CAAC,SAAS,SAAS,OAAO,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,8BAA8B,GAClC,QAAQ,CAAC;QACL,+EAA+E;QAC/E,QAAQ,EAAE,OAAO,CAAC;KACrB,CAAC,GACP,8CAA8C,CAAC,SAAS,CAAC,CAAC;IAC7D,iBAAiB,CACb,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,CAAC;CACpD"}
@@ -0,0 +1,12 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Slot } from '@solana/rpc-types';
3
+ type GetMaxRetransmitSlotApiResponse = Slot;
4
+ export interface GetMaxRetransmitSlotApi extends RpcApiMethods {
5
+ /**
6
+ * Get the max slot seen from retransmit stage.
7
+ * Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
8
+ */
9
+ getMaxRetransmitSlot(NO_CONFIG?: Record<string, never>): GetMaxRetransmitSlotApiResponse;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=getMaxRetransmitSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMaxRetransmitSlot.d.ts","sourceRoot":"","sources":["../../src/getMaxRetransmitSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,+BAA+B,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D;;;OAGG;IACH,oBAAoB,CAEhB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,+BAA+B,CAAC;CACtC"}
@@ -0,0 +1,12 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Slot } from '@solana/rpc-types';
3
+ type GetMaxShredInsertSlotApiResponse = Slot;
4
+ export interface GetMaxShredInsertSlotApi extends RpcApiMethods {
5
+ /**
6
+ * Get the max slot seen from after shred insert.
7
+ * Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
8
+ */
9
+ getMaxShredInsertSlot(NO_CONFIG?: Record<string, never>): GetMaxShredInsertSlotApiResponse;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=getMaxShredInsertSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMaxShredInsertSlot.d.ts","sourceRoot":"","sources":["../../src/getMaxShredInsertSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,gCAAgC,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC3D;;;OAGG;IACH,qBAAqB,CAEjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,gCAAgC,CAAC;CACvC"}
@@ -0,0 +1,13 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type GetMinimumBalanceForRentExemptionApiResponse = LamportsUnsafeBeyond2Pow53Minus1;
4
+ export interface GetMinimumBalanceForRentExemptionApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the minimum balance to exempt an account of a certain size from rent
7
+ */
8
+ getMinimumBalanceForRentExemption(size: U64UnsafeBeyond2Pow53Minus1, config?: Readonly<{
9
+ commitment?: Commitment;
10
+ }>): GetMinimumBalanceForRentExemptionApiResponse;
11
+ }
12
+ export {};
13
+ //# sourceMappingURL=getMinimumBalanceForRentExemption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMinimumBalanceForRentExemption.d.ts","sourceRoot":"","sources":["../../src/getMinimumBalanceForRentExemption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEnH,KAAK,4CAA4C,GAAG,gCAAgC,CAAC;AAErF,MAAM,WAAW,oCAAqC,SAAQ,aAAa;IACvE;;OAEG;IACH,iCAAiC,CAC7B,IAAI,EAAE,2BAA2B,EACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,4CAA4C,CAAC;CACnD"}
@@ -0,0 +1,44 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
4
+ type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;
5
+ type GetMultipleAccountsApiCommonConfig = Readonly<{
6
+ /** Defaults to `finalized` */
7
+ commitment?: Commitment;
8
+ /** The minimum slot that the request can be evaluated at */
9
+ minContextSlot?: Slot;
10
+ }>;
11
+ type GetMultipleAccountsApiSliceableCommonConfig = Readonly<{
12
+ /** Limit the returned account data */
13
+ dataSlice?: DataSlice;
14
+ }>;
15
+ export interface GetMultipleAccountsApi extends RpcApiMethods {
16
+ /**
17
+ * Returns the account information for a list of Pubkeys.
18
+ */
19
+ getMultipleAccounts(
20
+ /** An array of up to 100 Pubkeys to query */
21
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
22
+ encoding: 'base64';
23
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
24
+ getMultipleAccounts(
25
+ /** An array of up to 100 Pubkeys to query */
26
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
27
+ encoding: 'base64+zstd';
28
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedZStdCompressedData | null))[]>;
29
+ getMultipleAccounts(
30
+ /** An array of up to 100 Pubkeys to query */
31
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
32
+ encoding: 'jsonParsed';
33
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithJsonData | null))[]>;
34
+ getMultipleAccounts(
35
+ /** An array of up to 100 Pubkeys to query */
36
+ addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
37
+ encoding: 'base58';
38
+ }>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase58EncodedData | null))[]>;
39
+ getMultipleAccounts(
40
+ /** An array of up to 100 Pubkeys to query */
41
+ addresses: Address[], config?: GetMultipleAccountsApiCommonConfig): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
42
+ }
43
+ export {};
44
+ //# sourceMappingURL=getMultipleAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMultipleAccounts.d.ts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B;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAChG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,CAAC,EAAE,kCAAkC,GAC5C,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAC5G"}
@@ -0,0 +1,60 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, Commitment, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, SolanaRpcResponse } from '@solana/rpc-types';
4
+ type GetProgramAccountsApiCommonConfig = Readonly<{
5
+ /** @defaultValue "finalized" */
6
+ commitment?: Commitment;
7
+ /** filter results (up to 4 filters allowed) @see https://docs.solana.com/api/http#filter-criteria */
8
+ filters?: (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter)[];
9
+ /** The minimum slot that the request can be evaluated at */
10
+ minContextSlot?: Slot;
11
+ }>;
12
+ type GetProgramAccountsApiSliceableCommonConfig = Readonly<{
13
+ /** Limit the returned account data */
14
+ dataSlice?: DataSlice;
15
+ }>;
16
+ export interface GetProgramAccountsApi extends RpcApiMethods {
17
+ /**
18
+ * Returns the account information for a list of Pubkeys.
19
+ */
20
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
21
+ encoding: 'base64';
22
+ withContext: true;
23
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
24
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
25
+ encoding: 'base64';
26
+ withContext?: boolean;
27
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[];
28
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
29
+ encoding: 'base64+zstd';
30
+ withContext: true;
31
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
32
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
33
+ encoding: 'base64+zstd';
34
+ withContext?: boolean;
35
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[];
36
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
37
+ encoding: 'jsonParsed';
38
+ withContext: true;
39
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[]>;
40
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
41
+ encoding: 'jsonParsed';
42
+ withContext?: boolean;
43
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[];
44
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
45
+ encoding: 'base58';
46
+ withContext: true;
47
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
48
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
49
+ encoding: 'base58';
50
+ withContext?: boolean;
51
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[];
52
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
53
+ withContext: true;
54
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
55
+ getProgramAccounts(program: Address, config?: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
56
+ withContext?: boolean;
57
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[];
58
+ }
59
+ export {};
60
+ //# sourceMappingURL=getProgramAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgramAccounts.d.ts","sourceRoot":"","sources":["../../src/getProgramAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,gCAAgC,EAChC,8BAA8B,EAC9B,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,iCAAiC,GAAG,QAAQ,CAAC;IAC9C,gCAAgC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C,EAAE,CAAC,CAAC;IAE5F,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,iCAAiC,GACtC,0CAA0C,GAC1C,QAAQ,CAAC;QACL,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC,GACP,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC;CAC5E"}
@@ -0,0 +1,25 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type PerformanceSample = Readonly<{
4
+ /** Number of non-vote transactions in sample. */
5
+ numNonVoteTransaction: U64UnsafeBeyond2Pow53Minus1;
6
+ /** Number of slots in sample */
7
+ numSlots: U64UnsafeBeyond2Pow53Minus1;
8
+ /** Number of transactions in sample */
9
+ numTransactions: U64UnsafeBeyond2Pow53Minus1;
10
+ /** Number of seconds in a sample window */
11
+ samplePeriodSecs: number;
12
+ /** Slot in which sample was taken at */
13
+ slot: Slot;
14
+ }>;
15
+ type GetRecentPerformanceSamplesApiResponse = readonly PerformanceSample[];
16
+ export interface GetRecentPerformanceSamplesApi extends RpcApiMethods {
17
+ /**
18
+ * Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.
19
+ */
20
+ getRecentPerformanceSamples(
21
+ /** number of samples to return (maximum 720) */
22
+ limit?: number): GetRecentPerformanceSamplesApiResponse;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=getRecentPerformanceSamples.d.ts.map