@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.
Files changed (125) 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/common-transactions.d.ts +247 -0
  14. package/dist/types/common-transactions.d.ts.map +1 -0
  15. package/dist/types/common.d.ts +69 -0
  16. package/dist/types/common.d.ts.map +1 -0
  17. package/dist/types/getAccountInfo.d.ts +35 -0
  18. package/dist/types/getAccountInfo.d.ts.map +1 -0
  19. package/dist/types/getBalance.d.ts +15 -0
  20. package/dist/types/getBalance.d.ts.map +1 -0
  21. package/dist/types/getBlock.d.ts +174 -0
  22. package/dist/types/getBlock.d.ts.map +1 -0
  23. package/dist/types/getBlockCommitment.d.ts +15 -0
  24. package/dist/types/getBlockCommitment.d.ts.map +1 -0
  25. package/dist/types/getBlockHeight.d.ts +14 -0
  26. package/dist/types/getBlockHeight.d.ts.map +1 -0
  27. package/dist/types/getBlockProduction.d.ts +39 -0
  28. package/dist/types/getBlockProduction.d.ts.map +1 -0
  29. package/dist/types/getBlockTime.d.ts +14 -0
  30. package/dist/types/getBlockTime.d.ts.map +1 -0
  31. package/dist/types/getBlocks.d.ts +13 -0
  32. package/dist/types/getBlocks.d.ts.map +1 -0
  33. package/dist/types/getBlocksWithLimit.d.ts +14 -0
  34. package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
  35. package/dist/types/getClusterNodes.d.ts +34 -0
  36. package/dist/types/getClusterNodes.d.ts.map +1 -0
  37. package/dist/types/getEpochInfo.d.ts +27 -0
  38. package/dist/types/getEpochInfo.d.ts.map +1 -0
  39. package/dist/types/getEpochSchedule.d.ts +23 -0
  40. package/dist/types/getEpochSchedule.d.ts.map +1 -0
  41. package/dist/types/getFeeForMessage.d.ts +16 -0
  42. package/dist/types/getFeeForMessage.d.ts.map +1 -0
  43. package/dist/types/getFirstAvailableBlock.d.ts +12 -0
  44. package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
  45. package/dist/types/getGenesisHash.d.ts +11 -0
  46. package/dist/types/getGenesisHash.d.ts.map +1 -0
  47. package/dist/types/getHealth.d.ts +10 -0
  48. package/dist/types/getHealth.d.ts.map +1 -0
  49. package/dist/types/getHighestSnapshotSlot.d.ts +18 -0
  50. package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
  51. package/dist/types/getIdentity.d.ts +13 -0
  52. package/dist/types/getIdentity.d.ts.map +1 -0
  53. package/dist/types/getInflationGovernor.d.ts +29 -0
  54. package/dist/types/getInflationGovernor.d.ts.map +1 -0
  55. package/dist/types/getInflationRate.d.ts +21 -0
  56. package/dist/types/getInflationRate.d.ts.map +1 -0
  57. package/dist/types/getInflationReward.d.ts +22 -0
  58. package/dist/types/getInflationReward.d.ts.map +1 -0
  59. package/dist/types/getLargestAccounts.d.ts +23 -0
  60. package/dist/types/getLargestAccounts.d.ts.map +1 -0
  61. package/dist/types/getLatestBlockhash.d.ts +19 -0
  62. package/dist/types/getLatestBlockhash.d.ts.map +1 -0
  63. package/dist/types/getLeaderSchedule.d.ts +51 -0
  64. package/dist/types/getLeaderSchedule.d.ts.map +1 -0
  65. package/dist/types/getMaxRetransmitSlot.d.ts +12 -0
  66. package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
  67. package/dist/types/getMaxShredInsertSlot.d.ts +12 -0
  68. package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
  69. package/dist/types/getMinimumBalanceForRentExemption.d.ts +13 -0
  70. package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
  71. package/dist/types/getMultipleAccounts.d.ts +45 -0
  72. package/dist/types/getMultipleAccounts.d.ts.map +1 -0
  73. package/dist/types/getProgramAccounts.d.ts +61 -0
  74. package/dist/types/getProgramAccounts.d.ts.map +1 -0
  75. package/dist/types/getRecentPerformanceSamples.d.ts +25 -0
  76. package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -0
  77. package/dist/types/getRecentPrioritizationFees.d.ts +31 -0
  78. package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -0
  79. package/dist/types/getSignatureStatuses.d.ts +58 -0
  80. package/dist/types/getSignatureStatuses.d.ts.map +1 -0
  81. package/dist/types/getSignaturesForAddress.d.ts +40 -0
  82. package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
  83. package/dist/types/getSlot.d.ts +14 -0
  84. package/dist/types/getSlot.d.ts.map +1 -0
  85. package/dist/types/getSlotLeader.d.ts +13 -0
  86. package/dist/types/getSlotLeader.d.ts.map +1 -0
  87. package/dist/types/getSlotLeaders.d.ts +17 -0
  88. package/dist/types/getSlotLeaders.d.ts.map +1 -0
  89. package/dist/types/getStakeActivation.d.ts +24 -0
  90. package/dist/types/getStakeActivation.d.ts.map +1 -0
  91. package/dist/types/getStakeMinimumDelegation.d.ts +13 -0
  92. package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
  93. package/dist/types/getSupply.d.ts +42 -0
  94. package/dist/types/getSupply.d.ts.map +1 -0
  95. package/dist/types/getTokenAccountBalance.d.ts +16 -0
  96. package/dist/types/getTokenAccountBalance.d.ts.map +1 -0
  97. package/dist/types/getTokenAccountsByDelegate.d.ts +55 -0
  98. package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -0
  99. package/dist/types/getTokenAccountsByOwner.d.ts +55 -0
  100. package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -0
  101. package/dist/types/getTokenLargestAccounts.d.ts +16 -0
  102. package/dist/types/getTokenLargestAccounts.d.ts.map +1 -0
  103. package/dist/types/getTokenSupply.d.ts +16 -0
  104. package/dist/types/getTokenSupply.d.ts.map +1 -0
  105. package/dist/types/getTransaction.d.ts +166 -0
  106. package/dist/types/getTransaction.d.ts.map +1 -0
  107. package/dist/types/getTransactionCount.d.ts +14 -0
  108. package/dist/types/getTransactionCount.d.ts.map +1 -0
  109. package/dist/types/getVersion.d.ts +15 -0
  110. package/dist/types/getVersion.d.ts.map +1 -0
  111. package/dist/types/getVoteAccounts.d.ts +44 -0
  112. package/dist/types/getVoteAccounts.d.ts.map +1 -0
  113. package/dist/types/index.d.ts +64 -0
  114. package/dist/types/index.d.ts.map +1 -0
  115. package/dist/types/isBlockhashValid.d.ts +18 -0
  116. package/dist/types/isBlockhashValid.d.ts.map +1 -0
  117. package/dist/types/minimumLedgerSlot.d.ts +12 -0
  118. package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
  119. package/dist/types/requestAirdrop.d.ts +16 -0
  120. package/dist/types/requestAirdrop.d.ts.map +1 -0
  121. package/dist/types/sendTransaction.d.ts +49 -0
  122. package/dist/types/sendTransaction.d.ts.map +1 -0
  123. package/dist/types/simulateTransaction.d.ts +105 -0
  124. package/dist/types/simulateTransaction.d.ts.map +1 -0
  125. package/package.json +83 -0
@@ -0,0 +1,42 @@
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 GetSupplyConfig = Readonly<{
5
+ commitment?: Commitment;
6
+ }>;
7
+ type GetSupplyApiResponseBase = SolanaRpcResponse<{
8
+ /** Total supply in lamports */
9
+ total: LamportsUnsafeBeyond2Pow53Minus1;
10
+ /** Circulating supply in lamports */
11
+ circulating: LamportsUnsafeBeyond2Pow53Minus1;
12
+ /** Non-circulating supply in lamports */
13
+ nonCirculating: LamportsUnsafeBeyond2Pow53Minus1;
14
+ }>;
15
+ type GetSupplyApiResponseWithNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{
16
+ value: Readonly<{
17
+ /** an array of account addresses of non-circulating accounts */
18
+ nonCirculatingAccounts: Address[];
19
+ }>;
20
+ }>;
21
+ type GetSupplyApiResponseWithoutNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{
22
+ value: Readonly<{
23
+ /** As per the docs:
24
+ * "If `excludeNonCirculatingAccountsList` is enabled, the returned array will be empty."
25
+ * See: https://solana.com/docs/rpc/http/getsupply
26
+ */
27
+ nonCirculatingAccounts: never[];
28
+ }>;
29
+ }>;
30
+ export interface GetSupplyApi extends RpcApiMethods {
31
+ /**
32
+ * Returns information about the current supply.
33
+ */
34
+ getSupply(config: GetSupplyConfig & Readonly<{
35
+ excludeNonCirculatingAccountsList: true;
36
+ }>): GetSupplyApiResponseWithoutNonCirculatingAccounts;
37
+ getSupply(config?: GetSupplyConfig & Readonly<{
38
+ excludeNonCirculatingAccountsList?: false;
39
+ }>): GetSupplyApiResponseWithNonCirculatingAccounts;
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=getSupply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSupply.d.ts","sourceRoot":"","sources":["../../src/getSupply.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,eAAe,GAAG,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,wBAAwB,GAAG,iBAAiB,CAAC;IAC9C,+BAA+B;IAC/B,KAAK,EAAE,gCAAgC,CAAC;IACxC,qCAAqC;IACrC,WAAW,EAAE,gCAAgC,CAAC;IAC9C,yCAAyC;IACzC,cAAc,EAAE,gCAAgC,CAAC;CACpD,CAAC,CAAC;AAEH,KAAK,8CAA8C,GAAG,wBAAwB,GAC1E,QAAQ,CAAC;IACL,KAAK,EAAE,QAAQ,CAAC;QACZ,gEAAgE;QAChE,sBAAsB,EAAE,OAAO,EAAE,CAAC;KACrC,CAAC,CAAC;CACN,CAAC,CAAC;AAEP,KAAK,iDAAiD,GAAG,wBAAwB,GAC7E,QAAQ,CAAC;IACL,KAAK,EAAE,QAAQ,CAAC;QACZ;;;WAGG;QACH,sBAAsB,EAAE,KAAK,EAAE,CAAC;KACnC,CAAC,CAAC;CACN,CAAC,CAAC;AAEP,MAAM,WAAW,YAAa,SAAQ,aAAa;IAC/C;;OAEG;IACH,SAAS,CACL,MAAM,EAAE,eAAe,GACnB,QAAQ,CAAC;QACL,iCAAiC,EAAE,IAAI,CAAC;KAC3C,CAAC,GACP,iDAAiD,CAAC;IACrD,SAAS,CACL,MAAM,CAAC,EAAE,eAAe,GACpB,QAAQ,CAAC;QACL,iCAAiC,CAAC,EAAE,KAAK,CAAC;KAC7C,CAAC,GACP,8CAA8C,CAAC;CACrD"}
@@ -0,0 +1,16 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
4
+ type GetTokenAccountBalanceApiResponse = SolanaRpcResponse<TokenAmount>;
5
+ export interface GetTokenAccountBalanceApi extends RpcApiMethods {
6
+ /**
7
+ * Returns the token balance of an SPL Token account
8
+ */
9
+ getTokenAccountBalance(
10
+ /** Pubkey of Token account to query, as base-58 encoded string */
11
+ address: Address, config?: Readonly<{
12
+ commitment?: Commitment;
13
+ }>): GetTokenAccountBalanceApiResponse;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=getTokenAccountBalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenAccountBalance.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountBalance.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,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,iCAAiC,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAExE,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC5D;;OAEG;IACH,sBAAsB;IAClB,kEAAkE;IAClE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iCAAiC,CAAC;CACxC"}
@@ -0,0 +1,55 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
3
+ import type { RpcApiMethods } from '@solana/rpc-spec';
4
+ import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
5
+ import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js';
6
+ type TokenAccountInfoWithJsonData = Readonly<{
7
+ data: Readonly<{
8
+ /** Name of the program that owns this account. */
9
+ program: Address;
10
+ parsed: {
11
+ info: JsonParsedTokenAccount;
12
+ type: 'account';
13
+ };
14
+ space: U64UnsafeBeyond2Pow53Minus1;
15
+ }>;
16
+ }>;
17
+ type MintFilter = Readonly<{
18
+ /** Pubkey of the specific token Mint to limit accounts to */
19
+ mint: Address;
20
+ }>;
21
+ type ProgramIdFilter = Readonly<{
22
+ /** Pubkey of the Token program that owns the accounts */
23
+ programId: Address;
24
+ }>;
25
+ type AccountsFilter = MintFilter | ProgramIdFilter;
26
+ type GetTokenAccountsByDelegateApiCommonConfig = Readonly<{
27
+ /** @defaultValue "finalized" */
28
+ commitment?: Commitment;
29
+ /** The minimum slot that the request can be evaluated at */
30
+ minContextSlot?: Slot;
31
+ }>;
32
+ type GetTokenAccountsByDelegateApiSliceableCommonConfig = Readonly<{
33
+ /** Limit the returned account data */
34
+ dataSlice?: DataSlice;
35
+ }>;
36
+ export interface GetTokenAccountsByDelegateApi extends RpcApiMethods {
37
+ /**
38
+ * Returns all SPL Token accounts by approved Delegate.
39
+ */
40
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
41
+ encoding: 'base64';
42
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
43
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
44
+ encoding: 'base64+zstd';
45
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
46
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & Readonly<{
47
+ encoding: 'jsonParsed';
48
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
49
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
50
+ encoding: 'base58';
51
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
52
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=getTokenAccountsByDelegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenAccountsByDelegate.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByDelegate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE1G,OAAO,EACH,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,qBAAqB,EACrB,SAAS,EACZ,MAAM,UAAU,CAAC;AAElB,KAAK,4BAA4B,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,QAAQ,CAAC;QACX,kDAAkD;QAClD,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE;YACJ,IAAI,EAAE,sBAAsB,CAAC;YAC7B,IAAI,EAAE,SAAS,CAAC;SACnB,CAAC;QACF,KAAK,EAAE,2BAA2B,CAAC;KACtC,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACvB,6DAA6D;IAC7D,IAAI,EAAE,OAAO,CAAC;CACjB,CAAC,CAAC;AAEH,KAAK,eAAe,GAAG,QAAQ,CAAC;IAC5B,yDAAyD;IACzD,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAEH,KAAK,cAAc,GAAG,UAAU,GAAG,eAAe,CAAC;AAEnD,KAAK,yCAAyC,GAAG,QAAQ,CAAC;IACtD,gCAAgC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,4DAA4D;IAC5D,c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,cAAc,EACtB,MAAM,CAAC,EAAE,yCAAyC,GAAG,kDAAkD,GACxG,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC,CAAC;CAC/F"}
@@ -0,0 +1,55 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
3
+ import type { RpcApiMethods } from '@solana/rpc-spec';
4
+ import type { Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
5
+ import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js';
6
+ type TokenAccountInfoWithJsonData = Readonly<{
7
+ data: Readonly<{
8
+ /** Name of the program that owns this account. */
9
+ program: Address;
10
+ parsed: {
11
+ info: JsonParsedTokenAccount;
12
+ type: 'account';
13
+ };
14
+ space: U64UnsafeBeyond2Pow53Minus1;
15
+ }>;
16
+ }>;
17
+ type MintFilter = Readonly<{
18
+ /** Pubkey of the specific token Mint to limit accounts to */
19
+ mint: Address;
20
+ }>;
21
+ type ProgramIdFilter = Readonly<{
22
+ /** Pubkey of the Token program that owns the accounts */
23
+ programId: Address;
24
+ }>;
25
+ type AccountsFilter = MintFilter | ProgramIdFilter;
26
+ type GetTokenAccountsByOwnerApiCommonConfig = Readonly<{
27
+ /** @defaultValue "finalized" */
28
+ commitment?: Commitment;
29
+ /** The minimum slot that the request can be evaluated at */
30
+ minContextSlot?: Slot;
31
+ }>;
32
+ type GetTokenAccountsByOwnerApiSliceableCommonConfig = Readonly<{
33
+ /** Limit the returned account data */
34
+ dataSlice?: DataSlice;
35
+ }>;
36
+ export interface GetTokenAccountsByOwnerApi extends RpcApiMethods {
37
+ /**
38
+ * Returns all SPL Token accounts by token owner.
39
+ */
40
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
41
+ encoding: 'base64';
42
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
43
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
44
+ encoding: 'base64+zstd';
45
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
46
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{
47
+ encoding: 'jsonParsed';
48
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
49
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
50
+ encoding: 'base58';
51
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
52
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=getTokenAccountsByOwner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenAccountsByOwner.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByOwner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,E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,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,gCAAgC,CAAC,EAAE,CAAC,CAAC;IAElG,uBAAuB,CACnB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,sCAAsC,GAC1C,+CAA+C,GAC/C,QAAQ,CAAC;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,8CAA8C,CAAC,EAAE,CAAC,CAAC;IAEhH,uBAAuB,CACnB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,sCAAsC,GAC1C,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,4BAA4B,CAAC,EAAE,CAAC,CAAC;IAE9F,uBAAuB,CACnB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,sCAAsC,GAC1C,+CAA+C,GAC/C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,gCAAgC,CAAC,EAAE,CAAC,CAAC;IAElG,uBAAuB,CACnB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,sCAAsC,GAAG,+CAA+C,GAClG,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC,CAAC;CAC/F"}
@@ -0,0 +1,16 @@
1
+ import { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
4
+ type GetTokenLargestAccountsApiResponse = SolanaRpcResponse<TokenAmount & {
5
+ address: Address;
6
+ }[]>;
7
+ export interface GetTokenLargestAccountsApi extends RpcApiMethods {
8
+ /**
9
+ * Returns the 20 largest accounts of a particular SPL Token type.
10
+ */
11
+ getTokenLargestAccounts(tokenMint: Address, config?: Readonly<{
12
+ commitment?: Commitment;
13
+ }>): GetTokenLargestAccountsApiResponse;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=getTokenLargestAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenLargestAccounts.d.ts","sourceRoot":"","sources":["../../src/getTokenLargestAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,kCAAkC,GAAG,iBAAiB,CAAC,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,CAAC;AAElG,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC7D;;OAEG;IACH,uBAAuB,CACnB,SAAS,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,kCAAkC,CAAC;CACzC"}
@@ -0,0 +1,16 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
4
+ type GetTokenSupplyApiResponse = SolanaRpcResponse<TokenAmount>;
5
+ export interface GetTokenSupplyApi extends RpcApiMethods {
6
+ /**
7
+ * Returns the total supply of an SPL Token mint
8
+ */
9
+ getTokenSupply(
10
+ /** Pubkey of the token Mint to query, as base-58 encoded string */
11
+ address: Address, config?: Readonly<{
12
+ commitment?: Commitment;
13
+ }>): GetTokenSupplyApiResponse;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=getTokenSupply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenSupply.d.ts","sourceRoot":"","sources":["../../src/getTokenSupply.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,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAEhE,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc;IACV,mEAAmE;IACnE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,yBAAyB,CAAC;CAChC"}
@@ -0,0 +1,166 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Signature } from '@solana/keys';
3
+ import type { RpcApiMethods } from '@solana/rpc-spec';
4
+ import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, TransactionError, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
5
+ import type { TransactionVersion } from '@solana/transactions';
6
+ import type { TokenBalance } from './common.js';
7
+ import type { Reward, TransactionStatus } from './common-transactions.js';
8
+ type ReturnData = {
9
+ /** the program that generated the return data */
10
+ programId: Address;
11
+ /** the return data itself */
12
+ data: Base64EncodedDataResponse;
13
+ };
14
+ type TransactionMetaBase = Readonly<{
15
+ /** Error if transaction failed, null if transaction succeeded. */
16
+ err: TransactionError | null;
17
+ /** fee this transaction was charged */
18
+ fee: LamportsUnsafeBeyond2Pow53Minus1;
19
+ /** array of account balances from before the transaction was processed */
20
+ preBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
21
+ /** array of account balances after the transaction was processed */
22
+ postBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
23
+ /** List of token balances from before the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
24
+ preTokenBalances?: readonly TokenBalance[];
25
+ /** List of token balances from after the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
26
+ postTokenBalances?: readonly TokenBalance[];
27
+ /** array of string log messages or null if log message recording was not enabled during this transaction */
28
+ logMessages: readonly string[] | null;
29
+ /** transaction-level rewards */
30
+ rewards: readonly Reward[] | null;
31
+ /**
32
+ * Transaction status
33
+ * @deprecated
34
+ */
35
+ status: TransactionStatus;
36
+ /** the most-recent return data generated by an instruction in the transaction */
37
+ returnData?: ReturnData;
38
+ /** number of compute units consumed by the transaction */
39
+ computeUnitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
40
+ }>;
41
+ type AddressTableLookup = Readonly<{
42
+ /** public key for an address lookup table account. */
43
+ accountKey: Address;
44
+ /** List of indices used to load addresses of writable accounts from a lookup table. */
45
+ writableIndexes: readonly number[];
46
+ /** List of indices used to load addresses of readonly accounts from a lookup table. */
47
+ readableIndexes: readonly number[];
48
+ }>;
49
+ type TransactionBase = Readonly<{
50
+ message: {
51
+ recentBlockhash: Blockhash;
52
+ };
53
+ signatures: readonly Base58EncodedBytes[];
54
+ }>;
55
+ type TransactionInstruction = Readonly<{
56
+ programIdIndex: number;
57
+ accounts: readonly number[];
58
+ data: Base58EncodedBytes;
59
+ }>;
60
+ type TransactionJson = TransactionBase & Readonly<{
61
+ message: {
62
+ accountKeys: readonly Address[];
63
+ header: {
64
+ numReadonlySignedAccounts: number;
65
+ numReadonlyUnsignedAccounts: number;
66
+ numRequiredSignatures: number;
67
+ };
68
+ instructions: readonly TransactionInstruction[];
69
+ };
70
+ }>;
71
+ type PartiallyDecodedTransactionInstruction = Readonly<{
72
+ accounts: readonly Address[];
73
+ data: Base58EncodedBytes;
74
+ programId: Address;
75
+ }>;
76
+ type ParsedTransactionInstruction = Readonly<{
77
+ parsed: {
78
+ type: string;
79
+ info?: object;
80
+ };
81
+ program: string;
82
+ programId: Address;
83
+ }>;
84
+ type TransactionJsonParsed = TransactionBase & Readonly<{
85
+ message: {
86
+ accountKeys: [
87
+ {
88
+ pubkey: Address;
89
+ signer: boolean;
90
+ source: string;
91
+ writable: boolean;
92
+ }
93
+ ];
94
+ instructions: readonly (ParsedTransactionInstruction | PartiallyDecodedTransactionInstruction)[];
95
+ };
96
+ }>;
97
+ type GetTransactionCommonConfig<TMaxSupportedTransactionVersion> = Readonly<{
98
+ commitment?: Commitment;
99
+ maxSupportedTransactionVersion?: TMaxSupportedTransactionVersion;
100
+ }>;
101
+ type GetTransactionApiResponseBase = Readonly<{
102
+ /** the slot this transaction was processed in */
103
+ slot: Slot;
104
+ /** estimated production time of when the transaction was processed. null if not available */
105
+ blockTime: UnixTimestamp | null;
106
+ }>;
107
+ type TransactionMetaLoadedAddresses = Readonly<{
108
+ loadedAddresses: {
109
+ writable: readonly Address[];
110
+ readonly: readonly Address[];
111
+ };
112
+ }>;
113
+ type InnerInstructions<TInstructionType> = Readonly<{
114
+ index: number;
115
+ instructions: readonly TInstructionType[];
116
+ }>;
117
+ type TransactionMetaInnerInstructionsNotParsed = Readonly<{
118
+ innerInstructions?: readonly InnerInstructions<TransactionInstruction>[] | null;
119
+ }>;
120
+ type TransactionMetaInnerInstructionsParsed = Readonly<{
121
+ innerInstructions?: readonly InnerInstructions<PartiallyDecodedTransactionInstruction | ParsedTransactionInstruction>[] | null;
122
+ }>;
123
+ type TransactionAddressTableLookups = Readonly<{
124
+ message: Readonly<{
125
+ addressTableLookups: readonly AddressTableLookup[];
126
+ }>;
127
+ }>;
128
+ export interface GetTransactionApi extends RpcApiMethods {
129
+ /**
130
+ * Returns transaction details for a confirmed transaction
131
+ */
132
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
133
+ encoding: 'jsonParsed';
134
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
135
+ version: TransactionVersion;
136
+ }) & {
137
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsParsed) | null;
138
+ transaction: TransactionJsonParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionAddressTableLookups);
139
+ }) | null;
140
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
141
+ encoding: 'base64';
142
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
143
+ version: TransactionVersion;
144
+ }) & {
145
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
146
+ transaction: Base64EncodedDataResponse;
147
+ }) | null;
148
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
149
+ encoding: 'base58';
150
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
151
+ version: TransactionVersion;
152
+ }) & {
153
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
154
+ transaction: Base58EncodedDataResponse;
155
+ }) | null;
156
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config?: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
157
+ encoding?: 'json';
158
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
159
+ version: TransactionVersion;
160
+ }) & {
161
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
162
+ transaction: TransactionJson & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionAddressTableLookups);
163
+ }) | null;
164
+ }
165
+ export {};
166
+ //# sourceMappingURL=getTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransaction.d.ts","sourceRoot":"","sources":["../../src/getTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,SAAS,EACT,UAAU,EACV,gCAAgC,EAChC,IAAI,EACJ,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,KAAK,UAAU,GAAG;IACd,iDAAiD;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,6BAA6B;IAC7B,IAAI,EAAE,yBAAyB,CAAC;CACnC,CAAC;AAEF,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAChC,kEAAkE;IAClE,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7B,uCAAuC;IACvC,GAAG,EAAE,gCAAgC,CAAC;IACtC,0EAA0E;IAC1E,WAAW,EAAE,SAAS,gCAAgC,EAAE,CAAC;IACzD,oEAAoE;IACpE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X,cAAc,CAAC,+BAA+B,SAAS,kBAAkB,GAAG,IAAI,GAAG,IAAI,EACnF,SAAS,EAAE,SAAS,EACpB,MAAM,CAAC,EAAE,0BAA0B,CAAC,+BAA+B,CAAC,GAChE,QAAQ,CAAC;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,GAEJ,CAAC,6BAA6B,GAC1B,CAAC,+BAA+B,SAAS,IAAI,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC,GAAG;QACrC,IAAI,EACE,CAAC,mBAAmB,GAChB,yCAAyC,GACzC,CAAC,+BAA+B,SAAS,IAAI,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,8BAA8B,CAAC,CAAC,GAC1C,IAAI,CAAC;QACX,WAAW,EAAE,eAAe,GACxB,CAAC,+BAA+B,SAAS,IAAI,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB,8BAA8B,CAAC,CAAC;KAC7C,CAAC,GACN,IAAI,CAAC;CACd"}
@@ -0,0 +1,14 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type GetTransactionCountApiResponse = U64UnsafeBeyond2Pow53Minus1;
4
+ export interface GetTransactionCountApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the current Transaction count from the ledger
7
+ */
8
+ getTransactionCount(config?: Readonly<{
9
+ commitment?: Commitment;
10
+ minContextSlot?: Slot;
11
+ }>): GetTransactionCountApiResponse;
12
+ }
13
+ export {};
14
+ //# sourceMappingURL=getTransactionCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransactionCount.d.ts","sourceRoot":"","sources":["../../src/getTransactionCount.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,8BAA8B,GAAG,2BAA2B,CAAC;AAElE,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD;;OAEG;IACH,mBAAmB,CACf,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,8BAA8B,CAAC;CACrC"}
@@ -0,0 +1,15 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ type GetVersionApiResponse = Readonly<{
3
+ /** Unique identifier of the current software's feature set */
4
+ 'feature-set': number;
5
+ /** Software version of `solana-core` */
6
+ 'solana-core': string;
7
+ }>;
8
+ export interface GetVersionApi extends RpcApiMethods {
9
+ /**
10
+ * Returns the current Solana version running on the node
11
+ */
12
+ getVersion(NO_CONFIG?: Record<string, never>): GetVersionApiResponse;
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=getVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVersion.d.ts","sourceRoot":"","sources":["../../src/getVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD;;OAEG;IACH,UAAU,CAEN,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,qBAAqB,CAAC;CAC5B"}
@@ -0,0 +1,44 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ type Epoch = U64UnsafeBeyond2Pow53Minus1;
5
+ type Credits = U64UnsafeBeyond2Pow53Minus1;
6
+ type PreviousCredits = U64UnsafeBeyond2Pow53Minus1;
7
+ type EpochCredit = [Epoch, Credits, PreviousCredits];
8
+ type VoteAccount<TVotePubkey extends Address> = Readonly<{
9
+ /** Vote account address */
10
+ votePubkey: TVotePubkey;
11
+ /** Validator identity */
12
+ nodePubkey: Address;
13
+ /** the stake, in lamports, delegated to this vote account and active in this epoch */
14
+ activatedStake: U64UnsafeBeyond2Pow53Minus1;
15
+ /** whether the vote account is staked for this epoch */
16
+ epochVoteAccount: boolean;
17
+ /** percentage (0-100) of rewards payout owed to the vote account */
18
+ commission: number;
19
+ /** Most recent slot voted on by this vote account */
20
+ lastVote: U64UnsafeBeyond2Pow53Minus1;
21
+ /** Latest history of earned credits for up to five epochs */
22
+ epochCredits: readonly EpochCredit[];
23
+ /** Current root slot for this vote account */
24
+ rootSlot: Slot;
25
+ }>;
26
+ type GetVoteAccountsApiResponse<TVotePubkey extends Address> = Readonly<{
27
+ current: readonly VoteAccount<TVotePubkey>[];
28
+ delinquent: readonly VoteAccount<TVotePubkey>[];
29
+ }>;
30
+ type GetVoteAccountsConfig<TVotePubkey extends Address> = Readonly<{
31
+ commitment?: Commitment;
32
+ /** Only return results for this validator vote address */
33
+ votePubkey?: TVotePubkey;
34
+ /** Do not filter out delinquent validators with no stake */
35
+ keepUnstakedDelinquents?: boolean;
36
+ /** Specify the number of slots behind the tip that a validator must fall to be considered delinquent. **NOTE:** For the sake of consistency between ecosystem products, _it is **not** recommended that this argument be specified._ */
37
+ delinquentSlotDistance?: U64UnsafeBeyond2Pow53Minus1;
38
+ }>;
39
+ export interface GetVoteAccountsApi extends RpcApiMethods {
40
+ /** Returns the account info and associated stake for all the voting accounts in the current bank. */
41
+ getVoteAccounts<TVoteAccount extends Address>(config?: GetVoteAccountsConfig<TVoteAccount>): GetVoteAccountsApiResponse<TVoteAccount>;
42
+ }
43
+ export {};
44
+ //# sourceMappingURL=getVoteAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVoteAccounts.d.ts","sourceRoot":"","sources":["../../src/getVoteAccounts.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,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,KAAK,GAAG,2BAA2B,CAAC;AACzC,KAAK,OAAO,GAAG,2BAA2B,CAAC;AAC3C,KAAK,eAAe,GAAG,2BAA2B,CAAC;AAEnD,KAAK,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAErD,KAAK,WAAW,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IACrD,2BAA2B;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,yBAAyB;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,sFAAsF;IACtF,cAAc,EAAE,2BAA2B,CAAC;IAC5C,wDAAwD;IACxD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,QAAQ,EAAE,2BAA2B,CAAC;IACtC,6DAA6D;IAC7D,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,8CAA8C;IAC9C,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAEH,KAAK,0BAA0B,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IACpE,OAAO,EAAE,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;IAC7C,UAAU,EAAE,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC;CACnD,CAAC,CAAC;AAEH,KAAK,qBAAqB,CAAC,WAAW,SAAS,OAAO,IAAI,QAAQ,CAAC;IAC/D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,4DAA4D;IAC5D,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,wOAAwO;IACxO,sBAAsB,CAAC,EAAE,2BAA2B,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACrD,qGAAqG;IACrG,eAAe,CAAC,YAAY,SAAS,OAAO,EACxC,MAAM,CAAC,EAAE,qBAAqB,CAAC,YAAY,CAAC,GAC7C,0BAA0B,CAAC,YAAY,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,64 @@
1
+ import { RpcApi } from '@solana/rpc-spec';
2
+ import { ParamsTransformerConfig } from '@solana/rpc-transformers';
3
+ import { GetAccountInfoApi } from './getAccountInfo.js';
4
+ import { GetBalanceApi } from './getBalance.js';
5
+ import { GetBlockApi } from './getBlock.js';
6
+ import { GetBlockCommitmentApi } from './getBlockCommitment.js';
7
+ import { GetBlockHeightApi } from './getBlockHeight.js';
8
+ import { GetBlockProductionApi } from './getBlockProduction.js';
9
+ import { GetBlocksApi } from './getBlocks.js';
10
+ import { GetBlocksWithLimitApi } from './getBlocksWithLimit.js';
11
+ import { GetBlockTimeApi } from './getBlockTime.js';
12
+ import { GetClusterNodesApi } from './getClusterNodes.js';
13
+ import { GetEpochInfoApi } from './getEpochInfo.js';
14
+ import { GetEpochScheduleApi } from './getEpochSchedule.js';
15
+ import { GetFeeForMessageApi } from './getFeeForMessage.js';
16
+ import { GetFirstAvailableBlockApi } from './getFirstAvailableBlock.js';
17
+ import { GetGenesisHashApi } from './getGenesisHash.js';
18
+ import { GetHealthApi } from './getHealth.js';
19
+ import { GetHighestSnapshotSlotApi } from './getHighestSnapshotSlot.js';
20
+ import { GetIdentityApi } from './getIdentity.js';
21
+ import { GetInflationGovernorApi } from './getInflationGovernor.js';
22
+ import { GetInflationRateApi } from './getInflationRate.js';
23
+ import { GetInflationRewardApi } from './getInflationReward.js';
24
+ import { GetLargestAccountsApi } from './getLargestAccounts.js';
25
+ import { GetLatestBlockhashApi } from './getLatestBlockhash.js';
26
+ import { GetLeaderScheduleApi } from './getLeaderSchedule.js';
27
+ import { GetMaxRetransmitSlotApi } from './getMaxRetransmitSlot.js';
28
+ import { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot.js';
29
+ import { GetMinimumBalanceForRentExemptionApi } from './getMinimumBalanceForRentExemption.js';
30
+ import { GetMultipleAccountsApi } from './getMultipleAccounts.js';
31
+ import { GetProgramAccountsApi } from './getProgramAccounts.js';
32
+ import { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples.js';
33
+ import { GetRecentPrioritizationFeesApi } from './getRecentPrioritizationFees.js';
34
+ import { GetSignaturesForAddressApi } from './getSignaturesForAddress.js';
35
+ import { GetSignatureStatusesApi } from './getSignatureStatuses.js';
36
+ import { GetSlotApi } from './getSlot.js';
37
+ import { GetSlotLeaderApi } from './getSlotLeader.js';
38
+ import { GetSlotLeadersApi } from './getSlotLeaders.js';
39
+ import { GetStakeActivationApi } from './getStakeActivation.js';
40
+ import { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation.js';
41
+ import { GetSupplyApi } from './getSupply.js';
42
+ import { GetTokenAccountBalanceApi } from './getTokenAccountBalance.js';
43
+ import { GetTokenAccountsByDelegateApi } from './getTokenAccountsByDelegate.js';
44
+ import { GetTokenAccountsByOwnerApi } from './getTokenAccountsByOwner.js';
45
+ import { GetTokenLargestAccountsApi } from './getTokenLargestAccounts.js';
46
+ import { GetTokenSupplyApi } from './getTokenSupply.js';
47
+ import { GetTransactionApi } from './getTransaction.js';
48
+ import { GetTransactionCountApi } from './getTransactionCount.js';
49
+ import { GetVersionApi } from './getVersion.js';
50
+ import { GetVoteAccountsApi } from './getVoteAccounts.js';
51
+ import { IsBlockhashValidApi } from './isBlockhashValid.js';
52
+ import { MinimumLedgerSlotApi } from './minimumLedgerSlot.js';
53
+ import { RequestAirdropApi } from './requestAirdrop.js';
54
+ import { SendTransactionApi } from './sendTransaction.js';
55
+ import { SimulateTransactionApi } from './simulateTransaction.js';
56
+ export type SolanaRpcApi = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeActivationApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & RequestAirdropApi & SendTransactionApi & SimulateTransactionApi;
57
+ export type SolanaRpcApiDevnet = SolanaRpcApi;
58
+ export type SolanaRpcApiTestnet = SolanaRpcApi;
59
+ export type SolanaRpcApiMainnet = Omit<SolanaRpcApi, 'requestAirdrop'>;
60
+ export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, };
61
+ export type { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js';
62
+ type Config = ParamsTransformerConfig;
63
+ export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiTestnet | SolanaRpcApiMainnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
64
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAOH,uBAAuB,EAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MA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AAY,EACZ,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,GACzB,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,gCAAgC,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAE5G,KAAK,MAAM,GAAG,uBAAuB,CAAC;AAEtC,wBAAgB,kBAAkB,CAC9B,WAAW,SAAS,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,YAAY,EAClH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAOtC"}
@@ -0,0 +1,18 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Blockhash, Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type IsBlockhashValidApiResponse = SolanaRpcResponse<boolean>;
4
+ export interface IsBlockhashValidApi extends RpcApiMethods {
5
+ /**
6
+ * Returns whether a blockhash is still valid or not
7
+ */
8
+ isBlockhashValid(
9
+ /** query blockhash, as a base-58 encoded string */
10
+ blockhash: Blockhash, config?: Readonly<{
11
+ /** Defaults to `finalized` */
12
+ commitment?: Commitment;
13
+ /** The minimum slot that the request can be evaluated at */
14
+ minContextSlot?: Slot;
15
+ }>): IsBlockhashValidApiResponse;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=isBlockhashValid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBlockhashValid.d.ts","sourceRoot":"","sources":["../../src/isBlockhashValid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAExF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAE9D,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD;;OAEG;IACH,gBAAgB;IACZ,mDAAmD;IACnD,SAAS,EAAE,SAAS,EACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,8BAA8B;QAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,4DAA4D;QAC5D,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 MinimumLedgerSlotApiResponse = Slot;
4
+ export interface MinimumLedgerSlotApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the lowest slot that the node has information about in its ledger.
7
+ * This value may increase over time if the node is configured to purge older ledger data.
8
+ */
9
+ minimumLedgerSlot(): MinimumLedgerSlotApiResponse;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=minimumLedgerSlot.d.ts.map