@avalabs/core-wallets-sdk 3.1.0-alpha.9 → 3.1.0-alpha.91-canary.8cdb0a6d

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 (134) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +435 -185
  3. package/esm/Avalanche/index.d.ts +5 -4
  4. package/esm/Avalanche/index.js +1 -1
  5. package/esm/Avalanche/models.d.ts +71 -4
  6. package/esm/Avalanche/models.js +1 -1
  7. package/esm/Avalanche/providers/AbstractProvider.d.ts +4 -14
  8. package/esm/Avalanche/providers/AbstractProvider.js +1 -1
  9. package/esm/Avalanche/providers/JsonRpcProvider.d.ts +4 -4
  10. package/esm/Avalanche/providers/JsonRpcProvider.js +1 -1
  11. package/esm/Avalanche/providers/constants.d.ts +2 -1
  12. package/esm/Avalanche/providers/constants.js +1 -1
  13. package/esm/Avalanche/providers/platformFeeConfig.js +1 -1
  14. package/esm/Avalanche/utils/addSignaturesToAvalancheTx.js +1 -1
  15. package/esm/Avalanche/utils/appendAutoRenewedValidatorConfigAddressMaps.js +1 -0
  16. package/esm/Avalanche/utils/appendDisableAuthAddressMaps.js +1 -0
  17. package/esm/Avalanche/utils/convertGlacierUtxo.d.ts +4 -3
  18. package/esm/Avalanche/utils/convertGlacierUtxo.js +1 -1
  19. package/esm/Avalanche/utils/createAvalancheEvmUnsignedTx.d.ts +3 -2
  20. package/esm/Avalanche/utils/createAvalancheEvmUnsignedTx.js +1 -1
  21. package/esm/Avalanche/utils/createAvalancheUnsignedTx.d.ts +1 -1
  22. package/esm/Avalanche/utils/createAvalancheUnsignedTx.js +1 -1
  23. package/esm/Avalanche/utils/getAssetBalance.d.ts +2 -1
  24. package/esm/Avalanche/utils/getAssetBalance.js +1 -1
  25. package/esm/Avalanche/utils/getAvalancheDerivationPath.d.ts +3 -0
  26. package/esm/Avalanche/utils/getAvalancheDerivationPath.js +1 -0
  27. package/esm/Avalanche/utils/getChainAliasByChainId.js +1 -1
  28. package/esm/Avalanche/utils/getPchainUnixNow.d.ts +3 -1
  29. package/esm/Avalanche/utils/getPchainUnixNow.js +1 -1
  30. package/esm/Avalanche/utils/getStakedAssetBalance.d.ts +2 -1
  31. package/esm/Avalanche/utils/getTxOutputAddresses.js +1 -1
  32. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.d.ts +3 -2
  33. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.js +1 -1
  34. package/esm/Avalanche/utils/getVmByChainAlias.d.ts +1 -1
  35. package/esm/Avalanche/utils/getXpubFromMnemonic.d.ts +1 -1
  36. package/esm/Avalanche/utils/getXpubFromMnemonic.js +1 -1
  37. package/esm/Avalanche/utils/handleSubnetAuth.js +1 -1
  38. package/esm/Avalanche/utils/orderBy.js +1 -0
  39. package/esm/Avalanche/utils/parseAvalancheTx.d.ts +12 -1
  40. package/esm/Avalanche/utils/parseAvalancheTx.js +1 -1
  41. package/esm/Avalanche/utils/parsers/index.js +1 -1
  42. package/esm/Avalanche/utils/parsers/parseAddAutoRenewedValidatorTx.js +1 -0
  43. package/esm/Avalanche/utils/parsers/parseAddPermissionlessDelegatorTx.js +1 -1
  44. package/esm/Avalanche/utils/parsers/parseAddPermissionlessValidatorTx.js +1 -1
  45. package/esm/Avalanche/utils/parsers/parseAddSubnetValidorTx.js +1 -1
  46. package/esm/Avalanche/utils/parsers/parseBaseTx.js +1 -1
  47. package/esm/Avalanche/utils/parsers/parseConvertSubnetToL1Tx.js +1 -0
  48. package/esm/Avalanche/utils/parsers/parseCreateChainTx.js +1 -1
  49. package/esm/Avalanche/utils/parsers/parseCreateSubnetTx.js +1 -1
  50. package/esm/Avalanche/utils/parsers/parseDisableL1ValidatorTx.js +1 -0
  51. package/esm/Avalanche/utils/parsers/parseExportTx.js +1 -1
  52. package/esm/Avalanche/utils/parsers/parseImportTx.js +1 -1
  53. package/esm/Avalanche/utils/parsers/parseIncreaseL1ValidatorBalanceTx.js +1 -0
  54. package/esm/Avalanche/utils/parsers/parseRegisterL1ValidatorTx.js +1 -0
  55. package/esm/Avalanche/utils/parsers/parseRemoveSubnetValidatorTx.js +1 -1
  56. package/esm/Avalanche/utils/parsers/parseSetAutoRenewedValidatorConfigTx.js +1 -0
  57. package/esm/Avalanche/utils/parsers/parseSetL1ValidatorWeightTx.js +1 -0
  58. package/esm/Avalanche/utils/parsers/parseTransferSubnetOwnershipTx.js +1 -1
  59. package/esm/Avalanche/utils/parsers/utils/chainIdToVm.js +1 -1
  60. package/esm/Avalanche/utils/populateCredential.js +1 -1
  61. package/esm/Avalanche/utils/sortUTXOs.d.ts +5 -4
  62. package/esm/Avalanche/utils/sortUTXOs.js +1 -1
  63. package/esm/Avalanche/utils/txSizeLimits.d.ts +2 -2
  64. package/esm/Avalanche/utils/txSizeLimits.js +1 -1
  65. package/esm/Avalanche/wallets/AddressWallet.js +1 -1
  66. package/esm/Avalanche/wallets/SimpleSigner.d.ts +1 -1
  67. package/esm/Avalanche/wallets/SimpleSigner.js +1 -1
  68. package/esm/Avalanche/wallets/StaticSigner.js +1 -1
  69. package/esm/Avalanche/wallets/TxBuilderTypes.d.ts +139 -10
  70. package/esm/Avalanche/wallets/WalletAbstract.d.ts +23 -27
  71. package/esm/Avalanche/wallets/WalletAbstract.js +1 -1
  72. package/esm/Avalanche/wallets/WalletVoid.js +1 -1
  73. package/esm/Avalanche/wallets/ledger/LedgerLiveSigner.d.ts +16 -0
  74. package/esm/Avalanche/wallets/ledger/LedgerLiveSigner.js +1 -0
  75. package/esm/Avalanche/wallets/ledger/LedgerSigner.js +1 -1
  76. package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.d.ts +4 -2
  77. package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.js +1 -1
  78. package/esm/Avalanche/wallets/ledger/models.d.ts +1 -1
  79. package/esm/Avalanche/wallets/legacy/LedgerWallet.js +1 -1
  80. package/esm/Avalanche/wallets/legacy/MnemonicWallet.js +1 -1
  81. package/esm/Avalanche/wallets/legacy/MnemonicWalletVoid.js +1 -1
  82. package/esm/Avalanche/wallets/models.d.ts +1 -1
  83. package/esm/BitcoinVM/index.d.ts +5 -0
  84. package/esm/BitcoinVM/index.js +1 -0
  85. package/esm/BitcoinVM/models.d.ts +1 -1
  86. package/esm/BitcoinVM/providers/BitcoinProvider.d.ts +3 -3
  87. package/esm/BitcoinVM/providers/BitcoinProvider.js +1 -1
  88. package/esm/BitcoinVM/utils/getBech32AddressFromXPub.js +1 -1
  89. package/esm/BitcoinVM/wallets/BitcoinWallet.js +1 -1
  90. package/esm/BitcoinVM/wallets/BitcoinWalletLedger.js +1 -1
  91. package/esm/BitcoinVM/wallets/models.d.ts +1 -1
  92. package/esm/EVM/LedgerSigner.js +1 -1
  93. package/esm/EVM/utils/blockPolling.js +1 -1
  94. package/esm/EVM/utils/getEvmDerivationPath.d.ts +5 -0
  95. package/esm/EVM/utils/getEvmDerivationPath.js +1 -0
  96. package/esm/EVM/utils/getWalletFromMnemonic.js +1 -1
  97. package/esm/SolanaVM/utils/compileSolanaTx.d.ts +9 -0
  98. package/esm/SolanaVM/utils/compileSolanaTx.js +1 -0
  99. package/esm/SolanaVM/utils/derivationPath.d.ts +3 -0
  100. package/esm/SolanaVM/utils/derivationPath.js +1 -0
  101. package/esm/SolanaVM/utils/deserializeSolanaTx.d.ts +6 -0
  102. package/esm/SolanaVM/utils/deserializeSolanaTx.js +1 -0
  103. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.d.ts +5 -0
  104. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.js +1 -0
  105. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.d.ts +40 -0
  106. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.js +1 -0
  107. package/esm/SolanaVM/utils/resolveTokenProgramForMint.d.ts +13 -0
  108. package/esm/SolanaVM/utils/resolveTokenProgramForMint.js +1 -0
  109. package/esm/SolanaVM/utils/serializeSolanaTx.d.ts +6 -0
  110. package/esm/SolanaVM/utils/serializeSolanaTx.js +1 -0
  111. package/esm/SolanaVM/utils/solanaProvider.d.ts +11 -0
  112. package/esm/SolanaVM/utils/solanaProvider.js +1 -0
  113. package/esm/SolanaVM/utils/transferSol.d.ts +14 -0
  114. package/esm/SolanaVM/utils/transferSol.js +1 -0
  115. package/esm/SolanaVM/utils/transferToken.d.ts +17 -0
  116. package/esm/SolanaVM/utils/transferToken.js +1 -0
  117. package/esm/SolanaVM/wallets/SolanaLedgerSigner.d.ts +10 -0
  118. package/esm/SolanaVM/wallets/SolanaLedgerSigner.js +1 -0
  119. package/esm/SolanaVM/wallets/SolanaSigner.d.ts +20 -0
  120. package/esm/SolanaVM/wallets/SolanaSigner.js +1 -0
  121. package/esm/abis/erc20.abi.js +1 -0
  122. package/esm/index.d.ts +33 -20
  123. package/esm/index.js +1 -1
  124. package/esm/utils/assertFeeStateProvided.js +1 -0
  125. package/esm/utils/getAddressDerivationPath.d.ts +8 -2
  126. package/esm/utils/getAddressDerivationPath.js +1 -1
  127. package/esm/utils/getPubKeyFromTransport.js +1 -1
  128. package/package.json +36 -13
  129. package/dist/index.js +0 -1
  130. package/esm/Avalanche/utils/getUtxoInfo.d.ts +0 -13
  131. package/esm/Avalanche/utils/getUtxoInfo.js +0 -1
  132. package/esm/Avalanche/utils/parsers/parseAddDelegatorTx.js +0 -1
  133. package/esm/Avalanche/utils/parsers/parseAddValidatorTx.js +0 -1
  134. package/esm/Avalanche/utils/parsers/parseTransformSubnetTx.js +0 -1
package/dist/index.d.ts CHANGED
@@ -1,22 +1,20 @@
1
- import { Transaction } from '@ledgerhq/hw-app-btc/lib/types';
2
1
  import * as bitcoinjs_lib from 'bitcoinjs-lib';
3
- import { Network, Psbt, ECPairInterface, Transaction as Transaction$1 } from 'bitcoinjs-lib';
4
- export { networks as BtcNetworks } from 'bitcoinjs-lib';
5
- import { WalletPolicy, PsbtV2 } from 'ledger-bitcoin';
6
- import * as ethers from 'ethers';
7
- import { Provider, VoidSigner, HDNodeWallet, TransactionResponse, JsonRpcProvider as JsonRpcProvider$1, FetchRequest, Network as Network$1, Contract, AbstractSigner, BytesLike, TransactionRequest, TypedDataDomain, TypedDataField } from 'ethers';
8
- import Transport from '@ledgerhq/hw-transport';
2
+ import { Network, Psbt, ECPairInterface, Transaction as Transaction$1, networks } from 'bitcoinjs-lib';
9
3
  import Eth from '@ledgerhq/hw-app-eth';
4
+ import Transport from '@ledgerhq/hw-transport';
5
+ import { Provider, VoidSigner, HDNodeWallet, TransactionResponse, JsonRpcProvider as JsonRpcProvider$1, FetchRequest, Network as Network$1, Contract, AbstractSigner, BytesLike, TransactionRequest, TypedDataDomain, TypedDataField } from 'ethers';
10
6
  import * as _avalabs_avalanchejs from '@avalabs/avalanchejs';
11
- import { VM, Common, OutputOwners, TransferableOutput, pvmSerial, Context, avm, pvm, evm, Info, avaxSerial, utils, UnsignedTx, EVMUnsignedTx, Utxo, TransferOutput, Credential, Signature } from '@avalabs/avalanchejs';
7
+ import { VM, OutputOwners, TransferableOutput, Common, pvmSerial, Context, avm, pvm, evm, info, avaxSerial, utils, UnsignedTx, EVMUnsignedTx, Utxo, TransferOutput, Credential, Signature } from '@avalabs/avalanchejs';
12
8
  import * as _avalabs_avalanchejs_dist_vms_common from '@avalabs/avalanchejs/dist/vms/common';
13
- import { GetUpgradesInfoResponse } from '@avalabs/avalanchejs/dist/info/model';
14
9
  import { Bip32Path } from 'bip32-path';
15
10
  import AppZondax, { ResponseBase } from '@avalabs/hw-app-avalanche';
16
11
  import { BIP32Interface } from 'bip32';
17
- import { Utxo as Utxo$1, PChainUtxo } from '@avalabs/glacier-sdk';
12
+ import { Utxo as Utxo$1, PChainUtxo, Network as Network$2 } from '@avalabs/glacier-sdk';
18
13
  import * as _avalabs_avalanchejs_dist_serializable_common_types from '@avalabs/avalanchejs/dist/serializable/common/types';
19
- import { WalletAbstract as WalletAbstract$1 } from 'Avalanche/wallets';
14
+ import * as _solana_kit from '@solana/kit';
15
+ import { CompilableTransactionMessage, Transaction as Transaction$2, IInstruction, Address } from '@solana/kit';
16
+ import { Transaction } from '@ledgerhq/hw-app-btc/lib/types';
17
+ import { WalletPolicy, PsbtV2 } from 'ledger-bitcoin';
20
18
 
21
19
  /**
22
20
  * Custom Bitcoin UTXO interface.
@@ -158,12 +156,12 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
158
156
  private readonly extraParams?;
159
157
  constructor(isMainnet?: boolean, apiKey?: string, explorerUrl?: string, nodeUrl?: string, extraParams?: Record<string, string> | undefined);
160
158
  getTxHex(txHash: string): Promise<string>;
161
- getUTXOs(address: string, withScripts?: boolean): Promise<{
159
+ getUTXOs(address: string, withScripts?: boolean, skipBatch?: boolean): Promise<{
162
160
  confirmed: BitcoinInputUTXOWithOptionalScript[];
163
161
  unconfirmed: BitcoinInputUTXOWithOptionalScript[];
164
162
  }>;
165
163
  getAddressFromScript(script: string): Promise<string>;
166
- getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[]): Promise<BitcoinInputUTXO[]>;
164
+ getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[], skipBatch?: boolean): Promise<BitcoinInputUTXO[]>;
167
165
  private _parseUtxo;
168
166
  getBalances(address: string): Promise<{
169
167
  available: bigint;
@@ -171,7 +169,7 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
171
169
  final: bigint;
172
170
  }>;
173
171
  getChainHeight(): Promise<number>;
174
- getFeeRates(): Promise<{
172
+ getFeeRates(skipBatch?: boolean): Promise<{
175
173
  low: number;
176
174
  medium: number;
177
175
  high: number;
@@ -470,6 +468,8 @@ declare function getEvmAddressFromPubKey(pubKey: Buffer): string;
470
468
  */
471
469
  declare function getBtcAddressFromPubKey(pubKey: Buffer, network: Network): string;
472
470
 
471
+ declare const getEVMDerivationPath: (accountIndex: number, pathSpec: DerivationPath, withRoot?: boolean) => string;
472
+
473
473
  declare class LedgerSigner$1 extends AbstractSigner {
474
474
  readonly type: string;
475
475
  readonly path: string;
@@ -561,17 +561,20 @@ declare class BitcoinWalletVoid extends BitcoinWalletAbstract {
561
561
  signTx(tx: any): any;
562
562
  }
563
563
 
564
+ declare const BtcNetworks: typeof networks;
565
+
564
566
  type ChainIDAlias = 'X' | 'P' | 'C';
565
567
  /**
566
568
  * Types for parsed transaction
567
569
  */
568
- type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx$1 | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx$1 | UnknownTx;
570
+ type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx$1 | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx$1 | ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | DisableL1ValidatorTx | IncreaseL1ValidatorBalanceTx | AddAutoRenewedValidatorTx | SetAutoRenewedValidatorConfigTx | UnknownTx;
569
571
  interface FeeData {
570
572
  totalAvaxBurned: bigint;
571
573
  totalAvaxOutput: bigint;
572
574
  totalAvaxInput: bigint;
573
575
  isValidAvaxBurnedAmount: boolean;
574
576
  txFee: bigint;
577
+ baseFee: bigint;
575
578
  }
576
579
  interface TxBase extends FeeData {
577
580
  type: string;
@@ -585,6 +588,13 @@ declare enum TxType {
585
588
  Import = "import",
586
589
  CreateSubnet = "create_subnet",
587
590
  CreateChain = "create_chain",
591
+ ConvertSubnetToL1 = "convert_subnet_to_l1",
592
+ RegisterL1Validator = "register_l1_validator",
593
+ SetL1ValidatorWeight = "set_l1_validator_weight",
594
+ IncreaseL1ValidatorBalance = "increase_l1_validator_balance",
595
+ DisableL1Validator = "disable_l1_validator",
596
+ AddAutoRenewedValidator = "add_auto_renewed_validator",
597
+ SetAutoRenewedValidatorConfig = "set_auto_renewed_validator_config",
588
598
  AddSubnetValidator = "add_subnet_validator",
589
599
  RemoveSubnetValidator = "remove_subnet_validator",
590
600
  AddPermissionlessValidator = "add_permissionless_validator",
@@ -663,6 +673,57 @@ interface RemoveSubnetValidatorTx extends TxBase {
663
673
  nodeID: string;
664
674
  subnetID: string;
665
675
  }
676
+ interface ConvertSubnetToL1Tx extends TxBase {
677
+ type: TxType.ConvertSubnetToL1;
678
+ managerAddress: string;
679
+ validators: {
680
+ nodeId: string;
681
+ stake: bigint;
682
+ balance: bigint;
683
+ remainingBalanceOwners: string[];
684
+ deactivationOwners: string[];
685
+ }[];
686
+ subnetID: string;
687
+ chainID: string;
688
+ }
689
+ interface RegisterL1ValidatorTx extends TxBase {
690
+ type: TxType.RegisterL1Validator;
691
+ balance: bigint;
692
+ }
693
+ interface SetL1ValidatorWeightTx extends TxBase {
694
+ type: TxType.SetL1ValidatorWeight;
695
+ }
696
+ interface IncreaseL1ValidatorBalanceTx extends TxBase {
697
+ type: TxType.IncreaseL1ValidatorBalance;
698
+ balance: bigint;
699
+ validationId: string;
700
+ }
701
+ interface DisableL1ValidatorTx extends TxBase {
702
+ type: TxType.DisableL1Validator;
703
+ validationId: string;
704
+ }
705
+ interface AddAutoRenewedValidatorTx extends TxBase {
706
+ type: TxType.AddAutoRenewedValidator;
707
+ nodeID: string;
708
+ stake: bigint;
709
+ stakeOuts: readonly TransferableOutput[];
710
+ rewardOwner: OutputOwners;
711
+ delegationRewardOwner: OutputOwners;
712
+ owner: OutputOwners;
713
+ delegationFee: number;
714
+ weight: bigint;
715
+ autoCompoundRewardShares: number;
716
+ period: bigint;
717
+ signer: pvmSerial.Signer | pvmSerial.SignerEmpty;
718
+ publicKey: undefined | string;
719
+ signature: undefined | string;
720
+ }
721
+ interface SetAutoRenewedValidatorConfigTx extends TxBase {
722
+ type: TxType.SetAutoRenewedValidatorConfig;
723
+ txId: string;
724
+ autoCompoundRewardShares: number;
725
+ period: bigint;
726
+ }
666
727
  interface AddPermissionlessValidatorTx extends TxBase {
667
728
  type: TxType.AddPermissionlessValidator;
668
729
  nodeID: string;
@@ -701,7 +762,7 @@ interface TransformSubnetTx extends TxBase {
701
762
  minStakeDuration: number;
702
763
  maxStakeDuration: number;
703
764
  minDelegationFee: number;
704
- minDelegatorStake: number;
765
+ minDelegatorStake: bigint;
705
766
  maxValidatorWeightFactor: number;
706
767
  uptimeRequirement: number;
707
768
  }
@@ -722,6 +783,11 @@ declare function isAddDelegatorTx(tx: Tx): tx is AddDelegatorTx;
722
783
  declare function isExportTx(tx: Tx): tx is ExportTx;
723
784
  declare function isImportTx(tx: Tx): tx is ImportTx;
724
785
  declare function isBaseTx(tx: Tx): tx is BaseTx$1;
786
+ declare function isConvertSubnetToL1Tx(tx: Tx): tx is ConvertSubnetToL1Tx;
787
+ declare function isRegisterL1ValidatorTx(tx: Tx): tx is RegisterL1ValidatorTx;
788
+ declare function isSetL1ValidatorWeightTx(tx: Tx): tx is SetL1ValidatorWeightTx;
789
+ declare function isDisableL1ValidatorTx(tx: Tx): tx is DisableL1ValidatorTx;
790
+ declare function isIncreaseL1ValidatorBalance(tx: Tx): tx is IncreaseL1ValidatorBalanceTx;
725
791
  declare function isCreateSubnetTx(tx: Tx): tx is CreateSubnetTx;
726
792
  declare function isCreateChainTx(tx: Tx): tx is CreateChainTx;
727
793
  declare function isAddSubnetValidatorTx(tx: Tx): tx is AddSubnetValidatorTx;
@@ -730,27 +796,22 @@ declare function isAddPermissionlessValidatorTx(tx: Tx): tx is AddPermissionless
730
796
  declare function isAddPermissionlessDelegatorTx(tx: Tx): tx is AddPermissionlessDelegatorTx;
731
797
  declare function isTransformSubnetTx(tx: Tx): tx is TransformSubnetTx;
732
798
  declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx$1;
799
+ declare function isAddAutoRenewedValidatorTx(tx: Tx): tx is AddAutoRenewedValidatorTx;
800
+ declare function isSetAutoRenewedValidatorConfigTx(tx: Tx): tx is SetAutoRenewedValidatorConfigTx;
733
801
 
734
802
  declare class AbstractProvider {
735
803
  protected baseUrl: string;
736
804
  protected context: Context.Context;
737
- protected upgradesInfo: GetUpgradesInfoResponse;
738
- evmRpc: JsonRpcProvider$1;
739
- constructor(baseUrl: string, context: Context.Context, upgradesInfo: GetUpgradesInfoResponse);
740
- /**
741
- * @link https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData
742
- */
743
- getEvmFeeData(): Promise<ethers.FeeData>;
805
+ fetchOptions?: RequestInit | undefined;
806
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit | undefined);
744
807
  getContext(): Context.Context;
745
- isEtnaEnabled(): boolean;
746
- getUpgradesInfo(): GetUpgradesInfoResponse;
747
808
  getChainID(chainAlias: ChainIDAlias): string;
748
809
  getNetworkID(): number;
749
810
  getHrp(): string;
750
811
  getApiX(): avm.AVMApi;
751
812
  getApiP(): pvm.PVMApi;
752
813
  getApiC(): evm.EVMApi;
753
- getInfo(): Info;
814
+ getInfo(): info.InfoApi;
754
815
  getApi(chain: ChainIDAlias): avm.AVMApi | pvm.PVMApi | evm.EVMApi;
755
816
  getAvaxID(): string;
756
817
  getAddress(publicKey: Buffer, chain: ChainIDAlias): string;
@@ -771,10 +832,11 @@ declare class AbstractProvider {
771
832
  }
772
833
 
773
834
  declare class JsonRpcProvider extends AbstractProvider {
774
- constructor(baseUrl: string, context: Context.Context, upgradesInfo: GetUpgradesInfoResponse);
835
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit);
775
836
  static fromBaseURL(url: string): Promise<JsonRpcProvider>;
776
- static getDefaultMainnetProvider(upgradesInfo: GetUpgradesInfoResponse): JsonRpcProvider;
777
- static getDefaultFujiProvider(upgradesInfo: GetUpgradesInfoResponse): JsonRpcProvider;
837
+ static getDefaultMainnetProvider(fetchOptions?: RequestInit): JsonRpcProvider;
838
+ static getDefaultFujiProvider(fetchOptions?: RequestInit): JsonRpcProvider;
839
+ static getDefaultDevnetProvider(fetchOptions?: RequestInit): JsonRpcProvider;
778
840
  }
779
841
 
780
842
  /**
@@ -785,13 +847,14 @@ declare const MainnetContext: Context.Context;
785
847
  * Avalanche Fuji testnet context
786
848
  */
787
849
  declare const FujiContext: Context.Context;
850
+ declare const DevnetContext: Context.Context;
788
851
 
789
852
  type BaseTx = {
790
853
  utxoSet: utils.UtxoSet;
791
854
  chain: 'X' | 'P';
792
855
  toAddress: string;
793
856
  amountsPerAsset: Record<string, bigint>;
794
- feeState: pvm.FeeState;
857
+ feeState?: pvm.FeeState;
795
858
  options?: Common.SpendOptions;
796
859
  fromAddresses?: string[];
797
860
  };
@@ -800,32 +863,101 @@ type ImportP = {
800
863
  sourceChain: 'X' | 'C';
801
864
  toAddress?: string;
802
865
  threshold?: number;
803
- feeState: pvm.FeeState;
866
+ feeState?: pvm.FeeState;
804
867
  locktime?: bigint;
805
868
  };
806
869
  type ExportP = {
807
870
  amount: bigint;
808
871
  utxoSet: utils.UtxoSet;
809
872
  destination: 'X' | 'C';
810
- feeState: pvm.FeeState;
873
+ feeState?: pvm.FeeState;
811
874
  toAddress?: string;
812
875
  };
813
876
  type ConsolidateP = {
814
877
  utxoSet: utils.UtxoSet;
815
878
  amount: bigint;
816
- feeState: pvm.FeeState;
879
+ feeState?: pvm.FeeState;
817
880
  toAddress?: string;
818
881
  options?: Common.SpendOptions;
819
882
  };
820
883
  type CreateSubnet = {
821
884
  utxoSet: utils.UtxoSet;
822
885
  rewardAddresses: string[];
823
- feeState: pvm.FeeState;
886
+ feeState?: pvm.FeeState;
824
887
  fromAddresses?: string[];
825
888
  options?: Common.SpendOptions;
826
889
  threshold?: number;
827
890
  locktime?: bigint;
828
891
  };
892
+ type CreateChain = {
893
+ utxoSet: utils.UtxoSet;
894
+ subnetId: string;
895
+ chainName: string;
896
+ vmID: string;
897
+ fxIds: string[];
898
+ genesisData: Record<string, unknown>;
899
+ subnetAuth: number[];
900
+ feeState?: pvm.FeeState;
901
+ options?: Common.SpendOptions;
902
+ fromAddresses?: string[];
903
+ };
904
+ type ConvertSubnetToL1 = {
905
+ utxoSet: utils.UtxoSet;
906
+ address: string;
907
+ chainId: string;
908
+ subnetId: string;
909
+ subnetAuth: number[];
910
+ options?: Common.SpendOptions;
911
+ feeState: pvm.FeeState;
912
+ fromAddresses?: string[];
913
+ validators: {
914
+ nodeId: string;
915
+ weight: bigint;
916
+ balance: bigint;
917
+ pubKey: string;
918
+ signature: string;
919
+ remainingBalanceOwner: {
920
+ addresses: string[];
921
+ threshold?: number;
922
+ };
923
+ deactivationOwner: {
924
+ addresses: string[];
925
+ threshold?: number;
926
+ };
927
+ }[];
928
+ };
929
+ type RegisterL1Validator = {
930
+ utxoSet: utils.UtxoSet;
931
+ balance: bigint;
932
+ signature: string;
933
+ feeState: pvm.FeeState;
934
+ message: string;
935
+ options?: Common.SpendOptions;
936
+ fromAddresses?: string[];
937
+ };
938
+ type SetL1ValidatorWeight = {
939
+ utxoSet: utils.UtxoSet;
940
+ feeState: pvm.FeeState;
941
+ message: string;
942
+ options?: Common.SpendOptions;
943
+ fromAddresses?: string[];
944
+ };
945
+ type DisableL1Validator = {
946
+ utxoSet: utils.UtxoSet;
947
+ feeState: pvm.FeeState;
948
+ disableAuth: number[];
949
+ validationId: string;
950
+ options?: Common.SpendOptions;
951
+ fromAddresses?: string[];
952
+ };
953
+ type IncreaseL1ValidatorBalance = {
954
+ utxoSet: utils.UtxoSet;
955
+ feeState: pvm.FeeState;
956
+ balance: bigint;
957
+ validationId: string;
958
+ options?: Common.SpendOptions;
959
+ fromAddresses?: string[];
960
+ };
829
961
  type AddSubnetValidator = {
830
962
  utxoSet: utils.UtxoSet;
831
963
  nodeId: string;
@@ -834,7 +966,7 @@ type AddSubnetValidator = {
834
966
  weight: bigint;
835
967
  subnetId: string;
836
968
  subnetAuth: number[];
837
- feeState: pvm.FeeState;
969
+ feeState?: pvm.FeeState;
838
970
  fromAddresses?: string[];
839
971
  options?: Common.SpendOptions;
840
972
  };
@@ -855,7 +987,7 @@ type AddPermissionlessValidator = {
855
987
  stakingAssetId?: string;
856
988
  locktime?: bigint;
857
989
  threshold?: number;
858
- feeState: pvm.FeeState;
990
+ feeState?: pvm.FeeState;
859
991
  };
860
992
  type AddPermissionlessDelegator = {
861
993
  utxoSet: utils.UtxoSet;
@@ -868,17 +1000,77 @@ type AddPermissionlessDelegator = {
868
1000
  rewardAddresses?: string[];
869
1001
  options?: Common.SpendOptions;
870
1002
  locktime?: bigint;
871
- feeState: pvm.FeeState;
1003
+ feeState?: pvm.FeeState;
872
1004
  stakingAssetId?: string;
873
1005
  threshold?: number;
1006
+ /**
1007
+ * Optional outputs to bundle atomically with the delegation. Each entry
1008
+ * produces an additional transferable output on the resulting tx,
1009
+ * created at delegation submission time (distinct from the reward
1010
+ * output, which P-Chain emits later when the delegation ends).
1011
+ *
1012
+ * Note: the per-output `threshold` / `locktime` below configure that
1013
+ * specific output's OutputOwners. They are independent from the
1014
+ * top-level `threshold` / `locktime` on this type, which apply to the
1015
+ * delegation **reward** output. Most consumers can omit both pairs.
1016
+ *
1017
+ * - `addresses` are the **co-owners** of the output (P-Chain bech32, e.g.
1018
+ * `P-fuji1...` / `P-avax1...`); parsed to raw bytes internally. Pass
1019
+ * a single-element array for the common single-recipient case;
1020
+ * multiple addresses combined with `threshold` describe a multisig
1021
+ * recipient.
1022
+ * - `assetId` defaults to AVAX when omitted. To use a non-AVAX asset
1023
+ * (e.g. a custom subnet's staking asset), pass its assetId — the
1024
+ * caller's UTXO set must contain enough UTXOs of that asset to fund
1025
+ * the output.
1026
+ * - `threshold` is the number of signatures required to spend the
1027
+ * output; defaults to 1 (any one of `addresses`).
1028
+ * - `locktime` (unix seconds) locks the output until that time; defaults
1029
+ * to 0 (immediately spendable).
1030
+ */
1031
+ additionalOutputs?: readonly {
1032
+ addresses: readonly string[];
1033
+ amount: bigint;
1034
+ assetId?: string;
1035
+ threshold?: number;
1036
+ locktime?: bigint;
1037
+ }[];
874
1038
  };
875
1039
  type RemoveSubnetValidator = {
876
1040
  utxoSet: utils.UtxoSet;
877
1041
  nodeId: string;
878
1042
  subnetId: string;
879
1043
  subnetAuth: number[];
1044
+ feeState?: pvm.FeeState;
1045
+ fromAddresses?: string[];
1046
+ options?: Common.SpendOptions;
1047
+ };
1048
+ type AddAutoRenewedValidator = {
1049
+ utxoSet: utils.UtxoSet;
1050
+ nodeId: string;
1051
+ weight: bigint;
1052
+ shares: number;
880
1053
  feeState: pvm.FeeState;
881
1054
  fromAddresses?: string[];
1055
+ rewardAddresses?: string[];
1056
+ delegatorRewardAddresses?: string[];
1057
+ ownerAddresses?: string[];
1058
+ publicKey: Buffer;
1059
+ signature: Buffer;
1060
+ autoCompoundRewardShares: number;
1061
+ period: bigint;
1062
+ options?: Common.SpendOptions;
1063
+ locktime?: bigint;
1064
+ threshold?: number;
1065
+ };
1066
+ type SetAutoRenewedValidatorConfig = {
1067
+ utxoSet: utils.UtxoSet;
1068
+ feeState: pvm.FeeState;
1069
+ validatorTxId: string;
1070
+ auth: number[];
1071
+ autoCompoundRewardShares: number;
1072
+ period: bigint;
1073
+ fromAddresses?: string[];
882
1074
  options?: Common.SpendOptions;
883
1075
  };
884
1076
  type TransferSubnetOwnershipTx = {
@@ -886,7 +1078,7 @@ type TransferSubnetOwnershipTx = {
886
1078
  subnetId: string;
887
1079
  subnetAuth: number[];
888
1080
  subnetOwners: string[];
889
- feeState: pvm.FeeState;
1081
+ feeState?: pvm.FeeState;
890
1082
  fromAddresses?: string[];
891
1083
  options?: Common.SpendOptions;
892
1084
  threshold?: number;
@@ -938,13 +1130,9 @@ declare abstract class WalletAbstract {
938
1130
  * @param source What is the source chain of the atomic UTXOs
939
1131
  */
940
1132
  getAtomicUTXOs(chain: ChainIDAlias, source: ChainIDAlias): Promise<utils.UtxoSet>;
941
- /**
942
- * Get the nonce of this wallet's C chain address
943
- */
944
- getNonce(): Promise<number>;
945
- exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
946
- importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): Common.UnsignedTx;
947
- importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
1133
+ exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): _avalabs_avalanchejs.UnsignedTx;
1134
+ importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): _avalabs_avalanchejs.UnsignedTx;
1135
+ importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): _avalabs_avalanchejs.UnsignedTx;
948
1136
  /**
949
1137
  *
950
1138
  * @param utxos
@@ -953,7 +1141,7 @@ declare abstract class WalletAbstract {
953
1141
  * @param feeAssetId
954
1142
  * @param toAddress Must be hex EVM address.
955
1143
  */
956
- importC(utxos: utils.UtxoSet, sourceChain: 'P' | 'X', baseFee: bigint, feeAssetId?: string, toAddress?: string): Common.UnsignedTx;
1144
+ importC(utxos: utils.UtxoSet, sourceChain: 'P' | 'X', baseFee: bigint, feeAssetId?: string, toAddress?: string): _avalabs_avalanchejs.UnsignedTx;
957
1145
  /**
958
1146
  *
959
1147
  * @param amount
@@ -970,18 +1158,19 @@ declare abstract class WalletAbstract {
970
1158
  * @param destination
971
1159
  * @param toAddress
972
1160
  */
973
- exportP({ amount, utxoSet, destination, feeState, toAddress }: ExportP): Common.UnsignedTx;
974
- addValidator(utxos: utils.UtxoSet, nodeId: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, delegationFee: number, config?: {
975
- rewardAddress?: string;
976
- }): Common.UnsignedTx;
977
- addDelegator(utxos: utils.UtxoSet, nodeId: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, config?: {
978
- rewardAddress?: string;
979
- }): Common.UnsignedTx;
980
- consolidateP({ utxoSet, amount, feeState, toAddress, options, }: ConsolidateP): Common.UnsignedTx;
981
- baseTX({ utxoSet, chain, toAddress, amountsPerAsset, feeState, options, fromAddresses, }: BaseTx): Common.UnsignedTx;
982
- createBlockchain(utxoSet: utils.UtxoSet, subnetId: string, chainName: string, vmID: string, fxIds: string[], genesisData: Record<string, unknown>, subnetAuth: number[], options?: Common.SpendOptions, fromAddresses?: string[]): Common.UnsignedTx;
983
- createSubnet({ utxoSet, rewardAddresses, feeState, fromAddresses, options, threshold, locktime, }: CreateSubnet): Common.UnsignedTx;
984
- addSubnetValidator({ utxoSet, nodeId, start, end, weight, subnetId, subnetAuth, feeState, fromAddresses, options, }: AddSubnetValidator): Common.UnsignedTx;
1161
+ exportP({ amount, utxoSet, destination, feeState, toAddress }: ExportP): _avalabs_avalanchejs.UnsignedTx;
1162
+ consolidateP({ utxoSet, amount, feeState, toAddress, options, }: ConsolidateP): _avalabs_avalanchejs.UnsignedTx;
1163
+ baseTX({ utxoSet, chain, toAddress, amountsPerAsset, feeState, options, fromAddresses, }: BaseTx): _avalabs_avalanchejs.UnsignedTx;
1164
+ convertSubnetToL1({ utxoSet, chainId, subnetId, subnetAuth, feeState, address, validators, options, fromAddresses, }: ConvertSubnetToL1): _avalabs_avalanchejs.UnsignedTx;
1165
+ registerL1Validator({ utxoSet, balance, signature, message, feeState, fromAddresses, options, }: RegisterL1Validator): _avalabs_avalanchejs.UnsignedTx;
1166
+ setL1ValidatorWeight({ utxoSet, feeState, message, options, fromAddresses, }: SetL1ValidatorWeight): _avalabs_avalanchejs.UnsignedTx;
1167
+ disableL1Validator({ utxoSet, feeState, options, fromAddresses, disableAuth, validationId, }: DisableL1Validator): _avalabs_avalanchejs.UnsignedTx;
1168
+ increaseL1ValidatorBalance({ utxoSet, feeState, options, fromAddresses, balance, validationId, }: IncreaseL1ValidatorBalance): _avalabs_avalanchejs.UnsignedTx;
1169
+ addAutoRenewedValidator({ utxoSet, nodeId, weight, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, ownerAddresses, publicKey, signature, autoCompoundRewardShares, period, options, locktime, threshold, }: AddAutoRenewedValidator): _avalabs_avalanchejs.UnsignedTx;
1170
+ setAutoRenewedValidatorConfig({ utxoSet, feeState, validatorTxId, auth, autoCompoundRewardShares, period, fromAddresses, options, }: SetAutoRenewedValidatorConfig): _avalabs_avalanchejs.UnsignedTx;
1171
+ createBlockchain({ utxoSet, subnetId, chainName, vmID, fxIds, genesisData, subnetAuth, feeState, options, fromAddresses, }: CreateChain): _avalabs_avalanchejs.UnsignedTx;
1172
+ createSubnet({ utxoSet, rewardAddresses, feeState, fromAddresses, options, threshold, locktime, }: CreateSubnet): _avalabs_avalanchejs.UnsignedTx;
1173
+ addSubnetValidator({ utxoSet, nodeId, start, end, weight, subnetId, subnetAuth, feeState, fromAddresses, options, }: AddSubnetValidator): _avalabs_avalanchejs.UnsignedTx;
985
1174
  /**
986
1175
  *
987
1176
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -998,7 +1187,7 @@ declare abstract class WalletAbstract {
998
1187
  * @param signature the BLS signature, If the subnet is the primary network. Can be found in the Node on startup.
999
1188
  * @param options
1000
1189
  */
1001
- addPermissionlessValidator({ utxoSet, nodeId, start, end, weight, subnetId, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, publicKey, signature, options, threshold, locktime, stakingAssetId, }: AddPermissionlessValidator): Common.UnsignedTx;
1190
+ addPermissionlessValidator({ utxoSet, nodeId, start, end, weight, subnetId, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, publicKey, signature, options, threshold, locktime, stakingAssetId, }: AddPermissionlessValidator): _avalabs_avalanchejs.UnsignedTx;
1002
1191
  /**
1003
1192
  *
1004
1193
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -1011,10 +1200,9 @@ declare abstract class WalletAbstract {
1011
1200
  * @param rewardAddresses Will use active address if not provided. Given addresses will share the reward UTXO.
1012
1201
  * @param options
1013
1202
  */
1014
- addPermissionlessDelegator({ utxoSet, nodeId, start, end, weight, subnetId, fromAddresses, rewardAddresses, options, locktime, feeState, threshold, stakingAssetId, }: AddPermissionlessDelegator): Common.UnsignedTx;
1015
- removeSubnetValidator({ utxoSet, nodeId, subnetId, subnetAuth, fromAddresses, feeState, options, }: RemoveSubnetValidator): Common.UnsignedTx;
1016
- transferSubnetOwnershipTx({ utxoSet, subnetId, subnetAuth, subnetOwners, feeState, fromAddresses, options, threshold, locktime, }: TransferSubnetOwnershipTx): Common.UnsignedTx;
1017
- transformSubnetTx(utxoSet: utils.UtxoSet, subnetId: string, assetId: string, initialSupply: bigint, maximumSupply: bigint, minConsumptionRate: bigint, maxConsumptionRate: bigint, minValidatorStake: bigint, maxValidatorStake: bigint, minStakeDuration: number, maxStakeDuration: number, minDelegationFee: number, minDelegatorStake: number, maxValidatorWeightFactor: number, uptimeRequirement: number, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
1203
+ addPermissionlessDelegator({ utxoSet, nodeId, start, end, weight, subnetId, fromAddresses, rewardAddresses, options, locktime, feeState, threshold, stakingAssetId, additionalOutputs, }: AddPermissionlessDelegator): _avalabs_avalanchejs.UnsignedTx;
1204
+ removeSubnetValidator({ utxoSet, nodeId, subnetId, subnetAuth, fromAddresses, feeState, options, }: RemoveSubnetValidator): _avalabs_avalanchejs.UnsignedTx;
1205
+ transferSubnetOwnershipTx({ utxoSet, subnetId, subnetAuth, subnetOwners, feeState, fromAddresses, options, threshold, locktime, }: TransferSubnetOwnershipTx): _avalabs_avalanchejs.UnsignedTx;
1018
1206
  protected constructor(provider: AbstractProvider);
1019
1207
  }
1020
1208
 
@@ -1336,7 +1524,7 @@ declare class StaticSigner extends WalletVoid implements Signer {
1336
1524
  */
1337
1525
  declare class SimpleSigner implements Signer {
1338
1526
  /**
1339
- * Node for `m/44'/9000'/0'`
1527
+ * Node for `m/44'/9000'/n'`
1340
1528
  * @private {BIP32Interface}
1341
1529
  */
1342
1530
  private accountNodeXP;
@@ -1436,12 +1624,13 @@ declare class LedgerSigner extends WalletVoid implements Signer {
1436
1624
  declare class SimpleLedgerSigner implements Signer {
1437
1625
  private activeAccountIndex;
1438
1626
  private provider;
1627
+ private pathSpec;
1439
1628
  private accountNode;
1440
1629
  /**
1441
1630
  * @param {number} activeAccountIndex - the index of the primary account used for static signing
1442
- * @param {string} xpubXP - optional extended public key of `m/44'/9000'/0`
1631
+ * @param {string} xpubXP - optional extended public key of `m/44'/9000'/${activeAccountIndex}`
1443
1632
  */
1444
- constructor(activeAccountIndex: number, provider: JsonRpcProvider, xpubXP?: string);
1633
+ constructor(activeAccountIndex: number, provider: JsonRpcProvider, xpubXP?: string, pathSpec?: DerivationPath);
1445
1634
  private reSerializeTx;
1446
1635
  private getChainAlias;
1447
1636
  private getAccountPath;
@@ -1453,6 +1642,18 @@ declare class SimpleLedgerSigner implements Signer {
1453
1642
  signMessage(request: SignMessageRequest): Promise<Buffer>;
1454
1643
  }
1455
1644
 
1645
+ /**
1646
+ * Ledger signer that can use multiple LedgerLive derivation paths for signing transactions.
1647
+ */
1648
+ declare class LedgerLiveSigner implements Signer {
1649
+ #private;
1650
+ private accountIndices;
1651
+ constructor(accountIndices: number[]);
1652
+ signMessage(request: SignMessageRequest): Promise<Buffer>;
1653
+ signTx(txRequest: SignTxRequest): Promise<UnsignedTx>;
1654
+ signTxBuffer(txRequest: SignTxBufferRequest): Promise<Buffer[]>;
1655
+ }
1656
+
1456
1657
  declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAlias, provider, utxos, }: {
1457
1658
  transactionHex: string;
1458
1659
  signatures: Uint8Array[];
@@ -1465,15 +1666,16 @@ declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAl
1465
1666
  }>;
1466
1667
 
1467
1668
  type GlacierOutput = Utxo$1 | PChainUtxo;
1468
- declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, isTestnet: boolean) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
1669
+ declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, network: Network$2) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
1469
1670
 
1470
1671
  type Params$2 = {
1471
1672
  txBytes: Uint8Array;
1472
1673
  fromAddress: string;
1473
1674
  vm: VM;
1675
+ credentials?: Credential[];
1474
1676
  utxos: Utxo[];
1475
1677
  };
1476
- declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, utxos, }: Params$2) => Promise<UnsignedTx>;
1678
+ declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, credentials, utxos, }: Params$2) => Promise<UnsignedTx>;
1477
1679
 
1478
1680
  type Params$1 = {
1479
1681
  tx: avaxSerial.AvaxTx;
@@ -1547,7 +1749,7 @@ declare function getAssetBalance(utxoSet: utils.UtxoSet, assetID: string): GetAv
1547
1749
  /**
1548
1750
  * Get the current p-chain timestamp in unix
1549
1751
  */
1550
- declare function getPchainUnixNow(isTestnet: boolean): Promise<bigint>;
1752
+ declare function getPchainUnixNow(provider: AbstractProvider): Promise<bigint>;
1551
1753
 
1552
1754
  interface GetStakedAvaxBalanceDict {
1553
1755
  /**
@@ -1569,33 +1771,23 @@ declare function getStakeForAddresses(addresses: string[], api: pvm.PVMApi): Pro
1569
1771
  */
1570
1772
  declare function getUnixNow(): bigint;
1571
1773
 
1572
- type UtxoInfo = {
1573
- utxoId: string;
1574
- assetId: string;
1575
- locktime: bigint;
1576
- stakeableLocktime: bigint;
1577
- threshold: number;
1578
- amount: bigint;
1579
- };
1580
- declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
1581
-
1582
1774
  type Params = {
1583
1775
  transactionHex: string;
1584
1776
  chainAlias: ChainIDAlias;
1585
- isTestnet: boolean;
1777
+ network: Network$2;
1586
1778
  url: string;
1587
1779
  token?: string;
1588
1780
  headers?: Record<string, string>;
1589
1781
  };
1590
- declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, isTestnet, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
1782
+ declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
1591
1783
 
1592
- declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
1784
+ declare const getVmByChainAlias: (chainAlias: string) => "AVM" | "EVM" | "PVM";
1593
1785
 
1594
1786
  /**
1595
1787
  * Get the xpub for m/44'/9000'/0' from the given mnemonic
1596
1788
  * @param mnemonic
1597
1789
  */
1598
- declare function getXpubFromMnemonic(mnemonic: string): string;
1790
+ declare function getXpubFromMnemonic(mnemonic: string, accountIndex: number): string;
1599
1791
 
1600
1792
  /**
1601
1793
  * Verify the given address is a valid Avalanche bech32 address
@@ -1604,10 +1796,20 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
1604
1796
  */
1605
1797
  declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
1606
1798
 
1799
+ type ParseOptions = {
1800
+ /**
1801
+ * Tolerance percentage range where the burned amount is considered valid.
1802
+ */
1803
+ feeTolerance?: number;
1804
+ /**
1805
+ * Base fee used for validating burn amount. Priced in nAvax.
1806
+ */
1807
+ baseFee?: bigint;
1808
+ };
1607
1809
  /**
1608
1810
  * Returns human readable data from a given a transaction buffer,
1609
1811
  */
1610
- declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
1812
+ declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance, baseFee: inputBaseFee }?: ParseOptions): Promise<Tx>;
1611
1813
 
1612
1814
  declare const emptySignature: Signature;
1613
1815
  declare const populateCredential: (indices: number[], existingCredentialData?: {
@@ -1619,12 +1821,13 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
1619
1821
 
1620
1822
  /**
1621
1823
  * The UTXOs will be sorted in the following order.
1622
- * 1- LockedStakeable UTXOs with the highest locktime to lowest
1623
- * 2- Highest value UTXOs to lowest
1824
+ * 1- Highest value unlocked UTXO (for fees)
1825
+ * 2- LockedStakeable UTXOs with the highest locktime to lowest
1826
+ * 3- Rest of the unlocked UTXOs highest to lowest
1624
1827
  * @remark Does not check for locked UTXOs
1625
1828
  */
1626
- declare function sortUTXOsStaking(utxos: Utxo[]): Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1627
- declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1829
+ declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
1830
+ declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
1628
1831
  declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1629
1832
  declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1630
1833
 
@@ -1656,11 +1859,11 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
1656
1859
  * @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
1657
1860
  */
1658
1861
  declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
1659
- wallet: WalletAbstract$1;
1862
+ wallet: WalletAbstract;
1660
1863
  utxos: Utxo[];
1661
1864
  sizeSupportedTx: SizeSupportedTx;
1662
1865
  limit?: number;
1663
- feeState: pvm.FeeState;
1866
+ feeState?: pvm.FeeState;
1664
1867
  }): Utxo[];
1665
1868
 
1666
1869
  /**
@@ -1669,8 +1872,11 @@ declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeS
1669
1872
  */
1670
1873
  declare function verifyDerivationPath(path: string): any;
1671
1874
 
1875
+ declare const getAvalancheDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
1876
+
1672
1877
  type index_AbstractProvider = AbstractProvider;
1673
1878
  declare const index_AbstractProvider: typeof AbstractProvider;
1879
+ type index_AddAutoRenewedValidatorTx = AddAutoRenewedValidatorTx;
1674
1880
  type index_AddDelegatorTx = AddDelegatorTx;
1675
1881
  type index_AddPermissionlessDelegatorTx = AddPermissionlessDelegatorTx;
1676
1882
  type index_AddPermissionlessValidatorTx = AddPermissionlessValidatorTx;
@@ -1679,8 +1885,11 @@ type index_AddValidatorTx = AddValidatorTx;
1679
1885
  type index_AddressWallet = AddressWallet;
1680
1886
  declare const index_AddressWallet: typeof AddressWallet;
1681
1887
  type index_ChainIDAlias = ChainIDAlias;
1888
+ type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
1682
1889
  type index_CreateChainTx = CreateChainTx;
1683
1890
  type index_CreateSubnetTx = CreateSubnetTx;
1891
+ declare const index_DevnetContext: typeof DevnetContext;
1892
+ type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
1684
1893
  type index_ExportTx = ExportTx;
1685
1894
  type index_FeeData = FeeData;
1686
1895
  declare const index_FujiContext: typeof FujiContext;
@@ -1688,9 +1897,12 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
1688
1897
  type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
1689
1898
  type index_GlacierOutput = GlacierOutput;
1690
1899
  type index_ImportTx = ImportTx;
1900
+ type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
1691
1901
  type index_JsonRpcProvider = JsonRpcProvider;
1692
1902
  declare const index_JsonRpcProvider: typeof JsonRpcProvider;
1693
1903
  type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
1904
+ type index_LedgerLiveSigner = LedgerLiveSigner;
1905
+ declare const index_LedgerLiveSigner: typeof LedgerLiveSigner;
1694
1906
  type index_LedgerSigner = LedgerSigner;
1695
1907
  declare const index_LedgerSigner: typeof LedgerSigner;
1696
1908
  type index_LedgerWallet = LedgerWallet;
@@ -1701,7 +1913,11 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
1701
1913
  type index_MnemonicWalletVoid = MnemonicWalletVoid;
1702
1914
  declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
1703
1915
  declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
1916
+ type index_ParseOptions = ParseOptions;
1917
+ type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
1704
1918
  type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
1919
+ type index_SetAutoRenewedValidatorConfigTx = SetAutoRenewedValidatorConfigTx;
1920
+ type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
1705
1921
  type index_SignMessageRequest = SignMessageRequest;
1706
1922
  type index_SignTxBufferRequest = SignTxBufferRequest;
1707
1923
  type index_SignTxRequest = SignTxRequest;
@@ -1720,7 +1936,6 @@ type index_TxBase = TxBase;
1720
1936
  type index_TxType = TxType;
1721
1937
  declare const index_TxType: typeof TxType;
1722
1938
  type index_UnknownTx = UnknownTx;
1723
- type index_UtxoInfo = UtxoInfo;
1724
1939
  type index_WalletAbstract = WalletAbstract;
1725
1940
  declare const index_WalletAbstract: typeof WalletAbstract;
1726
1941
  type index_WalletVoid = WalletVoid;
@@ -1734,6 +1949,7 @@ declare const index_emptySignature: typeof emptySignature;
1734
1949
  declare const index_getAddressFromXpub: typeof getAddressFromXpub;
1735
1950
  declare const index_getAddressPublicKeyFromXpub: typeof getAddressPublicKeyFromXpub;
1736
1951
  declare const index_getAssetBalance: typeof getAssetBalance;
1952
+ declare const index_getAvalancheDerivationPath: typeof getAvalancheDerivationPath;
1737
1953
  declare const index_getLedgerProvider: typeof getLedgerProvider;
1738
1954
  declare const index_getMaximumUtxoSet: typeof getMaximumUtxoSet;
1739
1955
  declare const index_getPaginatedUTXOs: typeof getPaginatedUTXOs;
@@ -1742,10 +1958,10 @@ declare const index_getStakeForAddresses: typeof getStakeForAddresses;
1742
1958
  declare const index_getStakedAssetBalance: typeof getStakedAssetBalance;
1743
1959
  declare const index_getUTXOsForAddresses: typeof getUTXOsForAddresses;
1744
1960
  declare const index_getUnixNow: typeof getUnixNow;
1745
- declare const index_getUtxoInfo: typeof getUtxoInfo;
1746
1961
  declare const index_getUtxosByTxFromGlacier: typeof getUtxosByTxFromGlacier;
1747
1962
  declare const index_getVmByChainAlias: typeof getVmByChainAlias;
1748
1963
  declare const index_getXpubFromMnemonic: typeof getXpubFromMnemonic;
1964
+ declare const index_isAddAutoRenewedValidatorTx: typeof isAddAutoRenewedValidatorTx;
1749
1965
  declare const index_isAddDelegatorTx: typeof isAddDelegatorTx;
1750
1966
  declare const index_isAddPermissionlessDelegatorTx: typeof isAddPermissionlessDelegatorTx;
1751
1967
  declare const index_isAddPermissionlessValidatorTx: typeof isAddPermissionlessValidatorTx;
@@ -1753,12 +1969,18 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
1753
1969
  declare const index_isAddValidatorTx: typeof isAddValidatorTx;
1754
1970
  declare const index_isBaseTx: typeof isBaseTx;
1755
1971
  declare const index_isBech32Address: typeof isBech32Address;
1972
+ declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
1756
1973
  declare const index_isCreateChainTx: typeof isCreateChainTx;
1757
1974
  declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
1975
+ declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
1758
1976
  declare const index_isExportTx: typeof isExportTx;
1759
1977
  declare const index_isImportTx: typeof isImportTx;
1978
+ declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
1760
1979
  declare const index_isObsidianApp: typeof isObsidianApp;
1980
+ declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
1761
1981
  declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
1982
+ declare const index_isSetAutoRenewedValidatorConfigTx: typeof isSetAutoRenewedValidatorConfigTx;
1983
+ declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
1762
1984
  declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
1763
1985
  declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
1764
1986
  declare const index_parseAvalancheTx: typeof parseAvalancheTx;
@@ -1770,105 +1992,23 @@ declare const index_sortUTXOsByAmountDescending: typeof sortUTXOsByAmountDescend
1770
1992
  declare const index_sortUTXOsStaking: typeof sortUTXOsStaking;
1771
1993
  declare const index_verifyDerivationPath: typeof verifyDerivationPath;
1772
1994
  declare namespace index {
1773
- export {
1774
- index_AbstractProvider as AbstractProvider,
1775
- index_AddDelegatorTx as AddDelegatorTx,
1776
- index_AddPermissionlessDelegatorTx as AddPermissionlessDelegatorTx,
1777
- index_AddPermissionlessValidatorTx as AddPermissionlessValidatorTx,
1778
- index_AddSubnetValidatorTx as AddSubnetValidatorTx,
1779
- index_AddValidatorTx as AddValidatorTx,
1780
- index_AddressWallet as AddressWallet,
1781
- BaseTx$1 as BaseTx,
1782
- index_ChainIDAlias as ChainIDAlias,
1783
- index_CreateChainTx as CreateChainTx,
1784
- index_CreateSubnetTx as CreateSubnetTx,
1785
- index_ExportTx as ExportTx,
1786
- index_FeeData as FeeData,
1787
- index_FujiContext as FujiContext,
1788
- index_GetAvaxBalanceDict as GetAvaxBalanceDict,
1789
- index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
1790
- index_GlacierOutput as GlacierOutput,
1791
- index_ImportTx as ImportTx,
1792
- index_JsonRpcProvider as JsonRpcProvider,
1793
- index_LedgerGetXpubResponse as LedgerGetXpubResponse,
1794
- index_LedgerSigner as LedgerSigner,
1795
- index_LedgerWallet as LedgerWallet,
1796
- index_MainnetContext as MainnetContext,
1797
- index_MnemonicWallet as MnemonicWallet,
1798
- index_MnemonicWalletVoid as MnemonicWalletVoid,
1799
- index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
1800
- index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
1801
- index_SignMessageRequest as SignMessageRequest,
1802
- index_SignTxBufferRequest as SignTxBufferRequest,
1803
- index_SignTxRequest as SignTxRequest,
1804
- index_Signer as Signer,
1805
- index_SimpleLedgerSigner as SimpleLedgerSigner,
1806
- index_SimpleSigner as SimpleSigner,
1807
- index_SizeSupportedTx as SizeSupportedTx,
1808
- index_StaticSigner as StaticSigner,
1809
- TransferSubnetOwnershipTx$1 as TransferSubnetOwnershipTx,
1810
- index_TransformSubnetTx as TransformSubnetTx,
1811
- index_Tx as Tx,
1812
- index_TxBase as TxBase,
1813
- index_TxType as TxType,
1814
- index_UnknownTx as UnknownTx,
1815
- index_UtxoInfo as UtxoInfo,
1816
- index_WalletAbstract as WalletAbstract,
1817
- index_WalletVoid as WalletVoid,
1818
- index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx,
1819
- index_convertGlacierUtxo as convertGlacierUtxo,
1820
- index_createAvalancheEvmUnsignedTx as createAvalancheEvmUnsignedTx,
1821
- index_createAvalancheUnsignedTx as createAvalancheUnsignedTx,
1822
- index_digestMessage as digestMessage,
1823
- index_emptySignature as emptySignature,
1824
- index_getAddressFromXpub as getAddressFromXpub,
1825
- index_getAddressPublicKeyFromXpub as getAddressPublicKeyFromXpub,
1826
- index_getAssetBalance as getAssetBalance,
1827
- index_getLedgerProvider as getLedgerProvider,
1828
- index_getMaximumUtxoSet as getMaximumUtxoSet,
1829
- index_getPaginatedUTXOs as getPaginatedUTXOs,
1830
- index_getPchainUnixNow as getPchainUnixNow,
1831
- index_getStakeForAddresses as getStakeForAddresses,
1832
- index_getStakedAssetBalance as getStakedAssetBalance,
1833
- index_getUTXOsForAddresses as getUTXOsForAddresses,
1834
- index_getUnixNow as getUnixNow,
1835
- index_getUtxoInfo as getUtxoInfo,
1836
- index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier,
1837
- index_getVmByChainAlias as getVmByChainAlias,
1838
- index_getXpubFromMnemonic as getXpubFromMnemonic,
1839
- index_isAddDelegatorTx as isAddDelegatorTx,
1840
- index_isAddPermissionlessDelegatorTx as isAddPermissionlessDelegatorTx,
1841
- index_isAddPermissionlessValidatorTx as isAddPermissionlessValidatorTx,
1842
- index_isAddSubnetValidatorTx as isAddSubnetValidatorTx,
1843
- index_isAddValidatorTx as isAddValidatorTx,
1844
- index_isBaseTx as isBaseTx,
1845
- index_isBech32Address as isBech32Address,
1846
- index_isCreateChainTx as isCreateChainTx,
1847
- index_isCreateSubnetTx as isCreateSubnetTx,
1848
- index_isExportTx as isExportTx,
1849
- index_isImportTx as isImportTx,
1850
- index_isObsidianApp as isObsidianApp,
1851
- index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
1852
- index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
1853
- index_isTransformSubnetTx as isTransformSubnetTx,
1854
- index_parseAvalancheTx as parseAvalancheTx,
1855
- index_populateCredential as populateCredential,
1856
- index_signedTxToHex as signedTxToHex,
1857
- index_sortUTXOsByAmount as sortUTXOsByAmount,
1858
- index_sortUTXOsByAmountAscending as sortUTXOsByAmountAscending,
1859
- index_sortUTXOsByAmountDescending as sortUTXOsByAmountDescending,
1860
- index_sortUTXOsStaking as sortUTXOsStaking,
1861
- index_verifyDerivationPath as verifyDerivationPath,
1862
- };
1995
+ export { index_AbstractProvider as AbstractProvider, index_AddressWallet as AddressWallet, index_DevnetContext as DevnetContext, index_FujiContext as FujiContext, index_JsonRpcProvider as JsonRpcProvider, index_LedgerLiveSigner as LedgerLiveSigner, index_LedgerSigner as LedgerSigner, index_LedgerWallet as LedgerWallet, index_MainnetContext as MainnetContext, index_MnemonicWallet as MnemonicWallet, index_MnemonicWalletVoid as MnemonicWalletVoid, index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT, index_SimpleLedgerSigner as SimpleLedgerSigner, index_SimpleSigner as SimpleSigner, index_SizeSupportedTx as SizeSupportedTx, index_StaticSigner as StaticSigner, index_TxType as TxType, index_WalletAbstract as WalletAbstract, index_WalletVoid as WalletVoid, index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx, index_convertGlacierUtxo as convertGlacierUtxo, index_createAvalancheEvmUnsignedTx as createAvalancheEvmUnsignedTx, index_createAvalancheUnsignedTx as createAvalancheUnsignedTx, index_digestMessage as digestMessage, index_emptySignature as emptySignature, index_getAddressFromXpub as getAddressFromXpub, index_getAddressPublicKeyFromXpub as getAddressPublicKeyFromXpub, index_getAssetBalance as getAssetBalance, index_getAvalancheDerivationPath as getAvalancheDerivationPath, index_getLedgerProvider as getLedgerProvider, index_getMaximumUtxoSet as getMaximumUtxoSet, index_getPaginatedUTXOs as getPaginatedUTXOs, index_getPchainUnixNow as getPchainUnixNow, index_getStakeForAddresses as getStakeForAddresses, index_getStakedAssetBalance as getStakedAssetBalance, index_getUTXOsForAddresses as getUTXOsForAddresses, index_getUnixNow as getUnixNow, index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier, index_getVmByChainAlias as getVmByChainAlias, index_getXpubFromMnemonic as getXpubFromMnemonic, index_isAddAutoRenewedValidatorTx as isAddAutoRenewedValidatorTx, index_isAddDelegatorTx as isAddDelegatorTx, index_isAddPermissionlessDelegatorTx as isAddPermissionlessDelegatorTx, index_isAddPermissionlessValidatorTx as isAddPermissionlessValidatorTx, index_isAddSubnetValidatorTx as isAddSubnetValidatorTx, index_isAddValidatorTx as isAddValidatorTx, index_isBaseTx as isBaseTx, index_isBech32Address as isBech32Address, index_isConvertSubnetToL1Tx as isConvertSubnetToL1Tx, index_isCreateChainTx as isCreateChainTx, index_isCreateSubnetTx as isCreateSubnetTx, index_isDisableL1ValidatorTx as isDisableL1ValidatorTx, index_isExportTx as isExportTx, index_isImportTx as isImportTx, index_isIncreaseL1ValidatorBalance as isIncreaseL1ValidatorBalance, index_isObsidianApp as isObsidianApp, index_isRegisterL1ValidatorTx as isRegisterL1ValidatorTx, index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx, index_isSetAutoRenewedValidatorConfigTx as isSetAutoRenewedValidatorConfigTx, index_isSetL1ValidatorWeightTx as isSetL1ValidatorWeightTx, index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx, index_isTransformSubnetTx as isTransformSubnetTx, index_parseAvalancheTx as parseAvalancheTx, index_populateCredential as populateCredential, index_signedTxToHex as signedTxToHex, index_sortUTXOsByAmount as sortUTXOsByAmount, index_sortUTXOsByAmountAscending as sortUTXOsByAmountAscending, index_sortUTXOsByAmountDescending as sortUTXOsByAmountDescending, index_sortUTXOsStaking as sortUTXOsStaking, index_verifyDerivationPath as verifyDerivationPath };
1996
+ export type { index_AddAutoRenewedValidatorTx as AddAutoRenewedValidatorTx, index_AddDelegatorTx as AddDelegatorTx, index_AddPermissionlessDelegatorTx as AddPermissionlessDelegatorTx, index_AddPermissionlessValidatorTx as AddPermissionlessValidatorTx, index_AddSubnetValidatorTx as AddSubnetValidatorTx, index_AddValidatorTx as AddValidatorTx, BaseTx$1 as BaseTx, index_ChainIDAlias as ChainIDAlias, index_ConvertSubnetToL1Tx as ConvertSubnetToL1Tx, index_CreateChainTx as CreateChainTx, index_CreateSubnetTx as CreateSubnetTx, index_DisableL1ValidatorTx as DisableL1ValidatorTx, index_ExportTx as ExportTx, index_FeeData as FeeData, index_GetAvaxBalanceDict as GetAvaxBalanceDict, index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict, index_GlacierOutput as GlacierOutput, index_ImportTx as ImportTx, index_IncreaseL1ValidatorBalanceTx as IncreaseL1ValidatorBalanceTx, index_LedgerGetXpubResponse as LedgerGetXpubResponse, index_ParseOptions as ParseOptions, index_RegisterL1ValidatorTx as RegisterL1ValidatorTx, index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx, index_SetAutoRenewedValidatorConfigTx as SetAutoRenewedValidatorConfigTx, index_SetL1ValidatorWeightTx as SetL1ValidatorWeightTx, index_SignMessageRequest as SignMessageRequest, index_SignTxBufferRequest as SignTxBufferRequest, index_SignTxRequest as SignTxRequest, index_Signer as Signer, TransferSubnetOwnershipTx$1 as TransferSubnetOwnershipTx, index_TransformSubnetTx as TransformSubnetTx, index_Tx as Tx, index_TxBase as TxBase, index_UnknownTx as UnknownTx };
1863
1997
  }
1864
1998
 
1999
+ type DerivationPathOptions = {
2000
+ withRoot?: boolean;
2001
+ pathSpec?: DerivationPath;
2002
+ };
1865
2003
  /**
1866
2004
  * Get the derivation path used by wallet addresses
1867
2005
  * @param addressIndex Which index is the address on
1868
- * @param pathSpec BIP44 vs LedgerLive
1869
2006
  * @param vm Which VM is this address on. Coin index changes between Avalanche and EVM
2007
+ * @param options
2008
+ * @param options.withRoot If false, skips the "m/" prefix. Needed for Solana Ledger app.
2009
+ * @param options.pathSpec Only relevant (and required) for EVM.
1870
2010
  */
1871
- declare function getAddressDerivationPath(addressIndex: number, pathSpec: DerivationPath, vm: 'EVM' | 'AVM' | 'PVM'): string;
2011
+ declare function getAddressDerivationPath(accountIndex: number, vm: 'SVM' | 'EVM' | 'AVM' | 'PVM', options?: DerivationPathOptions): string;
1872
2012
 
1873
2013
  /**
1874
2014
  * Get the public key from a given private key.
@@ -1913,4 +2053,114 @@ declare function openLedgerApp(transport: Transport, applicationName: string): P
1913
2053
  */
1914
2054
  declare function quitLedgerApp(transport: Transport): Promise<Buffer>;
1915
2055
 
1916
- export { index as Avalanche, BitcoinHistoryTx, BitcoinInputUTXO, BitcoinInputUTXOWithOptionalScript, BitcoinLedgerInputUTXO, BitcoinLedgerWallet, BitcoinOutputUTXO, BitcoinProvider, BitcoinProviderAbstract, BitcoinTx, BitcoinWallet, BitcoinWalletAbstract, BitcoinWalletVoid, DerivationPath, ETH_ACCOUNT_PATH, ETH_COIN_PATH, JsonRpcBatchInternal, LedgerSigner$1 as LedgerSigner, addEncodedSigToPsbt, createPSBTV2, createPsbt, createTransferTx, createWalletPolicy, formatAddressForNetworkBech32, getAddressDerivationPath, getAddressFromXPub, getAddressPrivateKeyFromXPriv, getAddressPublicKeyFromXPub, getAppEth, getBech32Address, getBech32AddressFromXPub, getBtcAddressFromPubKey, getEvmAddressFromPubKey, getLedgerAppInfo, getLedgerExtendedPublicKey, getMaxTransferAmount, getPubKeyFromTransport, getPublicKeyFromPrivateKey, getTransferTxDetails, getVoidSigner, getWalletFromMnemonic, getXpubFromMnemonic$1 as getXpubFromMnemonic, isERC20Transfer, isNativeTxn, omitUndefinedKeys, onBalanceChange, openLedgerApp, psbt2ToPsbt0, quitLedgerApp, selectUtxos };
2056
+ declare const compileSolanaTx: (compilableTx: CompilableTransactionMessage) => Readonly<Readonly<{
2057
+ messageBytes: _solana_kit.TransactionMessageBytes;
2058
+ signatures: _solana_kit.SignaturesMap;
2059
+ }> & _solana_kit.TransactionWithLifetime>;
2060
+
2061
+ type SolanaProvider = ReturnType<typeof getSolanaProvider>;
2062
+ declare const isSolanaProvider: (something: unknown) => something is _solana_kit.RpcDevnet<(_solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi) | (_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi)> | _solana_kit.RpcMainnet<(_solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi) | (_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi)>;
2063
+ declare const getSolanaProvider: ({ isTestnet, rpcUrl, }: {
2064
+ isTestnet: boolean;
2065
+ rpcUrl: string;
2066
+ }) => _solana_kit.RpcDevnet<(_solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi) | (_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi)> | _solana_kit.RpcMainnet<(_solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi) | (_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi)>;
2067
+
2068
+ declare const deserializeTransactionMessage: (payload: string, prov: SolanaProvider) => Promise<_solana_kit.CompilableTransactionMessage<_solana_kit.TransactionVersion, _solana_kit.IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>>>;
2069
+
2070
+ declare const serializeSolanaTx: (tx: Transaction$2) => _solana_kit.Base64EncodedWireTransaction;
2071
+
2072
+ declare const transferSol: ({ from, to, amount, provider, }: {
2073
+ from: string;
2074
+ to: string;
2075
+ amount: bigint;
2076
+ provider: SolanaProvider;
2077
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
2078
+ instructions: readonly _solana_kit.IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
2079
+ version: 0;
2080
+ }>, "feePayer">>;
2081
+
2082
+ declare const transferToken: ({ from, to, mint, amount, decimals, provider, }: {
2083
+ from: string;
2084
+ to: string;
2085
+ mint: string;
2086
+ amount: bigint;
2087
+ decimals: number;
2088
+ provider: SolanaProvider;
2089
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
2090
+ instructions: readonly IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
2091
+ version: 0;
2092
+ }>, "feePayer">>;
2093
+
2094
+ declare const getSolanaDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
2095
+
2096
+ declare const getSolanaPublicKeyFromLedger: (accountIndex: number, transport: Transport) => Promise<Buffer>;
2097
+
2098
+ /**
2099
+ * Helper to abstract confirming the existence of an Associated Token Account (ATA).
2100
+ * Useful for transferring SPL tokens, as each wallet must have an ATA for each token they own.
2101
+ * If a ATA does not exist, gas estimates must include a one-time rent-exempt minimum for creating
2102
+ * and holding an ATA on-chain.
2103
+ * @param mint - The mint address of the token.
2104
+ * @param owner - The public key of the wallet owner.
2105
+ * @param provider - An instance of SolanaProvider to interact with the Solana blockchain.
2106
+ * @param tokenProgram - SPL Token program id for this mint (legacy or Token-2022). If omitted, it is resolved via RPC.
2107
+ * @returns { ataAddress: string; exists: boolean; info: SolanaAccountInfo } - The ATA address, a boolean indicating if it exists, and the account info if it does.
2108
+ */
2109
+ declare const maybeGetAssociatedTokenAccount: ({ mint, owner, provider, tokenProgram: tokenProgramOverride, }: {
2110
+ mint: string;
2111
+ owner: string;
2112
+ provider: SolanaProvider;
2113
+ tokenProgram?: Address<string> | undefined;
2114
+ }) => Promise<{
2115
+ address: Address<string>;
2116
+ exists: boolean;
2117
+ info: Readonly<{
2118
+ context: Readonly<{
2119
+ slot: bigint;
2120
+ }>;
2121
+ value: (Readonly<{
2122
+ executable: boolean;
2123
+ lamports: _solana_kit.Lamports;
2124
+ owner: Address<string>;
2125
+ rentEpoch: bigint;
2126
+ space: bigint;
2127
+ }> & Readonly<{
2128
+ data: _solana_kit.Base64EncodedDataResponse;
2129
+ }>) | null;
2130
+ }>;
2131
+ }>;
2132
+
2133
+ /**
2134
+ * Loads the mint account and returns the SPL Token program that owns it
2135
+ * (legacy Tokenkeg... or Token-2022 TokenzQd...).
2136
+ */
2137
+ declare const resolveTokenProgramForMint: ({ mint, provider, }: {
2138
+ mint: string;
2139
+ provider: SolanaProvider;
2140
+ }) => Promise<Address>;
2141
+
2142
+ declare class SolanaSigner {
2143
+ #private;
2144
+ constructor(privateKey: Buffer);
2145
+ static fromMnemonic(mnemonic: string, accountIndex: number): SolanaSigner;
2146
+ /**
2147
+ * @param message Base-64 encoded message bytes
2148
+ * @returns Base-64 encoded signature
2149
+ */
2150
+ signMessage(message: string): Promise<string>;
2151
+ /**
2152
+ * @param base64EncodedTx Base-64 encoded transaction
2153
+ * @param provider SolanaProvider
2154
+ * @returns
2155
+ */
2156
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2157
+ }
2158
+
2159
+ declare class SolanaLedgerSigner {
2160
+ #private;
2161
+ constructor(accountIndex: number, transport: Transport);
2162
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2163
+ }
2164
+
2165
+ export { index as Avalanche, BitcoinLedgerWallet, BitcoinProvider, BitcoinProviderAbstract, BitcoinWallet, BitcoinWalletAbstract, BitcoinWalletVoid, BtcNetworks, DerivationPath, ETH_ACCOUNT_PATH, ETH_COIN_PATH, JsonRpcBatchInternal, LedgerSigner$1 as LedgerSigner, SolanaLedgerSigner, SolanaSigner, addEncodedSigToPsbt, compileSolanaTx, createPSBTV2, createPsbt, createTransferTx, createWalletPolicy, deserializeTransactionMessage, formatAddressForNetworkBech32, getAddressDerivationPath, getAddressFromXPub, getAddressPrivateKeyFromXPriv, getAddressPublicKeyFromXPub, getAppEth, getBech32Address, getBech32AddressFromXPub, getBtcAddressFromPubKey, getEVMDerivationPath, getEvmAddressFromPubKey, getLedgerAppInfo, getLedgerExtendedPublicKey, getMaxTransferAmount, getPubKeyFromTransport, getPublicKeyFromPrivateKey, getSolanaDerivationPath, getSolanaProvider, getSolanaPublicKeyFromLedger, getTransferTxDetails, getVoidSigner, getWalletFromMnemonic, getXpubFromMnemonic$1 as getXpubFromMnemonic, isERC20Transfer, isNativeTxn, isSolanaProvider, maybeGetAssociatedTokenAccount, omitUndefinedKeys, onBalanceChange, openLedgerApp, psbt2ToPsbt0, quitLedgerApp, resolveTokenProgramForMint, selectUtxos, serializeSolanaTx, transferSol, transferToken };
2166
+ export type { BitcoinHistoryTx, BitcoinInputUTXO, BitcoinInputUTXOWithOptionalScript, BitcoinLedgerInputUTXO, BitcoinOutputUTXO, BitcoinTx, SolanaProvider };