@solana/rpc-api 2.0.0-20241006045741

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 +59 -0
  3. package/dist/index.browser.cjs +115 -0
  4. package/dist/index.browser.cjs.map +1 -0
  5. package/dist/index.browser.mjs +113 -0
  6. package/dist/index.browser.mjs.map +1 -0
  7. package/dist/index.native.mjs +113 -0
  8. package/dist/index.native.mjs.map +1 -0
  9. package/dist/index.node.cjs +115 -0
  10. package/dist/index.node.cjs.map +1 -0
  11. package/dist/index.node.mjs +113 -0
  12. package/dist/index.node.mjs.map +1 -0
  13. package/dist/types/getAccountInfo.d.ts +30 -0
  14. package/dist/types/getAccountInfo.d.ts.map +1 -0
  15. package/dist/types/getBalance.d.ts +14 -0
  16. package/dist/types/getBalance.d.ts.map +1 -0
  17. package/dist/types/getBlock.d.ts +172 -0
  18. package/dist/types/getBlock.d.ts.map +1 -0
  19. package/dist/types/getBlockCommitment.d.ts +14 -0
  20. package/dist/types/getBlockCommitment.d.ts.map +1 -0
  21. package/dist/types/getBlockHeight.d.ts +13 -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 +13 -0
  26. package/dist/types/getBlockTime.d.ts.map +1 -0
  27. package/dist/types/getBlocks.d.ts +12 -0
  28. package/dist/types/getBlocks.d.ts.map +1 -0
  29. package/dist/types/getBlocksWithLimit.d.ts +13 -0
  30. package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
  31. package/dist/types/getClusterNodes.d.ts +47 -0
  32. package/dist/types/getClusterNodes.d.ts.map +1 -0
  33. package/dist/types/getEpochInfo.d.ts +26 -0
  34. package/dist/types/getEpochInfo.d.ts.map +1 -0
  35. package/dist/types/getEpochSchedule.d.ts +22 -0
  36. package/dist/types/getEpochSchedule.d.ts.map +1 -0
  37. package/dist/types/getFeeForMessage.d.ts +15 -0
  38. package/dist/types/getFeeForMessage.d.ts.map +1 -0
  39. package/dist/types/getFirstAvailableBlock.d.ts +11 -0
  40. package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
  41. package/dist/types/getGenesisHash.d.ts +10 -0
  42. package/dist/types/getGenesisHash.d.ts.map +1 -0
  43. package/dist/types/getHealth.d.ts +9 -0
  44. package/dist/types/getHealth.d.ts.map +1 -0
  45. package/dist/types/getHighestSnapshotSlot.d.ts +17 -0
  46. package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
  47. package/dist/types/getIdentity.d.ts +12 -0
  48. package/dist/types/getIdentity.d.ts.map +1 -0
  49. package/dist/types/getInflationGovernor.d.ts +27 -0
  50. package/dist/types/getInflationGovernor.d.ts.map +1 -0
  51. package/dist/types/getInflationRate.d.ts +19 -0
  52. package/dist/types/getInflationRate.d.ts.map +1 -0
  53. package/dist/types/getInflationReward.d.ts +23 -0
  54. package/dist/types/getInflationReward.d.ts.map +1 -0
  55. package/dist/types/getLargestAccounts.d.ts +22 -0
  56. package/dist/types/getLargestAccounts.d.ts.map +1 -0
  57. package/dist/types/getLatestBlockhash.d.ts +18 -0
  58. package/dist/types/getLatestBlockhash.d.ts.map +1 -0
  59. package/dist/types/getLeaderSchedule.d.ts +50 -0
  60. package/dist/types/getLeaderSchedule.d.ts.map +1 -0
  61. package/dist/types/getMaxRetransmitSlot.d.ts +11 -0
  62. package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
  63. package/dist/types/getMaxShredInsertSlot.d.ts +11 -0
  64. package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
  65. package/dist/types/getMinimumBalanceForRentExemption.d.ts +12 -0
  66. package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
  67. package/dist/types/getMultipleAccounts.d.ts +43 -0
  68. package/dist/types/getMultipleAccounts.d.ts.map +1 -0
  69. package/dist/types/getProgramAccounts.d.ts +59 -0
  70. package/dist/types/getProgramAccounts.d.ts.map +1 -0
  71. package/dist/types/getRecentPerformanceSamples.d.ts +24 -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 +56 -0
  76. package/dist/types/getSignatureStatuses.d.ts.map +1 -0
  77. package/dist/types/getSignaturesForAddress.d.ts +39 -0
  78. package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
  79. package/dist/types/getSlot.d.ts +13 -0
  80. package/dist/types/getSlot.d.ts.map +1 -0
  81. package/dist/types/getSlotLeader.d.ts +14 -0
  82. package/dist/types/getSlotLeader.d.ts.map +1 -0
  83. package/dist/types/getSlotLeaders.d.ts +16 -0
  84. package/dist/types/getSlotLeaders.d.ts.map +1 -0
  85. package/dist/types/getStakeActivation.d.ts +25 -0
  86. package/dist/types/getStakeActivation.d.ts.map +1 -0
  87. package/dist/types/getStakeMinimumDelegation.d.ts +12 -0
  88. package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
  89. package/dist/types/getSupply.d.ts +37 -0
  90. package/dist/types/getSupply.d.ts.map +1 -0
  91. package/dist/types/getTokenAccountBalance.d.ts +15 -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 +15 -0
  100. package/dist/types/getTokenSupply.d.ts.map +1 -0
  101. package/dist/types/getTransaction.d.ts +166 -0
  102. package/dist/types/getTransaction.d.ts.map +1 -0
  103. package/dist/types/getTransactionCount.d.ts +13 -0
  104. package/dist/types/getTransactionCount.d.ts.map +1 -0
  105. package/dist/types/getVersion.d.ts +14 -0
  106. package/dist/types/getVersion.d.ts.map +1 -0
  107. package/dist/types/getVoteAccounts.d.ts +43 -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 +17 -0
  112. package/dist/types/isBlockhashValid.d.ts.map +1 -0
  113. package/dist/types/minimumLedgerSlot.d.ts +11 -0
  114. package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
  115. package/dist/types/requestAirdrop.d.ts +15 -0
  116. package/dist/types/requestAirdrop.d.ts.map +1 -0
  117. package/dist/types/sendTransaction.d.ts +48 -0
  118. package/dist/types/sendTransaction.d.ts.map +1 -0
  119. package/dist/types/simulateTransaction.d.ts +143 -0
  120. package/dist/types/simulateTransaction.d.ts.map +1 -0
  121. package/package.json +96 -0
@@ -0,0 +1,59 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, Commitment, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetProgramAccountsApiCommonConfig = Readonly<{
4
+ /** @defaultValue "finalized" */
5
+ commitment?: Commitment;
6
+ /** filter results (up to 4 filters allowed) @see https://docs.solana.com/api/http#filter-criteria */
7
+ filters?: (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter)[];
8
+ /** The minimum slot that the request can be evaluated at */
9
+ minContextSlot?: Slot;
10
+ }>;
11
+ type GetProgramAccountsApiSliceableCommonConfig = Readonly<{
12
+ /** Limit the returned account data */
13
+ dataSlice?: DataSlice;
14
+ }>;
15
+ export type GetProgramAccountsApi = {
16
+ /**
17
+ * Returns the account information for a list of Pubkeys.
18
+ */
19
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
20
+ encoding: 'base64';
21
+ withContext: true;
22
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
23
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
24
+ encoding: 'base64';
25
+ withContext?: boolean;
26
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[];
27
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
28
+ encoding: 'base64+zstd';
29
+ withContext: true;
30
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
31
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
32
+ encoding: 'base64+zstd';
33
+ withContext?: boolean;
34
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[];
35
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
36
+ encoding: 'jsonParsed';
37
+ withContext: true;
38
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[]>;
39
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
40
+ encoding: 'jsonParsed';
41
+ withContext?: boolean;
42
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[];
43
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
44
+ encoding: 'base58';
45
+ withContext: true;
46
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
47
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
48
+ encoding: 'base58';
49
+ withContext?: boolean;
50
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[];
51
+ getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
52
+ withContext: true;
53
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
54
+ getProgramAccounts(program: Address, config?: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
55
+ withContext?: boolean;
56
+ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[];
57
+ };
58
+ export {};
59
+ //# 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,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;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,qGAAqG;IACrG,OAAO,CAAC,EAAE,CAAC,gCAAgC,GAAG,8BAA8B,CAAC,EAAE,CAAC;IAChF,4DAA4D;IAC5D,cAAc,CAA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KACzB,CAAC,GACP,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC;CAC5E,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
2
+ type PerformanceSample = Readonly<{
3
+ /** Number of non-vote transactions in sample. */
4
+ numNonVoteTransactions: U64UnsafeBeyond2Pow53Minus1;
5
+ /** Number of slots in sample */
6
+ numSlots: U64UnsafeBeyond2Pow53Minus1;
7
+ /** Number of transactions in sample */
8
+ numTransactions: U64UnsafeBeyond2Pow53Minus1;
9
+ /** Number of seconds in a sample window */
10
+ samplePeriodSecs: number;
11
+ /** Slot in which sample was taken at */
12
+ slot: Slot;
13
+ }>;
14
+ type GetRecentPerformanceSamplesApiResponse = readonly PerformanceSample[];
15
+ export type GetRecentPerformanceSamplesApi = {
16
+ /**
17
+ * 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.
18
+ */
19
+ getRecentPerformanceSamples(
20
+ /** number of samples to return (maximum 720) */
21
+ limit?: number): GetRecentPerformanceSamplesApiResponse;
22
+ };
23
+ export {};
24
+ //# sourceMappingURL=getRecentPerformanceSamples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRecentPerformanceSamples.d.ts","sourceRoot":"","sources":["../../src/getRecentPerformanceSamples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE3E,KAAK,iBAAiB,GAAG,QAAQ,CAAC;IAC9B,iDAAiD;IACjD,sBAAsB,EAAE,2BAA2B,CAAC;IACpD,gCAAgC;IAChC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,uCAAuC;IACvC,eAAe,EAAE,2BAA2B,CAAC;IAC7C,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,wCAAwC;IACxC,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,CAAC;AAEH,KAAK,sCAAsC,GAAG,SAAS,iBAAiB,EAAE,CAAC;AAE3E,MAAM,MAAM,8BAA8B,GAAG;IACzC;;OAEG;IACH,2BAA2B;IACvB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GACf,sCAAsC,CAAC;CAC7C,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from '@solana/rpc-types';
3
+ type RecentPrioritizationFee = Readonly<{
4
+ /**
5
+ * The per-compute-unit fee paid by at least one successfully
6
+ * landed transaction, specified in increments of
7
+ * micro-lamports (0.000001 lamports).
8
+ */
9
+ prioritizationFee: MicroLamportsUnsafeBeyond2Pow53Minus1;
10
+ /** Slot in which the fee was observed */
11
+ slot: Slot;
12
+ }>;
13
+ type GetRecentPrioritizationFeesApiResponse = readonly RecentPrioritizationFee[];
14
+ export type GetRecentPrioritizationFeesApi = {
15
+ /**
16
+ * Returns the balance of the account of provided Pubkey
17
+ */
18
+ getRecentPrioritizationFees(
19
+ /**
20
+ * An array of Account addresses (up to a maximum of 128 addresses),
21
+ * as base-58 encoded strings.
22
+ *
23
+ * Note: If this parameter is provided, the response will reflect
24
+ * a fee to land a transaction locking all of the provided accounts
25
+ * as writable.
26
+ */
27
+ addresses?: Address[]): GetRecentPrioritizationFeesApiResponse;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=getRecentPrioritizationFees.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRecentPrioritizationFees.d.ts","sourceRoot":"","sources":["../../src/getRecentPrioritizationFees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,qCAAqC,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAErF,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,EAAE,qCAAqC,CAAC;IACzD,yCAAyC;IACzC,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,CAAC;AAEH,KAAK,sCAAsC,GAAG,SAAS,uBAAuB,EAAE,CAAC;AAEjF,MAAM,MAAM,8BAA8B,GAAG;IACzC;;OAEG;IACH,2BAA2B;IACvB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,EAAE,GACtB,sCAAsC,CAAC;CAC7C,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type { Signature } from '@solana/keys';
2
+ import type { Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ /** @deprecated */
4
+ type TransactionStatusOk = Readonly<{
5
+ Ok: null;
6
+ }>;
7
+ /** @deprecated */
8
+ type TransactionStatusErr = Readonly<{
9
+ Err: TransactionError;
10
+ }>;
11
+ type SignatureStatusResult = Readonly<{
12
+ /**
13
+ * The transaction's cluster confirmation status; either `processed`,
14
+ * `confirmed`, or `finalized`.
15
+ */
16
+ confirmationStatus: Commitment | null;
17
+ /**
18
+ * Number of blocks since signature confirmation, null if rooted,
19
+ * as well as finalized by a supermajority of the cluster
20
+ */
21
+ confirmations: U64UnsafeBeyond2Pow53Minus1 | null;
22
+ /** Error if transaction failed, null if transaction succeeded */
23
+ err: TransactionError | null;
24
+ /** The slot the transaction was processed */
25
+ slot: Slot;
26
+ /**
27
+ * @deprecated Transaction status
28
+ */
29
+ status: TransactionStatusErr | TransactionStatusOk;
30
+ }>;
31
+ type GetSignatureStatusesApiResponse = readonly (SignatureStatusResult | null)[];
32
+ export type GetSignatureStatusesApi = {
33
+ /**
34
+ * Returns the statuses of a list of signatures.
35
+ * Each signature must be a txid, the first signature of a transaction.
36
+ *
37
+ * Note: Unless the `searchTransactionHistory` configuration parameter is
38
+ * included, this method only searches the recent status cache of
39
+ * signatures, which retains statuses for all active slots plus
40
+ * `MAX_RECENT_BLOCKHASHES` rooted slots.
41
+ */
42
+ getSignatureStatuses(
43
+ /**
44
+ * An array of transaction signatures to confirm,
45
+ * as base-58 encoded strings (up to a maximum of 256)
46
+ */
47
+ signatures: Signature[], config?: Readonly<{
48
+ /**
49
+ * if `true` - a Solana node will search its ledger cache for any
50
+ * signatures not found in the recent status cache
51
+ */
52
+ searchTransactionHistory?: boolean;
53
+ }>): SolanaRpcResponse<GetSignatureStatusesApiResponse>;
54
+ };
55
+ export {};
56
+ //# sourceMappingURL=getSignatureStatuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSignatureStatuses.d.ts","sourceRoot":"","sources":["../../src/getSignatureStatuses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACR,UAAU,EACV,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,kBAAkB;AAClB,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAChC,EAAE,EAAE,IAAI,CAAC;CACZ,CAAC,CAAC;AAEH,kBAAkB;AAClB,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACjC,GAAG,EAAE,gBAAgB,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC;;;OAGG;IACH,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC;;;OAGG;IACH,aAAa,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAClD,iEAAiE;IACjE,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,oBAAoB,GAAG,mBAAmB,CAAC;CACtD,CAAC,CAAC;AAEH,KAAK,+BAA+B,GAAG,SAAS,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG;IAClC;;;;;;;;OAQG;IACH,oBAAoB;IAChB;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC,GACH,iBAAiB,CAAC,+BAA+B,CAAC,CAAC;CACzD,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Signature } from '@solana/keys';
3
+ import type { Commitment, Slot, TransactionError, UnixTimestampUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ type GetSignaturesForAddressTransaction = Readonly<{
5
+ /** estimated production time of when transaction was processed. null if not available. */
6
+ blockTime: UnixTimestampUnsafeBeyond2Pow53Minus1 | null;
7
+ /** The transaction's cluster confirmation status */
8
+ confirmationStatus: Commitment | null;
9
+ /** Error if transaction failed, null if transaction succeeded. */
10
+ err: TransactionError | null;
11
+ /** Memo associated with the transaction, null if no memo is present */
12
+ memo: string | null;
13
+ /** transaction signature as base-58 encoded string */
14
+ signature: Signature;
15
+ /** The slot that contains the block with the transaction */
16
+ slot: Slot;
17
+ }>;
18
+ type GetSignaturesForAddressApiResponse = readonly GetSignaturesForAddressTransaction[];
19
+ type AllowedCommitmentForGetSignaturesForAddress = Exclude<Commitment, 'processed'>;
20
+ type GetSignaturesForAddressConfig = Readonly<{
21
+ /** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
22
+ before?: Signature;
23
+ commitment?: AllowedCommitmentForGetSignaturesForAddress;
24
+ /** maximum transaction signatures to return (between 1 and 1,000). Default: 1000 */
25
+ limit?: number;
26
+ /** The minimum slot that the request can be evaluated at */
27
+ minContextSlot?: Slot;
28
+ /** search until this transaction signature, if found before limit reached */
29
+ until?: Signature;
30
+ }>;
31
+ export type GetSignaturesForAddressApi = {
32
+ /**
33
+ * Returns signatures for confirmed transactions that include the given address in their accountKeys list.
34
+ * Returns signatures backwards in time from the provided signature or most recent confirmed block
35
+ */
36
+ getSignaturesForAddress(address: Address, config?: GetSignaturesForAddressConfig): GetSignaturesForAddressApiResponse;
37
+ };
38
+ export {};
39
+ //# sourceMappingURL=getSignaturesForAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSignaturesForAddress.d.ts","sourceRoot":"","sources":["../../src/getSignaturesForAddress.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,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,qCAAqC,EAAE,MAAM,mBAAmB,CAAC;AAEnH,KAAK,kCAAkC,GAAG,QAAQ,CAAC;IAC/C,0FAA0F;IAC1F,SAAS,EAAE,qCAAqC,GAAG,IAAI,CAAC;IACxD,oDAAoD;IACpD,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,kEAAkE;IAClE,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7B,uEAAuE;IACvE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,sDAAsD;IACtD,SAAS,EAAE,SAAS,CAAC;IACrB,4DAA4D;IAC5D,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,CAAC;AAEH,KAAK,kCAAkC,GAAG,SAAS,kCAAkC,EAAE,CAAC;AAExF,KAAK,2CAA2C,GAAG,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEpF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,oJAAoJ;IACpJ,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,CAAC,EAAE,2CAA2C,CAAC;IACzD,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG;IACrC;;;OAGG;IACH,uBAAuB,CACnB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,6BAA6B,GACvC,kCAAkC,CAAC;CACzC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Commitment, Slot } from '@solana/rpc-types';
2
+ type GetSlotApiResponse = Slot;
3
+ export type GetSlotApi = {
4
+ /**
5
+ * Returns the slot that has reached the given or default commitment level
6
+ */
7
+ getSlot(config?: Readonly<{
8
+ commitment?: Commitment;
9
+ minContextSlot?: Slot;
10
+ }>): GetSlotApiResponse;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=getSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSlot.d.ts","sourceRoot":"","sources":["../../src/getSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,kBAAkB,GAAG,IAAI,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG;IACrB;;OAEG;IACH,OAAO,CACH,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,kBAAkB,CAAC;CACzB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, Slot } from '@solana/rpc-types';
3
+ type GetSlotLeaderApiResponse = Address;
4
+ export type GetSlotLeaderApi = {
5
+ /**
6
+ * Returns the current slot leader
7
+ */
8
+ getSlotLeader(config?: Readonly<{
9
+ commitment?: Commitment;
10
+ minContextSlot?: Slot;
11
+ }>): GetSlotLeaderApiResponse;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=getSlotLeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSlotLeader.d.ts","sourceRoot":"","sources":["../../src/getSlotLeader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,wBAAwB,GAAG,OAAO,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,aAAa,CACT,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,wBAAwB,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Slot } from '@solana/rpc-types';
3
+ /** array of Node identity public keys as base-58 encoded strings */
4
+ type GetSlotLeadersApiResponse = Address[];
5
+ export type GetSlotLeadersApi = {
6
+ /**
7
+ * Returns the slot leaders for a given slot range
8
+ */
9
+ getSlotLeaders(
10
+ /** Start slot, as u64 integer */
11
+ startSlot: Slot,
12
+ /** Limit (between 1 and 5000) */
13
+ limit: number): GetSlotLeadersApiResponse;
14
+ };
15
+ export {};
16
+ //# sourceMappingURL=getSlotLeaders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSlotLeaders.d.ts","sourceRoot":"","sources":["../../src/getSlotLeaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oEAAoE;AACpE,KAAK,yBAAyB,GAAG,OAAO,EAAE,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc;IACV,iCAAiC;IACjC,SAAS,EAAE,IAAI;IACf,iCAAiC;IACjC,KAAK,EAAE,MAAM,GACd,yBAAyB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
3
+ type GetStakeActivationApiResponse = Readonly<{
4
+ /** Stake active during the epoch */
5
+ active: U64UnsafeBeyond2Pow53Minus1;
6
+ /** Stake inactive during the epoch */
7
+ inactive: U64UnsafeBeyond2Pow53Minus1;
8
+ /** The stake account's activation state */
9
+ state: 'activating' | 'active' | 'deactivating' | 'inactive';
10
+ }>;
11
+ export type GetStakeActivationApi = {
12
+ /**
13
+ * Returns epoch activation information for a stake account
14
+ *
15
+ * @deprecated Deprecated since RPC v1.18; will be removed in a future version.
16
+ */
17
+ getStakeActivation(address: Address, config?: Readonly<{
18
+ commitment?: Commitment;
19
+ /** Defaults to current epoch */
20
+ epoch?: U64UnsafeBeyond2Pow53Minus1;
21
+ minContextSlot?: Slot;
22
+ }>): GetStakeActivationApiResponse;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=getStakeActivation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStakeActivation.d.ts","sourceRoot":"","sources":["../../src/getStakeActivation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,oCAAoC;IACpC,MAAM,EAAE,2BAA2B,CAAC;IACpC,sCAAsC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,2CAA2C;IAC3C,KAAK,EAAE,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,UAAU,CAAC;CAChE,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;;OAIG;IACH,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,gCAAgC;QAChC,KAAK,CAAC,EAAE,2BAA2B,CAAC;QACpC,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,6BAA6B,CAAC;CACpC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
2
+ type GetStakeMinimumDelegationApiResponse = LamportsUnsafeBeyond2Pow53Minus1;
3
+ export type GetStakeMinimumDelegationApi = {
4
+ /**
5
+ * Returns the stake minimum delegation, in lamports.
6
+ */
7
+ getStakeMinimumDelegation(config?: Readonly<{
8
+ commitment?: Commitment;
9
+ }>): SolanaRpcResponse<GetStakeMinimumDelegationApiResponse>;
10
+ };
11
+ export {};
12
+ //# sourceMappingURL=getStakeMinimumDelegation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStakeMinimumDelegation.d.ts","sourceRoot":"","sources":["../../src/getStakeMinimumDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,KAAK,oCAAoC,GAAG,gCAAgC,CAAC;AAE7E,MAAM,MAAM,4BAA4B,GAAG;IACvC;;OAEG;IACH,yBAAyB,CACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,oCAAoC,CAAC,CAAC;CAC9D,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetSupplyConfig = Readonly<{
4
+ commitment?: Commitment;
5
+ }>;
6
+ type GetSupplyApiResponseBase = Readonly<{
7
+ /** Circulating supply in lamports */
8
+ circulating: LamportsUnsafeBeyond2Pow53Minus1;
9
+ /** Non-circulating supply in lamports */
10
+ nonCirculating: LamportsUnsafeBeyond2Pow53Minus1;
11
+ /** Total supply in lamports */
12
+ total: LamportsUnsafeBeyond2Pow53Minus1;
13
+ }>;
14
+ type GetSupplyApiResponseWithNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{
15
+ /** an array of account addresses of non-circulating accounts */
16
+ nonCirculatingAccounts: Address[];
17
+ }>;
18
+ type GetSupplyApiResponseWithoutNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{
19
+ /** As per the docs:
20
+ * "If `excludeNonCirculatingAccountsList` is enabled, the returned array will be empty."
21
+ * See: https://solana.com/docs/rpc/http/getsupply
22
+ */
23
+ nonCirculatingAccounts: never[];
24
+ }>;
25
+ export type GetSupplyApi = {
26
+ /**
27
+ * Returns information about the current supply.
28
+ */
29
+ getSupply(config: GetSupplyConfig & Readonly<{
30
+ excludeNonCirculatingAccountsList: true;
31
+ }>): SolanaRpcResponse<GetSupplyApiResponseWithoutNonCirculatingAccounts>;
32
+ getSupply(config?: GetSupplyConfig & Readonly<{
33
+ excludeNonCirculatingAccountsList?: false;
34
+ }>): SolanaRpcResponse<GetSupplyApiResponseWithNonCirculatingAccounts>;
35
+ };
36
+ export {};
37
+ //# 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,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,QAAQ,CAAC;IACrC,qCAAqC;IACrC,WAAW,EAAE,gCAAgC,CAAC;IAC9C,yCAAyC;IACzC,cAAc,EAAE,gCAAgC,CAAC;IACjD,+BAA+B;IAC/B,KAAK,EAAE,gCAAgC,CAAC;CAC3C,CAAC,CAAC;AAEH,KAAK,8CAA8C,GAAG,wBAAwB,GAC1E,QAAQ,CAAC;IACL,gEAAgE;IAChE,sBAAsB,EAAE,OAAO,EAAE,CAAC;CACrC,CAAC,CAAC;AAEP,KAAK,iDAAiD,GAAG,wBAAwB,GAC7E,QAAQ,CAAC;IACL;;;OAGG;IACH,sBAAsB,EAAE,KAAK,EAAE,CAAC;CACnC,CAAC,CAAC;AAEP,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,CACL,MAAM,EAAE,eAAe,GACnB,QAAQ,CAAC;QACL,iCAAiC,EAAE,IAAI,CAAC;KAC3C,CAAC,GACP,iBAAiB,CAAC,iDAAiD,CAAC,CAAC;IACxE,SAAS,CACL,MAAM,CAAC,EAAE,eAAe,GACpB,QAAQ,CAAC;QACL,iCAAiC,CAAC,EAAE,KAAK,CAAC;KAC7C,CAAC,GACP,iBAAiB,CAAC,8CAA8C,CAAC,CAAC;CACxE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
3
+ type GetTokenAccountBalanceApiResponse = TokenAmount;
4
+ export type GetTokenAccountBalanceApi = {
5
+ /**
6
+ * Returns the token balance of an SPL Token account
7
+ */
8
+ getTokenAccountBalance(
9
+ /** Pubkey of Token account to query, as base-58 encoded string */
10
+ address: Address, config?: Readonly<{
11
+ commitment?: Commitment;
12
+ }>): SolanaRpcResponse<GetTokenAccountBalanceApiResponse>;
13
+ };
14
+ export {};
15
+ //# 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,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,iCAAiC,GAAG,WAAW,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG;IACpC;;OAEG;IACH,sBAAsB;IAClB,kEAAkE;IAClE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,iCAAiC,CAAC,CAAC;CAC3D,CAAC"}
@@ -0,0 +1,54 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
3
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ type TokenAccountInfoWithJsonData = Readonly<{
5
+ data: Readonly<{
6
+ parsed: {
7
+ info: JsonParsedTokenAccount;
8
+ type: 'account';
9
+ };
10
+ /** Name of the program that owns this account. */
11
+ program: Address;
12
+ space: U64UnsafeBeyond2Pow53Minus1;
13
+ }>;
14
+ }>;
15
+ type GetTokenAccountsByDelegateResponse<T> = readonly AccountInfoWithPubkey<AccountInfoBase & T>[];
16
+ type MintFilter = Readonly<{
17
+ /** Pubkey of the specific token Mint to limit accounts to */
18
+ mint: Address;
19
+ }>;
20
+ type ProgramIdFilter = Readonly<{
21
+ /** Pubkey of the Token program that owns the accounts */
22
+ programId: Address;
23
+ }>;
24
+ type AccountsFilter = MintFilter | ProgramIdFilter;
25
+ type GetTokenAccountsByDelegateApiCommonConfig = Readonly<{
26
+ /** @defaultValue "finalized" */
27
+ commitment?: Commitment;
28
+ /** The minimum slot that the request can be evaluated at */
29
+ minContextSlot?: Slot;
30
+ }>;
31
+ type GetTokenAccountsByDelegateApiSliceableCommonConfig = Readonly<{
32
+ /** Limit the returned account data */
33
+ dataSlice?: DataSlice;
34
+ }>;
35
+ export type GetTokenAccountsByDelegateApi = {
36
+ /**
37
+ * Returns all SPL Token accounts by approved Delegate.
38
+ */
39
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
40
+ encoding: 'base64';
41
+ }>): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase64EncodedData>>;
42
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
43
+ encoding: 'base64+zstd';
44
+ }>): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase64EncodedZStdCompressedData>>;
45
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & Readonly<{
46
+ encoding: 'jsonParsed';
47
+ }>): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<TokenAccountInfoWithJsonData>>;
48
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
49
+ encoding: 'base58';
50
+ }>): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase58EncodedData>>;
51
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): SolanaRpcResponse<GetTokenAccountsByDelegateResponse<AccountInfoWithBase58Bytes>>;
52
+ };
53
+ export {};
54
+ //# sourceMappingURL=getTokenAccountsByDelegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,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type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
3
+ import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ type TokenAccountInfoWithJsonData = Readonly<{
5
+ data: Readonly<{
6
+ parsed: {
7
+ info: JsonParsedTokenAccount;
8
+ type: 'account';
9
+ };
10
+ /** Name of the program that owns this account. */
11
+ program: Address;
12
+ space: U64UnsafeBeyond2Pow53Minus1;
13
+ }>;
14
+ }>;
15
+ type GetTokenAccountsByOwnerResponse<T> = readonly AccountInfoWithPubkey<AccountInfoBase & T>[];
16
+ type MintFilter = Readonly<{
17
+ /** Pubkey of the specific token Mint to limit accounts to */
18
+ mint: Address;
19
+ }>;
20
+ type ProgramIdFilter = Readonly<{
21
+ /** Pubkey of the Token program that owns the accounts */
22
+ programId: Address;
23
+ }>;
24
+ type AccountsFilter = MintFilter | ProgramIdFilter;
25
+ type GetTokenAccountsByOwnerApiCommonConfig = Readonly<{
26
+ /** @defaultValue "finalized" */
27
+ commitment?: Commitment;
28
+ /** The minimum slot that the request can be evaluated at */
29
+ minContextSlot?: Slot;
30
+ }>;
31
+ type GetTokenAccountsByOwnerApiSliceableCommonConfig = Readonly<{
32
+ /** Limit the returned account data */
33
+ dataSlice?: DataSlice;
34
+ }>;
35
+ export type GetTokenAccountsByOwnerApi = {
36
+ /**
37
+ * Returns all SPL Token accounts by token owner.
38
+ */
39
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
40
+ encoding: 'base64';
41
+ }>): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedData>>;
42
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
43
+ encoding: 'base64+zstd';
44
+ }>): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase64EncodedZStdCompressedData>>;
45
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{
46
+ encoding: 'jsonParsed';
47
+ }>): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<TokenAccountInfoWithJsonData>>;
48
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
49
+ encoding: 'base58';
50
+ }>): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58EncodedData>>;
51
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): SolanaRpcResponse<GetTokenAccountsByOwnerResponse<AccountInfoWithBase58Bytes>>;
52
+ };
53
+ export {};
54
+ //# 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,EACR,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACjB,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,4BAA4B,GAAG,QAAQ,CAAC;IACzC,IAAI,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C;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,iBAAiB,CAAC,+BAA+B,CAAC,8CAA8C,CAAC,CAAC,CAAC;IAEtG,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,+BAA+B,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAEpF,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,+BAA+B,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAExF,uBAAuB,CACnB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,sCAAsC,GAAG,+CAA+C,GAClG,iBAAiB,CAAC,+BAA+B,CAAC,0BAA0B,CAAC,CAAC,CAAC;CACrF,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
3
+ type TokenLargestAccount = Readonly<{
4
+ address: Address;
5
+ }> & TokenAmount;
6
+ type GetTokenLargestAccountsApiResponse = readonly TokenLargestAccount[];
7
+ export type GetTokenLargestAccountsApi = {
8
+ /**
9
+ * Returns the 20 largest accounts of a particular SPL Token type.
10
+ */
11
+ getTokenLargestAccounts(tokenMint: Address, config?: Readonly<{
12
+ commitment?: Commitment;
13
+ }>): SolanaRpcResponse<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,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,WAAW,CAAC;AAExE,KAAK,kCAAkC,GAAG,SAAS,mBAAmB,EAAE,CAAC;AAEzE,MAAM,MAAM,0BAA0B,GAAG;IACrC;;OAEG;IACH,uBAAuB,CACnB,SAAS,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;CAC5D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
3
+ type GetTokenSupplyApiResponse = TokenAmount;
4
+ export type GetTokenSupplyApi = {
5
+ /**
6
+ * Returns the total supply of an SPL Token mint
7
+ */
8
+ getTokenSupply(
9
+ /** Pubkey of the token Mint to query, as base-58 encoded string */
10
+ address: Address, config?: Readonly<{
11
+ commitment?: Commitment;
12
+ }>): SolanaRpcResponse<GetTokenSupplyApiResponse>;
13
+ };
14
+ export {};
15
+ //# 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,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpF,KAAK,yBAAyB,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc;IACV,mEAAmE;IACnE,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;CACnD,CAAC"}