@solana/rpc-api 2.0.0-experimental.021706b

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,164 @@
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, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
5
+ import type { TransactionVersion } from '@solana/transactions';
6
+ type ReturnData = {
7
+ /** the program that generated the return data */
8
+ programId: Address;
9
+ /** the return data itself */
10
+ data: Base64EncodedDataResponse;
11
+ };
12
+ type TransactionMetaBase = Readonly<{
13
+ /** Error if transaction failed, null if transaction succeeded. */
14
+ err: TransactionError | null;
15
+ /** fee this transaction was charged */
16
+ fee: LamportsUnsafeBeyond2Pow53Minus1;
17
+ /** array of account balances from before the transaction was processed */
18
+ preBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
19
+ /** array of account balances after the transaction was processed */
20
+ postBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
21
+ /** List of token balances from before the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
22
+ preTokenBalances?: readonly TokenBalance[];
23
+ /** List of token balances from after the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
24
+ postTokenBalances?: readonly TokenBalance[];
25
+ /** array of string log messages or null if log message recording was not enabled during this transaction */
26
+ logMessages: readonly string[] | null;
27
+ /** transaction-level rewards */
28
+ rewards: readonly Reward[] | null;
29
+ /**
30
+ * Transaction status
31
+ * @deprecated
32
+ */
33
+ status: TransactionStatus;
34
+ /** the most-recent return data generated by an instruction in the transaction */
35
+ returnData?: ReturnData;
36
+ /** number of compute units consumed by the transaction */
37
+ computeUnitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
38
+ }>;
39
+ type AddressTableLookup = Readonly<{
40
+ /** public key for an address lookup table account. */
41
+ accountKey: Address;
42
+ /** List of indices used to load addresses of writable accounts from a lookup table. */
43
+ writableIndexes: readonly number[];
44
+ /** List of indices used to load addresses of readonly accounts from a lookup table. */
45
+ readableIndexes: readonly number[];
46
+ }>;
47
+ type TransactionBase = Readonly<{
48
+ message: {
49
+ recentBlockhash: Blockhash;
50
+ };
51
+ signatures: readonly Base58EncodedBytes[];
52
+ }>;
53
+ type TransactionInstruction = Readonly<{
54
+ programIdIndex: number;
55
+ accounts: readonly number[];
56
+ data: Base58EncodedBytes;
57
+ }>;
58
+ type TransactionJson = TransactionBase & Readonly<{
59
+ message: {
60
+ accountKeys: readonly Address[];
61
+ header: {
62
+ numReadonlySignedAccounts: number;
63
+ numReadonlyUnsignedAccounts: number;
64
+ numRequiredSignatures: number;
65
+ };
66
+ instructions: readonly TransactionInstruction[];
67
+ };
68
+ }>;
69
+ type PartiallyDecodedTransactionInstruction = Readonly<{
70
+ accounts: readonly Address[];
71
+ data: Base58EncodedBytes;
72
+ programId: Address;
73
+ }>;
74
+ type ParsedTransactionInstruction = Readonly<{
75
+ parsed: {
76
+ type: string;
77
+ info?: object;
78
+ };
79
+ program: string;
80
+ programId: Address;
81
+ }>;
82
+ type TransactionJsonParsed = TransactionBase & Readonly<{
83
+ message: {
84
+ accountKeys: [
85
+ {
86
+ pubkey: Address;
87
+ signer: boolean;
88
+ source: string;
89
+ writable: boolean;
90
+ }
91
+ ];
92
+ instructions: readonly (ParsedTransactionInstruction | PartiallyDecodedTransactionInstruction)[];
93
+ };
94
+ }>;
95
+ type GetTransactionCommonConfig<TMaxSupportedTransactionVersion> = Readonly<{
96
+ commitment?: Commitment;
97
+ maxSupportedTransactionVersion?: TMaxSupportedTransactionVersion;
98
+ }>;
99
+ type GetTransactionApiResponseBase = Readonly<{
100
+ /** the slot this transaction was processed in */
101
+ slot: Slot;
102
+ /** estimated production time of when the transaction was processed. null if not available */
103
+ blockTime: UnixTimestamp | null;
104
+ }>;
105
+ type TransactionMetaLoadedAddresses = Readonly<{
106
+ loadedAddresses: {
107
+ writable: readonly Address[];
108
+ readonly: readonly Address[];
109
+ };
110
+ }>;
111
+ type InnerInstructions<TInstructionType> = Readonly<{
112
+ index: number;
113
+ instructions: readonly TInstructionType[];
114
+ }>;
115
+ type TransactionMetaInnerInstructionsNotParsed = Readonly<{
116
+ innerInstructions?: readonly InnerInstructions<TransactionInstruction>[] | null;
117
+ }>;
118
+ type TransactionMetaInnerInstructionsParsed = Readonly<{
119
+ innerInstructions?: readonly InnerInstructions<PartiallyDecodedTransactionInstruction | ParsedTransactionInstruction>[] | null;
120
+ }>;
121
+ type TransactionAddressTableLookups = Readonly<{
122
+ message: Readonly<{
123
+ addressTableLookups: readonly AddressTableLookup[];
124
+ }>;
125
+ }>;
126
+ export interface GetTransactionApi extends RpcApiMethods {
127
+ /**
128
+ * Returns transaction details for a confirmed transaction
129
+ */
130
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
131
+ encoding: 'jsonParsed';
132
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
133
+ version: TransactionVersion;
134
+ }) & {
135
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsParsed) | null;
136
+ transaction: TransactionJsonParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionAddressTableLookups);
137
+ }) | null;
138
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
139
+ encoding: 'base64';
140
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
141
+ version: TransactionVersion;
142
+ }) & {
143
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
144
+ transaction: Base64EncodedDataResponse;
145
+ }) | null;
146
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
147
+ encoding: 'base58';
148
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
149
+ version: TransactionVersion;
150
+ }) & {
151
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
152
+ transaction: Base58EncodedDataResponse;
153
+ }) | null;
154
+ getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config?: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
155
+ encoding?: 'json';
156
+ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {
157
+ version: TransactionVersion;
158
+ }) & {
159
+ meta: (TransactionMetaBase & TransactionMetaInnerInstructionsNotParsed & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionMetaLoadedAddresses)) | null;
160
+ transaction: TransactionJson & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : TransactionAddressTableLookups);
161
+ }) | null;
162
+ }
163
+ export {};
164
+ //# 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,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,aAAa,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,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,YAAY,EAAE,SAAS,gCAAgC,EAAE,CAAC;IAC1D,yJAAyJ;IACzJ,gBAAgB,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAC3C,wJAAwJ;IACxJ,iBAAiB,CA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,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/get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C;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,65 @@
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
+ type SolanaRpcApiForAllClusters = 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 & SendTransactionApi & SimulateTransactionApi;
57
+ type SolanaRpcApiForTestClusters = SolanaRpcApiForAllClusters & RequestAirdropApi;
58
+ export type SolanaRpcApi = SolanaRpcApiForTestClusters;
59
+ export type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;
60
+ export type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters;
61
+ export type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters;
62
+ 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, };
63
+ type Config = ParamsTransformerConfig;
64
+ export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiTestnet | SolanaRpcApiMainnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
65
+ //# 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,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,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f,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,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimumLedgerSlot.d.ts","sourceRoot":"","sources":["../../src/minimumLedgerSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,4BAA4B,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACvD;;;OAGG;IACH,iBAAiB,IAAI,4BAA4B,CAAC;CACrD"}
@@ -0,0 +1,16 @@
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, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
5
+ type RequestAirdropConfig = Readonly<{
6
+ commitment?: Commitment;
7
+ }>;
8
+ type RequestAirdropResponse = Signature;
9
+ export interface RequestAirdropApi extends RpcApiMethods {
10
+ /**
11
+ * Requests an airdrop of lamports to a Pubkey
12
+ */
13
+ requestAirdrop(recipientAccount: Address, lamports: LamportsUnsafeBeyond2Pow53Minus1, config?: RequestAirdropConfig): RequestAirdropResponse;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=requestAirdrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestAirdrop.d.ts","sourceRoot":"","sources":["../../src/requestAirdrop.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,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAEtF,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,KAAK,sBAAsB,GAAG,SAAS,CAAC;AAExC,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc,CACV,gBAAgB,EAAE,OAAO,EACzB,QAAQ,EAAE,gCAAgC,EAC1C,MAAM,CAAC,EAAE,oBAAoB,GAC9B,sBAAsB,CAAC;CAC7B"}
@@ -0,0 +1,49 @@
1
+ import type { Signature } from '@solana/keys';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { Commitment, Slot } from '@solana/rpc-types';
4
+ import type { Base64EncodedWireTransaction } from '@solana/transactions';
5
+ type SendTransactionConfig = Readonly<{
6
+ skipPreflight?: boolean;
7
+ preflightCommitment?: Commitment;
8
+ maxRetries?: bigint;
9
+ minContextSlot?: Slot;
10
+ }>;
11
+ type SendTransactionResponse = Signature;
12
+ export interface SendTransactionApi extends RpcApiMethods {
13
+ /** @deprecated Set `encoding` to `'base64'` when calling this method */
14
+ sendTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config?: SendTransactionConfig & {
15
+ encoding?: 'base58';
16
+ }): SendTransactionResponse;
17
+ /**
18
+ * Submits a signed transaction to the cluster for processing.
19
+ *
20
+ * This method does not alter the transaction in any way; it relays the transaction created by
21
+ * clients to the node as-is.
22
+ *
23
+ * If the node's rpc service receives the transaction, this method immediately succeeds, without
24
+ * waiting for any confirmations. A successful response from this method does not guarantee the
25
+ * transaction is processed or confirmed by the cluster.
26
+ *
27
+ * While the rpc service will reasonably retry to submit it, the transaction could be rejected
28
+ * if transaction's `recent_blockhash` expires before it lands.
29
+ *
30
+ * Use `getSignatureStatuses` to ensure a transaction is processed and confirmed.
31
+ *
32
+ * Before submitting, the following preflight checks are performed:
33
+ *
34
+ * 1. The transaction signatures are verified
35
+ * 2. The transaction is simulated against the bank slot specified by the preflight
36
+ * commitment. On failure an error will be returned. Preflight checks may be disabled if
37
+ * desired. It is recommended to specify the same commitment and preflight commitment to
38
+ * avoid confusing behavior.
39
+ *
40
+ * The returned signature is the first signature in the transaction, which is used to identify
41
+ * the transaction. This identifier can be easily extracted from the transaction data before
42
+ * submission.
43
+ */
44
+ sendTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config?: SendTransactionConfig & {
45
+ encoding: 'base64';
46
+ }): SendTransactionResponse;
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=sendTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../src/sendTransaction.ts"],"names":[],"mappings":"AAAA,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,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEzE,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,uBAAuB,GAAG,SAAS,CAAC;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACrD,wEAAwE;IACxE,eAAe,CACX,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,GACzD,uBAAuB,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,eAAe,CACX,4BAA4B,EAAE,4BAA4B,EAC1D,MAAM,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,GACxD,uBAAuB,CAAC;CAC9B"}
@@ -0,0 +1,104 @@
1
+ import type { Address } from '@solana/addresses';
2
+ import type { RpcApiMethods } from '@solana/rpc-spec';
3
+ import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
4
+ import type { Base64EncodedWireTransaction } from '@solana/transactions';
5
+ type SimulateTransactionConfigBase = Readonly<{
6
+ /**
7
+ * Commitment level to simulate the transaction at
8
+ * @defaultValue finalized
9
+ * */
10
+ commitment?: Commitment;
11
+ /** The minimum slot that the request can be evaluated at */
12
+ minContextSlot?: Slot;
13
+ }>;
14
+ type SigVerifyAndReplaceRecentBlockhashConfig = Readonly<{
15
+ /** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
16
+ sigVerify: true;
17
+ /** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
18
+ replaceRecentBlockhash?: false;
19
+ }> | Readonly<{
20
+ /** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
21
+ replaceRecentBlockhash: true;
22
+ /** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
23
+ sigVerify?: false;
24
+ }> | Readonly<{
25
+ /** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
26
+ sigVerify?: false;
27
+ /** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
28
+ replaceRecentBlockhash?: false;
29
+ }>;
30
+ type AccountsConfigWithBase64EncodingZstdCompression = Readonly<{
31
+ accounts: {
32
+ /** An `array` of accounts to return */
33
+ addresses: Address[];
34
+ /** Encoding for returned Account data */
35
+ encoding: 'base64+zstd';
36
+ };
37
+ }>;
38
+ type AccountsConfigWithJsonParsedEncoding = Readonly<{
39
+ accounts: {
40
+ /** An `array` of accounts to return */
41
+ addresses: Address[];
42
+ /** Encoding for returned Account data */
43
+ encoding: 'jsonParsed';
44
+ };
45
+ }>;
46
+ type AccountsConfigWithBase64Encoding = Readonly<{
47
+ accounts: {
48
+ /** An `array` of accounts to return */
49
+ addresses: Address[];
50
+ /** Encoding for returned Account data */
51
+ encoding?: 'base64';
52
+ };
53
+ }>;
54
+ type SimulateTransactionApiResponseBase = SolanaRpcResponse<{
55
+ /** Error if transaction failed, null if transaction succeeded. */
56
+ err: TransactionError | null;
57
+ /** Array of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure) */
58
+ logs: string[] | null;
59
+ /** The number of compute budget units consumed during the processing of this transaction */
60
+ unitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
61
+ /** The most-recent return data generated by an instruction in the transaction */
62
+ returnData: Readonly<{
63
+ /** The program that generated the return data */
64
+ programId: Address;
65
+ /** The return data itself, as base-64 encoded binary data */
66
+ data: Base64EncodedDataResponse;
67
+ }> | null;
68
+ }>;
69
+ type SimulateTransactionApiResponseWithAccounts<T extends AccountInfoBase> = SolanaRpcResponse<{
70
+ /** Array of accounts with the same length as the `accounts.addresses` array in the request */
71
+ accounts: (T | null)[];
72
+ }>;
73
+ export interface SimulateTransactionApi extends RpcApiMethods {
74
+ /** @deprecated Set `encoding` to `'base64'` when calling this method */
75
+ simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64Encoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
76
+ /** @deprecated Set `encoding` to `'base64'` when calling this method */
77
+ simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64EncodingZstdCompression): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
78
+ /** @deprecated Set `encoding` to `'base64'` when calling this method */
79
+ simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithJsonParsedEncoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
80
+ /** @deprecated Set `encoding` to `'base64'` when calling this method */
81
+ simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config?: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig): SimulateTransactionApiResponseBase & {
82
+ accounts: null;
83
+ };
84
+ /** Simulate sending a transaction */
85
+ simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
86
+ encoding: 'base64';
87
+ } & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64Encoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
88
+ /** Simulate sending a transaction */
89
+ simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
90
+ encoding: 'base64';
91
+ } & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64EncodingZstdCompression): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
92
+ /** Simulate sending a transaction */
93
+ simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
94
+ encoding: 'base64';
95
+ } & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithJsonParsedEncoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
96
+ /** Simulate sending a transaction */
97
+ simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
98
+ encoding: 'base64';
99
+ } & SigVerifyAndReplaceRecentBlockhashConfig): SimulateTransactionApiResponseBase & {
100
+ accounts: null;
101
+ };
102
+ }
103
+ export {};
104
+ //# sourceMappingURL=simulateTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulateTransa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