@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":"getRecentPerformanceSamples.d.ts","sourceRoot":"","sources":["../../src/getRecentPerformanceSamples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE3E,KAAK,iBAAiB,GAAG,QAAQ,CAAC;IAC9B,iDAAiD;IACjD,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,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,WAAW,8BAA+B,SAAQ,aAAa;IACjE;;OAEG;IACH,2BAA2B;IACvB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GACf,sCAAsC,CAAC;CAC7C"}
@@ -0,0 +1,30 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from '@solana/rpc-types';
4
+ type GetRecentPrioritizationFeesApiResponse = Readonly<{
5
+ /**
6
+ * The per-compute-unit fee paid by at least one successfully
7
+ * landed transaction, specified in increments of
8
+ * micro-lamports (0.000001 lamports).
9
+ */
10
+ prioritizationFee: MicroLamportsUnsafeBeyond2Pow53Minus1;
11
+ /** Slot in which the fee was observed */
12
+ slot: Slot;
13
+ }>[];
14
+ export interface GetRecentPrioritizationFeesApi extends RpcApiMethods {
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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qCAAqC,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAErF,KAAK,sCAAsC,GAAG,QAAQ,CAAC;IACnD;;;;OAIG;IACH,iBAAiB,EAAE,qCAAqC,CAAC;IACzD,yCAAyC;IACzC,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,EAAE,CAAC;AAEL,MAAM,WAAW,8BAA+B,SAAQ,aAAa;IACjE;;OAEG;IACH,2BAA2B;IACvB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,EAAE,GACtB,sCAAsC,CAAC;CAC7C"}
@@ -0,0 +1,58 @@
1
+ import type { Signature } from '@solana/keys';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ /** @deprecated */
5
+ type TransactionStatusOk = Readonly<{
6
+ Ok: null;
7
+ }>;
8
+ /** @deprecated */
9
+ type TransactionStatusErr = Readonly<{
10
+ Err: TransactionError;
11
+ }>;
12
+ type SignatureStatusResult = Readonly<{
13
+ /**
14
+ * The transaction's cluster confirmation status; either `processed`,
15
+ * `confirmed`, or `finalized`.
16
+ */
17
+ confirmationStatus: Commitment | null;
18
+ /**
19
+ * Number of blocks since signature confirmation, null if rooted,
20
+ * as well as finalized by a supermajority of the cluster
21
+ */
22
+ confirmations: U64UnsafeBeyond2Pow53Minus1 | null;
23
+ /** Error if transaction failed, null if transaction succeeded */
24
+ err: TransactionError | null;
25
+ /** The slot the transaction was processed */
26
+ slot: Slot;
27
+ /**
28
+ * @deprecated Transaction status
29
+ */
30
+ status: TransactionStatusErr | TransactionStatusOk;
31
+ }>;
32
+ type GetSignatureStatusesBase = ReadonlyArray<SignatureStatusResult | null>;
33
+ type GetSignatureStatusesApiResponse = SolanaRpcResponse<GetSignatureStatusesBase>;
34
+ export interface GetSignatureStatusesApi extends RpcApiMethods {
35
+ /**
36
+ * Returns the statuses of a list of signatures.
37
+ * Each signature must be a txid, the first signature of a transaction.
38
+ *
39
+ * Note: Unless the `searchTransactionHistory` configuration parameter is
40
+ * included, this method only searches the recent status cache of
41
+ * signatures, which retains statuses for all active slots plus
42
+ * `MAX_RECENT_BLOCKHASHES` rooted slots.
43
+ */
44
+ getSignatureStatuses(
45
+ /**
46
+ * An array of transaction signatures to confirm,
47
+ * as base-58 encoded strings (up to a maximum of 256)
48
+ */
49
+ signatures: Signature[], config?: Readonly<{
50
+ /**
51
+ * if `true` - a Solana node will search its ledger cache for any
52
+ * signatures not found in the recent status cache
53
+ */
54
+ searchTransactionHistory?: boolean;
55
+ }>): GetSignatureStatusesApiResponse;
56
+ }
57
+ export {};
58
+ //# 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,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,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,wBAAwB,GAAG,aAAa,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;AAE5E,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,CAAC;AAEnF,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D;;;;;;;;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,+BAA+B,CAAC;CACtC"}
@@ -0,0 +1,40 @@
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 { Commitment, Slot, TransactionError, UnixTimestamp } from '@solana/rpc-types';
5
+ type GetSignaturesForAddressTransaction = Readonly<{
6
+ /** estimated production time of when transaction was processed. null if not available. */
7
+ blockTime: UnixTimestamp | null;
8
+ /** The transaction's cluster confirmation status */
9
+ confirmationStatus: Commitment | null;
10
+ /** Error if transaction failed, null if transaction succeeded. */
11
+ err: TransactionError | null;
12
+ /** Memo associated with the transaction, null if no memo is present */
13
+ memo: string | null;
14
+ /** transaction signature as base-58 encoded string */
15
+ signature: Signature;
16
+ /** The slot that contains the block with the transaction */
17
+ slot: Slot;
18
+ }>;
19
+ type GetSignaturesForAddressApiResponse = readonly GetSignaturesForAddressTransaction[];
20
+ type AllowedCommitmentForGetSignaturesForAddress = Exclude<Commitment, 'processed'>;
21
+ type GetSignaturesForAddressConfig = Readonly<{
22
+ /** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
23
+ before?: Signature;
24
+ commitment?: AllowedCommitmentForGetSignaturesForAddress;
25
+ /** maximum transaction signatures to return (between 1 and 1,000). Default: 1000 */
26
+ limit?: number;
27
+ /** The minimum slot that the request can be evaluated at */
28
+ minContextSlot?: Slot;
29
+ /** search until this transaction signature, if found before limit reached */
30
+ until?: Signature;
31
+ }>;
32
+ export interface GetSignaturesForAddressApi extends RpcApiMethods {
33
+ /**
34
+ * Returns signatures for confirmed transactions that include the given address in their accountKeys list.
35
+ * Returns signatures backwards in time from the provided signature or most recent confirmed block
36
+ */
37
+ getSignaturesForAddress(address: Address, config?: GetSignaturesForAddressConfig): GetSignaturesForAddressApiResponse;
38
+ }
39
+ export {};
40
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE3F,KAAK,kCAAkC,GAAG,QAAQ,CAAC;IAC/C,0FAA0F;IAC1F,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;IAChC,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,WAAW,0BAA2B,SAAQ,aAAa;IAC7D;;;OAGG;IACH,uBAAuB,CACnB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,6BAA6B,GACvC,kCAAkC,CAAC;CACzC"}
@@ -0,0 +1,14 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Commitment, Slot } from '@solana/rpc-types';
3
+ type GetSlotApiResponse = Slot;
4
+ export interface GetSlotApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the slot that has reached the given or default commitment level
7
+ */
8
+ getSlot(config?: Readonly<{
9
+ commitment?: Commitment;
10
+ minContextSlot?: Slot;
11
+ }>): GetSlotApiResponse;
12
+ }
13
+ export {};
14
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,kBAAkB,GAAG,IAAI,CAAC;AAE/B,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC7C;;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"}
@@ -0,0 +1,13 @@
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
+ export interface GetSlotLeaderApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the current slot leader
7
+ */
8
+ getSlotLeader(config?: Readonly<{
9
+ commitment?: Commitment;
10
+ minContextSlot?: Slot;
11
+ }>): Address;
12
+ }
13
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACnD;;OAEG;IACH,aAAa,CACT,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,OAAO,CAAC;CACd"}
@@ -0,0 +1,17 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Slot } from '@solana/rpc-types';
4
+ /** array of Node identity public keys as base-58 encoded strings */
5
+ type GetSlotLeadersApiResponse = Address[];
6
+ export interface GetSlotLeadersApi extends RpcApiMethods {
7
+ /**
8
+ * Returns the slot leaders for a given slot range
9
+ */
10
+ getSlotLeaders(
11
+ /** Start slot, as u64 integer */
12
+ startSlot: Slot,
13
+ /** Limit (between 1 and 5000) */
14
+ limit: number): GetSlotLeadersApiResponse;
15
+ }
16
+ export {};
17
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oEAAoE;AACpE,KAAK,yBAAyB,GAAG,OAAO,EAAE,CAAC;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc;IACV,iCAAiC;IACjC,SAAS,EAAE,IAAI;IACf,iCAAiC;IACjC,KAAK,EAAE,MAAM,GACd,yBAAyB,CAAC;CAChC"}
@@ -0,0 +1,24 @@
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 GetStakeActivationApiResponse = Readonly<{
5
+ /** Stake active during the epoch */
6
+ active: U64UnsafeBeyond2Pow53Minus1;
7
+ /** Stake inactive during the epoch */
8
+ inactive: U64UnsafeBeyond2Pow53Minus1;
9
+ /** The stake account's activation state */
10
+ state: 'activating' | 'active' | 'deactivating' | 'inactive';
11
+ }>;
12
+ export interface GetStakeActivationApi extends RpcApiMethods {
13
+ /**
14
+ * Returns epoch activation information for a stake account
15
+ */
16
+ getStakeActivation(address: Address, config?: Readonly<{
17
+ commitment?: Commitment;
18
+ /** Defaults to current epoch */
19
+ epoch?: U64UnsafeBeyond2Pow53Minus1;
20
+ minContextSlot?: Slot;
21
+ }>): GetStakeActivationApiResponse;
22
+ }
23
+ export {};
24
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,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,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;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"}
@@ -0,0 +1,13 @@
1
+ import type { RpcApiMethods } from '@solana/rpc-spec';
2
+ import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
3
+ type GetStakeMinimumDelegationApiResponse = SolanaRpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;
4
+ export interface GetStakeMinimumDelegationApi extends RpcApiMethods {
5
+ /**
6
+ * Returns the stake minimum delegation, in lamports.
7
+ */
8
+ getStakeMinimumDelegation(config?: Readonly<{
9
+ commitment?: Commitment;
10
+ }>): GetStakeMinimumDelegationApiResponse;
11
+ }
12
+ export {};
13
+ //# 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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,KAAK,oCAAoC,GAAG,iBAAiB,CAAC,gCAAgC,CAAC,CAAC;AAEhG,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IAC/D;;OAEG;IACH,yBAAyB,CACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,oCAAoC,CAAC;CAC3C"}
@@ -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
+ /** Circulating supply in lamports */
9
+ circulating: LamportsUnsafeBeyond2Pow53Minus1;
10
+ /** Non-circulating supply in lamports */
11
+ nonCirculating: LamportsUnsafeBeyond2Pow53Minus1;
12
+ /** Total supply in lamports */
13
+ total: 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,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,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,54 @@
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 { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
5
+ type TokenAccountInfoWithJsonData = Readonly<{
6
+ data: Readonly<{
7
+ parsed: {
8
+ info: JsonParsedTokenAccount;
9
+ type: 'account';
10
+ };
11
+ /** Name of the program that owns this account. */
12
+ program: Address;
13
+ space: U64UnsafeBeyond2Pow53Minus1;
14
+ }>;
15
+ }>;
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 interface GetTokenAccountsByDelegateApi extends RpcApiMethods {
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<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
42
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
43
+ encoding: 'base64+zstd';
44
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
45
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & Readonly<{
46
+ encoding: 'jsonParsed';
47
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
48
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
49
+ encoding: 'base58';
50
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
51
+ getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
52
+ }
53
+ export {};
54
+ //# sourceMappingURL=getTokenAccountsByDelegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTokenAccountsByDelegate.d.ts","sourceRoot":"","sources":["../../src/getTokenAccountsByDelegate.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,54 @@
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 { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
5
+ type TokenAccountInfoWithJsonData = Readonly<{
6
+ data: Readonly<{
7
+ parsed: {
8
+ info: JsonParsedTokenAccount;
9
+ type: 'account';
10
+ };
11
+ /** Name of the program that owns this account. */
12
+ program: Address;
13
+ space: U64UnsafeBeyond2Pow53Minus1;
14
+ }>;
15
+ }>;
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 interface GetTokenAccountsByOwnerApi extends RpcApiMethods {
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<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
42
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
43
+ encoding: 'base64+zstd';
44
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
45
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{
46
+ encoding: 'jsonParsed';
47
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
48
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
49
+ encoding: 'base58';
50
+ }>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
51
+ getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & 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":"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"}
@@ -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 GetTokenLargestAccountsApiResponse = SolanaRpcResponse<{
5
+ address: Address;
6
+ }[] & TokenAmount>;
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,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,kCAAkC,GAAG,iBAAiB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG,WAAW,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"}