@solana/web3.js 1.93.0 → 1.93.2

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.
package/lib/index.d.ts CHANGED
@@ -1,29 +1,27 @@
1
- /// <reference types="node" />
2
- declare module "@solana/web3.js" {
3
1
  import { Buffer } from 'buffer';
4
2
  import { Agent } from 'http';
5
3
  import { Agent as Agent$1 } from 'https';
6
4
 
7
- export class Struct {
5
+ declare class Struct {
8
6
  constructor(properties: any);
9
7
  encode(): Buffer;
10
8
  static decode(data: Buffer): any;
11
9
  static decodeUnchecked(data: Buffer): any;
12
10
  }
13
- export class Enum extends Struct {
11
+ declare class Enum extends Struct {
14
12
  enum: string;
15
13
  constructor(properties: any);
16
14
  }
17
- export const SOLANA_SCHEMA: Map<Function, any>;
15
+ declare const SOLANA_SCHEMA: Map<Function, any>;
18
16
 
19
17
  /**
20
18
  * Maximum length of derived pubkey seed
21
19
  */
22
- export const MAX_SEED_LENGTH = 32;
20
+ declare const MAX_SEED_LENGTH = 32;
23
21
  /**
24
22
  * Size of public key in bytes
25
23
  */
26
- export const PUBLIC_KEY_LENGTH = 32;
24
+ declare const PUBLIC_KEY_LENGTH = 32;
27
25
  /**
28
26
  * Value to be converted into public key
29
27
  */
@@ -35,7 +33,7 @@ type PublicKeyData = {};
35
33
  /**
36
34
  * A public key
37
35
  */
38
- export class PublicKey extends Struct {
36
+ declare class PublicKey extends Struct {
39
37
  /**
40
38
  * Create a new PublicKey object
41
39
  * @param value ed25519 public key as buffer or base-58 encoded string
@@ -115,7 +113,7 @@ export class PublicKey extends Struct {
115
113
  *
116
114
  * @deprecated since v1.10.0, please use {@link Keypair} instead.
117
115
  */
118
- export class Account {
116
+ declare class Account {
119
117
  /**
120
118
  * Create a new Account object
121
119
  *
@@ -142,14 +140,14 @@ export class Account {
142
140
  */
143
141
  type Blockhash = string;
144
142
 
145
- export const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey;
143
+ declare const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey;
146
144
 
147
145
  /**
148
146
  * Epoch schedule
149
147
  * (see https://docs.solana.com/terminology#epoch)
150
148
  * Can be retrieved with the {@link Connection.getEpochSchedule} method
151
149
  */
152
- export class EpochSchedule {
150
+ declare class EpochSchedule {
153
151
  /** The maximum number of slots in each epoch */
154
152
  slotsPerEpoch: number;
155
153
  /** The number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
@@ -168,7 +166,7 @@ export class EpochSchedule {
168
166
  getSlotsInEpoch(epoch: number): number;
169
167
  }
170
168
 
171
- export const _default: typeof fetch;
169
+ declare const _default: typeof globalThis.fetch;
172
170
  //# sourceMappingURL=fetch-impl.d.ts.map
173
171
 
174
172
  /**
@@ -181,7 +179,7 @@ interface FeeCalculator {
181
179
  lamportsPerSignature: number;
182
180
  }
183
181
 
184
- export const NONCE_ACCOUNT_LENGTH: number;
182
+ declare const NONCE_ACCOUNT_LENGTH: number;
185
183
  /**
186
184
  * A durable nonce is a 32 byte value encoded as a base58 string.
187
185
  */
@@ -189,7 +187,7 @@ type DurableNonce = string;
189
187
  /**
190
188
  * NonceAccount class
191
189
  */
192
- export class NonceAccount {
190
+ declare class NonceAccount {
193
191
  authorizedPubkey: PublicKey;
194
192
  nonce: DurableNonce;
195
193
  feeCalculator: FeeCalculator;
@@ -226,7 +224,7 @@ interface Signer {
226
224
  /**
227
225
  * An account keypair used for signing transactions.
228
226
  */
229
- export class Keypair {
227
+ declare class Keypair {
230
228
  private _keypair;
231
229
  /**
232
230
  * Create a new keypair instance.
@@ -286,25 +284,25 @@ export class Keypair {
286
284
  * 40 bytes is the size of the IPv6 header
287
285
  * 8 bytes is the size of the fragment header
288
286
  */
289
- export const PACKET_DATA_SIZE: number;
290
- export const VERSION_PREFIX_MASK = 127;
291
- export const SIGNATURE_LENGTH_IN_BYTES = 64;
287
+ declare const PACKET_DATA_SIZE: number;
288
+ declare const VERSION_PREFIX_MASK = 127;
289
+ declare const SIGNATURE_LENGTH_IN_BYTES = 64;
292
290
 
293
- export class TransactionExpiredBlockheightExceededError extends Error {
291
+ declare class TransactionExpiredBlockheightExceededError extends Error {
294
292
  signature: string;
295
293
  constructor(signature: string);
296
294
  }
297
- export class TransactionExpiredTimeoutError extends Error {
295
+ declare class TransactionExpiredTimeoutError extends Error {
298
296
  signature: string;
299
297
  constructor(signature: string, timeoutSeconds: number);
300
298
  }
301
- export class TransactionExpiredNonceInvalidError extends Error {
299
+ declare class TransactionExpiredNonceInvalidError extends Error {
302
300
  signature: string;
303
301
  constructor(signature: string);
304
302
  }
305
303
 
306
304
  type AccountKeysFromLookups = LoadedAddresses;
307
- export class MessageAccountKeys {
305
+ declare class MessageAccountKeys {
308
306
  staticAccountKeys: Array<PublicKey>;
309
307
  accountKeysFromLookups?: AccountKeysFromLookups;
310
308
  constructor(staticAccountKeys: Array<PublicKey>, accountKeysFromLookups?: AccountKeysFromLookups);
@@ -350,7 +348,7 @@ type CompileLegacyArgs = {
350
348
  /**
351
349
  * List of instructions to be processed atomically
352
350
  */
353
- export class Message {
351
+ declare class Message {
354
352
  header: MessageHeader;
355
353
  accountKeys: PublicKey[];
356
354
  recentBlockhash: Blockhash;
@@ -386,7 +384,7 @@ type AddressLookupTableAccountArgs = {
386
384
  key: PublicKey;
387
385
  state: AddressLookupTableState;
388
386
  };
389
- export class AddressLookupTableAccount {
387
+ declare class AddressLookupTableAccount {
390
388
  key: PublicKey;
391
389
  state: AddressLookupTableState;
392
390
  constructor(args: AddressLookupTableAccountArgs);
@@ -437,7 +435,7 @@ type CloseLookupTableParams = {
437
435
  * An enumeration of valid LookupTableInstructionType's
438
436
  */
439
437
  type LookupTableInstructionType = 'CreateLookupTable' | 'ExtendLookupTable' | 'CloseLookupTable' | 'FreezeLookupTable' | 'DeactivateLookupTable';
440
- export class AddressLookupTableInstruction {
438
+ declare class AddressLookupTableInstruction {
441
439
  static decodeInstructionType(instruction: TransactionInstruction): LookupTableInstructionType;
442
440
  static decodeCreateLookupTable(instruction: TransactionInstruction): CreateLookupTableParams;
443
441
  static decodeExtendLookupTable(instruction: TransactionInstruction): ExtendLookupTableParams;
@@ -445,7 +443,7 @@ export class AddressLookupTableInstruction {
445
443
  static decodeFreezeLookupTable(instruction: TransactionInstruction): FreezeLookupTableParams;
446
444
  static decodeDeactivateLookupTable(instruction: TransactionInstruction): DeactivateLookupTableParams;
447
445
  }
448
- export class AddressLookupTableProgram {
446
+ declare class AddressLookupTableProgram {
449
447
  static programId: PublicKey;
450
448
  static createLookupTable(params: CreateLookupTableParams): [TransactionInstruction, PublicKey];
451
449
  static freezeLookupTable(params: FreezeLookupTableParams): TransactionInstruction;
@@ -457,7 +455,7 @@ export class AddressLookupTableProgram {
457
455
  /**
458
456
  * Compute Budget Instruction class
459
457
  */
460
- export class ComputeBudgetInstruction {
458
+ declare class ComputeBudgetInstruction {
461
459
  /**
462
460
  * Decode a compute budget instruction and retrieve the instruction type.
463
461
  */
@@ -516,7 +514,7 @@ interface SetComputeUnitPriceParams {
516
514
  /**
517
515
  * Factory class for transaction instructions to interact with the Compute Budget program
518
516
  */
519
- export class ComputeBudgetProgram {
517
+ declare class ComputeBudgetProgram {
520
518
  /**
521
519
  * Public key that identifies the Compute Budget program
522
520
  */
@@ -547,7 +545,7 @@ type CreateEd25519InstructionWithPrivateKeyParams = {
547
545
  message: Uint8Array;
548
546
  instructionIndex?: number;
549
547
  };
550
- export class Ed25519Program {
548
+ declare class Ed25519Program {
551
549
  /**
552
550
  * Public key that identifies the ed25519 program
553
551
  */
@@ -593,7 +591,7 @@ type CreateSecp256k1InstructionWithPrivateKeyParams = {
593
591
  message: Buffer | Uint8Array | Array<number>;
594
592
  instructionIndex?: number;
595
593
  };
596
- export class Secp256k1Program {
594
+ declare class Secp256k1Program {
597
595
  /**
598
596
  * Public key that identifies the secp256k1 program
599
597
  */
@@ -624,11 +622,11 @@ export class Secp256k1Program {
624
622
  * Address of the stake config account which configures the rate
625
623
  * of stake warmup and cooldown as well as the slashing penalty.
626
624
  */
627
- export const STAKE_CONFIG_ID: PublicKey;
625
+ declare const STAKE_CONFIG_ID: PublicKey;
628
626
  /**
629
627
  * Stake account authority info
630
628
  */
631
- export class Authorized {
629
+ declare class Authorized {
632
630
  /** stake authority */
633
631
  staker: PublicKey;
634
632
  /** withdraw authority */
@@ -643,7 +641,7 @@ export class Authorized {
643
641
  /**
644
642
  * Stake account lockup info
645
643
  */
646
- export class Lockup {
644
+ declare class Lockup {
647
645
  /** Unix timestamp of lockup expiration */
648
646
  unixTimestamp: number;
649
647
  /** Epoch of lockup expiration */
@@ -772,7 +770,7 @@ type MergeStakeParams = {
772
770
  /**
773
771
  * Stake Instruction class
774
772
  */
775
- export class StakeInstruction {
773
+ declare class StakeInstruction {
776
774
  /**
777
775
  * Decode a stake instruction and retrieve the instruction type.
778
776
  */
@@ -824,7 +822,7 @@ type StakeAuthorizationType = {
824
822
  /**
825
823
  * An enumeration of valid StakeAuthorizationLayout's
826
824
  */
827
- export const StakeAuthorizationLayout: Readonly<{
825
+ declare const StakeAuthorizationLayout: Readonly<{
828
826
  Staker: {
829
827
  index: number;
830
828
  };
@@ -835,7 +833,7 @@ export const StakeAuthorizationLayout: Readonly<{
835
833
  /**
836
834
  * Factory class for transactions to interact with the Stake program
837
835
  */
838
- export class StakeProgram {
836
+ declare class StakeProgram {
839
837
  /**
840
838
  * Public key that identifies the Stake program
841
839
  */
@@ -1107,7 +1105,7 @@ type DecodedTransferWithSeedInstruction = {
1107
1105
  /**
1108
1106
  * System Instruction class
1109
1107
  */
1110
- export class SystemInstruction {
1108
+ declare class SystemInstruction {
1111
1109
  /**
1112
1110
  * Decode a system instruction and retrieve the instruction type.
1113
1111
  */
@@ -1168,7 +1166,7 @@ type SystemInstructionType = 'AdvanceNonceAccount' | 'Allocate' | 'AllocateWithS
1168
1166
  /**
1169
1167
  * Factory class for transactions to interact with the System program
1170
1168
  */
1171
- export class SystemProgram {
1169
+ declare class SystemProgram {
1172
1170
  /**
1173
1171
  * Public key that identifies the System program
1174
1172
  */
@@ -1220,7 +1218,7 @@ export class SystemProgram {
1220
1218
  /**
1221
1219
  * Vote account info
1222
1220
  */
1223
- export class VoteInit {
1221
+ declare class VoteInit {
1224
1222
  nodePubkey: PublicKey;
1225
1223
  authorizedVoter: PublicKey;
1226
1224
  authorizedWithdrawer: PublicKey;
@@ -1285,7 +1283,7 @@ type UpdateValidatorIdentityParams = {
1285
1283
  /**
1286
1284
  * Vote Instruction class
1287
1285
  */
1288
- export class VoteInstruction {
1286
+ declare class VoteInstruction {
1289
1287
  /**
1290
1288
  * Decode a vote instruction and retrieve the instruction type.
1291
1289
  */
@@ -1321,7 +1319,7 @@ type VoteAuthorizationType = {
1321
1319
  /**
1322
1320
  * An enumeration of valid VoteAuthorization layouts.
1323
1321
  */
1324
- export const VoteAuthorizationLayout: Readonly<{
1322
+ declare const VoteAuthorizationLayout: Readonly<{
1325
1323
  Voter: {
1326
1324
  index: number;
1327
1325
  };
@@ -1332,7 +1330,7 @@ export const VoteAuthorizationLayout: Readonly<{
1332
1330
  /**
1333
1331
  * Factory class for transactions to interact with the Vote program
1334
1332
  */
1335
- export class VoteProgram {
1333
+ declare class VoteProgram {
1336
1334
  /**
1337
1335
  * Public key that identifies the Vote program
1338
1336
  */
@@ -1409,7 +1407,7 @@ type GetAccountKeysArgs = {
1409
1407
  } | {
1410
1408
  addressLookupTableAccounts?: AddressLookupTableAccount[] | null;
1411
1409
  };
1412
- export class MessageV0 {
1410
+ declare class MessageV0 {
1413
1411
  header: MessageHeader;
1414
1412
  staticAccountKeys: Array<PublicKey>;
1415
1413
  recentBlockhash: Blockhash;
@@ -1430,8 +1428,8 @@ export class MessageV0 {
1430
1428
  }
1431
1429
 
1432
1430
  type VersionedMessage = Message | MessageV0;
1433
- export const VersionedMessage: {
1434
- deserializeMessageVersion(serializedMessage: Uint8Array): 'legacy' | number;
1431
+ declare const VersionedMessage: {
1432
+ deserializeMessageVersion(serializedMessage: Uint8Array): "legacy" | number;
1435
1433
  deserialize: (serializedMessage: Uint8Array) => VersionedMessage;
1436
1434
  };
1437
1435
 
@@ -1477,7 +1475,7 @@ type MessageCompiledInstruction = {
1477
1475
  * Transaction signature as base-58 encoded string
1478
1476
  */
1479
1477
  type TransactionSignature = string;
1480
- export const enum TransactionStatus {
1478
+ declare const enum TransactionStatus {
1481
1479
  BLOCKHEIGHT_EXCEEDED = 0,
1482
1480
  PROCESSED = 1,
1483
1481
  TIMED_OUT = 2,
@@ -1514,7 +1512,7 @@ type SerializeConfig = {
1514
1512
  /**
1515
1513
  * Transaction Instruction class
1516
1514
  */
1517
- export class TransactionInstruction {
1515
+ declare class TransactionInstruction {
1518
1516
  /**
1519
1517
  * Public keys to include in this transaction
1520
1518
  * Boolean represents whether this pubkey needs to sign the transaction
@@ -1563,7 +1561,7 @@ type TransactionBlockhashCtor = {
1563
1561
  signatures?: Array<SignaturePubkeyPair>;
1564
1562
  /** A recent blockhash */
1565
1563
  blockhash: Blockhash;
1566
- /** the last block chain can advance to before tx is exportd expired */
1564
+ /** the last block chain can advance to before tx is declared expired */
1567
1565
  lastValidBlockHeight: number;
1568
1566
  };
1569
1567
  /**
@@ -1589,7 +1587,7 @@ type NonceInformation = {
1589
1587
  /**
1590
1588
  * Transaction class
1591
1589
  */
1592
- export class Transaction {
1590
+ declare class Transaction {
1593
1591
  /**
1594
1592
  * Signatures for the transaction. Typically created by invoking the
1595
1593
  * `sign()` method
@@ -1614,7 +1612,7 @@ export class Transaction {
1614
1612
  */
1615
1613
  recentBlockhash?: Blockhash;
1616
1614
  /**
1617
- * the last block chain can advance to before tx is exportd expired
1615
+ * the last block chain can advance to before tx is declared expired
1618
1616
  * */
1619
1617
  lastValidBlockHeight?: number;
1620
1618
  /**
@@ -1751,7 +1749,7 @@ type DecompileArgs = {
1751
1749
  } | {
1752
1750
  addressLookupTableAccounts: AddressLookupTableAccount[];
1753
1751
  };
1754
- export class TransactionMessage {
1752
+ declare class TransactionMessage {
1755
1753
  payerKey: PublicKey;
1756
1754
  instructions: Array<TransactionInstruction>;
1757
1755
  recentBlockhash: Blockhash;
@@ -1765,7 +1763,7 @@ type TransactionVersion = 'legacy' | 0;
1765
1763
  /**
1766
1764
  * Versioned transaction class
1767
1765
  */
1768
- export class VersionedTransaction {
1766
+ declare class VersionedTransaction {
1769
1767
  signatures: Array<Uint8Array>;
1770
1768
  message: VersionedMessage;
1771
1769
  get version(): TransactionVersion;
@@ -1822,7 +1820,7 @@ type ConfirmOptions = {
1822
1820
  type ConfirmedSignaturesForAddress2Options = {
1823
1821
  /**
1824
1822
  * Start searching backwards from this transaction signature.
1825
- * @remark If not provided the search starts from the highest max confirmed block.
1823
+ * @remarks If not provided the search starts from the highest max confirmed block.
1826
1824
  */
1827
1825
  before?: TransactionSignature;
1828
1826
  /** Search until this transaction signature is reached, if found before `limit`. */
@@ -1836,7 +1834,7 @@ type ConfirmedSignaturesForAddress2Options = {
1836
1834
  type SignaturesForAddressOptions = {
1837
1835
  /**
1838
1836
  * Start searching backwards from this transaction signature.
1839
- * @remark If not provided the search starts from the highest max confirmed block.
1837
+ * @remarks If not provided the search starts from the highest max confirmed block.
1840
1838
  */
1841
1839
  before?: TransactionSignature;
1842
1840
  /** Search until this transaction signature is reached, if found before `limit`. */
@@ -3146,7 +3144,7 @@ type ConnectionConfig = {
3146
3144
  /**
3147
3145
  * A connection to a fullnode JSON RPC endpoint
3148
3146
  */
3149
- export class Connection {
3147
+ declare class Connection {
3150
3148
  /**
3151
3149
  * Establish a JSON RPC connection
3152
3150
  *
@@ -3725,13 +3723,13 @@ export class Connection {
3725
3723
  /**
3726
3724
  * @deprecated Deprecated since Solana v1.17.20.
3727
3725
  */
3728
- export const BPF_LOADER_PROGRAM_ID: PublicKey;
3726
+ declare const BPF_LOADER_PROGRAM_ID: PublicKey;
3729
3727
  /**
3730
3728
  * Factory class for transactions to interact with a program loader
3731
3729
  *
3732
3730
  * @deprecated Deprecated since Solana v1.17.20.
3733
3731
  */
3734
- export class BpfLoader {
3732
+ declare class BpfLoader {
3735
3733
  /**
3736
3734
  * Minimum number of signatures required to load a program not including
3737
3735
  * retries
@@ -3752,7 +3750,7 @@ export class BpfLoader {
3752
3750
  static load(connection: Connection, payer: Signer, program: Signer, elf: Buffer | Uint8Array | Array<number>, loaderProgramId: PublicKey): Promise<boolean>;
3753
3751
  }
3754
3752
 
3755
- export class SendTransactionError extends Error {
3753
+ declare class SendTransactionError extends Error {
3756
3754
  private signature;
3757
3755
  private transactionMessage;
3758
3756
  private transactionLogs;
@@ -3769,7 +3767,7 @@ export class SendTransactionError extends Error {
3769
3767
  get logs(): string[] | undefined;
3770
3768
  getLogs(connection: Connection): Promise<string[]>;
3771
3769
  }
3772
- export const SolanaJSONRPCErrorCode: {
3770
+ declare const SolanaJSONRPCErrorCode: {
3773
3771
  readonly JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP: -32001;
3774
3772
  readonly JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE: -32002;
3775
3773
  readonly JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE: -32003;
@@ -3788,7 +3786,7 @@ export const SolanaJSONRPCErrorCode: {
3788
3786
  readonly JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED: -32016;
3789
3787
  };
3790
3788
  type SolanaJSONRPCErrorCodeEnum = (typeof SolanaJSONRPCErrorCode)[keyof typeof SolanaJSONRPCErrorCode];
3791
- export class SolanaJSONRPCError extends Error {
3789
+ declare class SolanaJSONRPCError extends Error {
3792
3790
  code: SolanaJSONRPCErrorCodeEnum | unknown;
3793
3791
  data?: any;
3794
3792
  constructor({ code, message, data, }: Readonly<{
@@ -3801,7 +3799,7 @@ export class SolanaJSONRPCError extends Error {
3801
3799
  /**
3802
3800
  * Program loader interface
3803
3801
  */
3804
- export class Loader {
3802
+ declare class Loader {
3805
3803
  /**
3806
3804
  * Amount of program data placed in each load Transaction
3807
3805
  */
@@ -3826,7 +3824,7 @@ export class Loader {
3826
3824
  static load(connection: Connection, payer: Signer, program: Signer, programId: PublicKey, data: Buffer | Uint8Array | Array<number>): Promise<boolean>;
3827
3825
  }
3828
3826
 
3829
- export const VALIDATOR_INFO_KEY: PublicKey;
3827
+ declare const VALIDATOR_INFO_KEY: PublicKey;
3830
3828
  /**
3831
3829
  * Info used to identity validators.
3832
3830
  */
@@ -3843,7 +3841,7 @@ type Info = {
3843
3841
  /**
3844
3842
  * ValidatorInfo class
3845
3843
  */
3846
- export class ValidatorInfo {
3844
+ declare class ValidatorInfo {
3847
3845
  /**
3848
3846
  * validator public key
3849
3847
  */
@@ -3869,7 +3867,7 @@ export class ValidatorInfo {
3869
3867
  static fromConfigData(buffer: Buffer | Uint8Array | Array<number>): ValidatorInfo | null;
3870
3868
  }
3871
3869
 
3872
- export const VOTE_PROGRAM_ID: PublicKey;
3870
+ declare const VOTE_PROGRAM_ID: PublicKey;
3873
3871
  type Lockout = {
3874
3872
  slot: number;
3875
3873
  confirmationCount: number;
@@ -3898,7 +3896,7 @@ type BlockTimestamp = Readonly<{
3898
3896
  /**
3899
3897
  * VoteAccount class
3900
3898
  */
3901
- export class VoteAccount {
3899
+ declare class VoteAccount {
3902
3900
  nodePubkey: PublicKey;
3903
3901
  authorizedWithdrawer: PublicKey;
3904
3902
  commission: number;
@@ -3917,15 +3915,15 @@ export class VoteAccount {
3917
3915
  static fromAccountData(buffer: Buffer | Uint8Array | Array<number>): VoteAccount;
3918
3916
  }
3919
3917
 
3920
- export const SYSVAR_CLOCK_PUBKEY: PublicKey;
3921
- export const SYSVAR_EPOCH_SCHEDULE_PUBKEY: PublicKey;
3922
- export const SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey;
3923
- export const SYSVAR_RECENT_BLOCKHASHES_PUBKEY: PublicKey;
3924
- export const SYSVAR_RENT_PUBKEY: PublicKey;
3925
- export const SYSVAR_REWARDS_PUBKEY: PublicKey;
3926
- export const SYSVAR_SLOT_HASHES_PUBKEY: PublicKey;
3927
- export const SYSVAR_SLOT_HISTORY_PUBKEY: PublicKey;
3928
- export const SYSVAR_STAKE_HISTORY_PUBKEY: PublicKey;
3918
+ declare const SYSVAR_CLOCK_PUBKEY: PublicKey;
3919
+ declare const SYSVAR_EPOCH_SCHEDULE_PUBKEY: PublicKey;
3920
+ declare const SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey;
3921
+ declare const SYSVAR_RECENT_BLOCKHASHES_PUBKEY: PublicKey;
3922
+ declare const SYSVAR_RENT_PUBKEY: PublicKey;
3923
+ declare const SYSVAR_REWARDS_PUBKEY: PublicKey;
3924
+ declare const SYSVAR_SLOT_HASHES_PUBKEY: PublicKey;
3925
+ declare const SYSVAR_SLOT_HISTORY_PUBKEY: PublicKey;
3926
+ declare const SYSVAR_STAKE_HISTORY_PUBKEY: PublicKey;
3929
3927
 
3930
3928
  type Cluster = 'devnet' | 'testnet' | 'mainnet-beta';
3931
3929
  /**
@@ -3935,7 +3933,7 @@ type Cluster = 'devnet' | 'testnet' | 'mainnet-beta';
3935
3933
  *
3936
3934
  * @returns {string} URL string of the RPC endpoint
3937
3935
  */
3938
- export function clusterApiUrl(cluster?: Cluster, tls?: boolean): string;
3936
+ declare function clusterApiUrl(cluster?: Cluster, tls?: boolean): string;
3939
3937
 
3940
3938
  /**
3941
3939
  * Send and confirm a raw transaction
@@ -3948,12 +3946,12 @@ export function clusterApiUrl(cluster?: Cluster, tls?: boolean): string;
3948
3946
  * @param {ConfirmOptions} [options]
3949
3947
  * @returns {Promise<TransactionSignature>}
3950
3948
  */
3951
- export function sendAndConfirmRawTransaction(connection: Connection, rawTransaction: Buffer, confirmationStrategy: TransactionConfirmationStrategy, options?: ConfirmOptions): Promise<TransactionSignature>;
3949
+ declare function sendAndConfirmRawTransaction(connection: Connection, rawTransaction: Buffer, confirmationStrategy: TransactionConfirmationStrategy, options?: ConfirmOptions): Promise<TransactionSignature>;
3952
3950
  /**
3953
3951
  * @deprecated Calling `sendAndConfirmRawTransaction()` without a `confirmationStrategy`
3954
3952
  * is no longer supported and will be removed in a future version.
3955
3953
  */
3956
- export function sendAndConfirmRawTransaction(connection: Connection, rawTransaction: Buffer, options?: ConfirmOptions): Promise<TransactionSignature>;
3954
+ declare function sendAndConfirmRawTransaction(connection: Connection, rawTransaction: Buffer, options?: ConfirmOptions): Promise<TransactionSignature>;
3957
3955
 
3958
3956
  /**
3959
3957
  * Sign, send and confirm a transaction.
@@ -3966,13 +3964,13 @@ export function sendAndConfirmRawTransaction(connection: Connection, rawTransact
3966
3964
  * @param {ConfirmOptions} [options]
3967
3965
  * @returns {Promise<TransactionSignature>}
3968
3966
  */
3969
- export function sendAndConfirmTransaction(connection: Connection, transaction: Transaction, signers: Array<Signer>, options?: ConfirmOptions & Readonly<{
3967
+ declare function sendAndConfirmTransaction(connection: Connection, transaction: Transaction, signers: Array<Signer>, options?: ConfirmOptions & Readonly<{
3970
3968
  abortSignal?: AbortSignal;
3971
3969
  }>): Promise<TransactionSignature>;
3972
3970
 
3973
3971
  /**
3974
3972
  * There are 1-billion lamports in one SOL
3975
3973
  */
3976
- export const LAMPORTS_PER_SOL = 1000000000;
3974
+ declare const LAMPORTS_PER_SOL = 1000000000;
3977
3975
 
3978
- }
3976
+ export { Account, type AccountBalancePair, type AccountChangeCallback, type AccountInfo, type AccountKeysFromLookups, type AccountMeta, type AccountsModeBlockResponse, AddressLookupTableAccount, type AddressLookupTableAccountArgs, AddressLookupTableInstruction, AddressLookupTableProgram, type AddressLookupTableState, type AdvanceNonceParams, type AllocateParams, type AllocateWithSeedParams, type AssignParams, type AssignWithSeedParams, type AuthorizeNonceParams, type AuthorizeStakeParams, type AuthorizeVoteParams, type AuthorizeVoteWithSeedParams, type AuthorizeWithSeedStakeParams, Authorized, type AuthorizedVoter, BPF_LOADER_DEPRECATED_PROGRAM_ID, BPF_LOADER_PROGRAM_ID, type BaseTransactionConfirmationStrategy, type BlockProduction, type BlockResponse, type BlockSignatures, type BlockTimestamp, type Blockhash, type BlockhashWithExpiryBlockHeight, type BlockheightBasedTransactionConfirmationStrategy, BpfLoader, type CloseLookupTableParams, type Cluster, type Commitment, type CompileLegacyArgs, type CompileV0Args, type CompiledInnerInstruction, type CompiledInstruction, ComputeBudgetInstruction, type ComputeBudgetInstructionType, ComputeBudgetProgram, type ConfirmOptions, type ConfirmedBlock, type ConfirmedSignatureInfo, type ConfirmedSignaturesForAddress2Options, type ConfirmedTransaction, type ConfirmedTransactionMeta, Connection, type ConnectionConfig, type ContactInfo, type Context, type CreateAccountParams, type CreateAccountWithSeedParams, type CreateEd25519InstructionWithPrivateKeyParams, type CreateEd25519InstructionWithPublicKeyParams, type CreateLookupTableParams, type CreateNonceAccountParams, type CreateNonceAccountWithSeedParams, type CreateSecp256k1InstructionWithEthAddressParams, type CreateSecp256k1InstructionWithPrivateKeyParams, type CreateSecp256k1InstructionWithPublicKeyParams, type CreateStakeAccountParams, type CreateStakeAccountWithSeedParams, type CreateVoteAccountParams, type DataSizeFilter, type DataSlice, type DeactivateLookupTableParams, type DeactivateStakeParams, type DecodedTransferInstruction, type DecodedTransferWithSeedInstruction, type DecompileArgs, type DelegateStakeParams, type DurableNonce, type DurableNonceTransactionConfirmationStrategy, type Ed25519Keypair, Ed25519Program, Enum, type EpochCredits, type EpochInfo, EpochSchedule, type ExtendLookupTableParams, type FeeCalculator, type FetchFn, type FetchMiddleware, type Finality, type FreezeLookupTableParams, type GetAccountInfoConfig, type GetAccountKeysArgs, type GetBalanceConfig, type GetBlockConfig, type GetBlockHeightConfig, type GetBlockProductionConfig, type GetEpochInfoConfig, type GetInflationRewardConfig, type GetLargestAccountsConfig, type GetLatestBlockhashConfig, type GetMultipleAccountsConfig, type GetNonceAndContextConfig, type GetNonceConfig, type GetParsedProgramAccountsConfig, type GetProgramAccountsConfig, type GetProgramAccountsFilter, type GetProgramAccountsResponse, type GetRecentPrioritizationFeesConfig, type GetSlotConfig, type GetSlotLeaderConfig, type GetStakeActivationConfig, type GetStakeMinimumDelegationConfig, type GetSupplyConfig, type GetTokenAccountsByOwnerConfig, type GetTransactionConfig, type GetTransactionCountConfig, type GetVersionedBlockConfig, type GetVersionedTransactionConfig, type HttpHeaders, type InflationGovernor, type InflationRate, type InflationReward, type Info, type InitializeAccountParams, type InitializeNonceParams, type InitializeStakeParams, type IsBlockhashValidConfig, type KeyedAccountInfo, Keypair, LAMPORTS_PER_SOL, type LargestAccountsFilter, type LeaderSchedule, type LoadedAddresses, Loader, type Lockout, Lockup, type Logs, type LogsCallback, type LogsFilter, type LookupTableInstructionType, MAX_SEED_LENGTH, type MemcmpFilter, type MergeStakeParams, Message, MessageAccountKeys, type MessageAddressTableLookup, type MessageArgs, type MessageCompiledInstruction, type MessageHeader, MessageV0, type MessageV0Args, NONCE_ACCOUNT_LENGTH, NonceAccount, type NonceInformation, type NoneModeBlockResponse, PACKET_DATA_SIZE, PUBLIC_KEY_LENGTH, type ParsedAccountData, type ParsedAccountsModeBlockResponse, type ParsedAddressTableLookup, type ParsedBlockResponse, type ParsedConfirmedTransaction, type ParsedConfirmedTransactionMeta, type ParsedInnerInstruction, type ParsedInstruction, type ParsedMessage, type ParsedMessageAccount, type ParsedNoneModeBlockResponse, type ParsedTransaction, type ParsedTransactionMeta, type ParsedTransactionWithMeta, type PartiallyDecodedInstruction, type PerfSample, type PriorVoter, type ProgramAccountChangeCallback, PublicKey, type PublicKeyData, type PublicKeyInitData, type RecentPrioritizationFees, type RequestHeapFrameParams, type RequestUnitsParams, type RootChangeCallback, type RpcResponseAndContext, SIGNATURE_LENGTH_IN_BYTES, SOLANA_SCHEMA, STAKE_CONFIG_ID, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, Secp256k1Program, type SendOptions, SendTransactionError, type SerializeConfig, type SetComputeUnitLimitParams, type SetComputeUnitPriceParams, type SignaturePubkeyPair, type SignatureReceivedNotification, type SignatureResult, type SignatureResultCallback, type SignatureStatus, type SignatureStatusConfig, type SignatureStatusNotification, type SignatureSubscriptionCallback, type SignatureSubscriptionOptions, type SignaturesForAddressOptions, type Signer, type SimulateTransactionConfig, type SimulatedTransactionAccountInfo, type SimulatedTransactionResponse, type SlotChangeCallback, type SlotInfo, type SlotUpdate, type SlotUpdateCallback, SolanaJSONRPCError, SolanaJSONRPCErrorCode, type SolanaJSONRPCErrorCodeEnum, type SplitStakeParams, type SplitStakeWithSeedParams, type StakeActivationData, StakeAuthorizationLayout, type StakeAuthorizationType, StakeInstruction, type StakeInstructionType, StakeProgram, Struct, type Supply, SystemInstruction, type SystemInstructionType, SystemProgram, type TokenAccountBalancePair, type TokenAccountsFilter, type TokenAmount, type TokenBalance, Transaction, type TransactionBlockhashCtor, type TransactionConfirmationStatus, type TransactionConfirmationStrategy, type TransactionCtorFields, type TransactionCtorFields_DEPRECATED, type TransactionError, TransactionExpiredBlockheightExceededError, TransactionExpiredNonceInvalidError, TransactionExpiredTimeoutError, TransactionInstruction, type TransactionInstructionCtorFields, TransactionMessage, type TransactionMessageArgs, type TransactionNonceCtor, type TransactionResponse, type TransactionReturnData, type TransactionReturnDataEncoding, type TransactionSignature, TransactionStatus, type TransactionVersion, type TransferParams, type TransferWithSeedParams, type UpdateValidatorIdentityParams, VALIDATOR_INFO_KEY, VERSION_PREFIX_MASK, VOTE_PROGRAM_ID, ValidatorInfo, type Version, type VersionedAccountsModeBlockResponse, type VersionedBlockResponse, VersionedMessage, type VersionedNoneModeBlockResponse, VersionedTransaction, type VersionedTransactionResponse, VoteAccount, type VoteAccountInfo, type VoteAccountStatus, VoteAuthorizationLayout, type VoteAuthorizationType, VoteInit, VoteInstruction, type VoteInstructionType, VoteProgram, type WithdrawFromVoteAccountParams, type WithdrawNonceParams, type WithdrawStakeParams, clusterApiUrl, sendAndConfirmRawTransaction, sendAndConfirmTransaction };