@avalabs/core-wallets-sdk 3.1.0-alpha.7 → 3.1.0-alpha.70

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 (130) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +438 -172
  3. package/esm/Avalanche/index.d.ts +5 -4
  4. package/esm/Avalanche/index.js +1 -1
  5. package/esm/Avalanche/models.d.ts +47 -6
  6. package/esm/Avalanche/models.js +1 -1
  7. package/esm/Avalanche/providers/AbstractProvider.d.ts +4 -9
  8. package/esm/Avalanche/providers/AbstractProvider.js +1 -1
  9. package/esm/Avalanche/providers/JsonRpcProvider.d.ts +2 -1
  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 -0
  14. package/esm/Avalanche/utils/addSignaturesToAvalancheTx.js +1 -1
  15. package/esm/Avalanche/utils/appendDisableAuthAddressMaps.js +1 -0
  16. package/esm/Avalanche/utils/convertGlacierUtxo.d.ts +5 -4
  17. package/esm/Avalanche/utils/convertGlacierUtxo.js +1 -1
  18. package/esm/Avalanche/utils/createAvalancheEvmUnsignedTx.d.ts +3 -2
  19. package/esm/Avalanche/utils/createAvalancheEvmUnsignedTx.js +1 -1
  20. package/esm/Avalanche/utils/createAvalancheUnsignedTx.d.ts +1 -1
  21. package/esm/Avalanche/utils/createAvalancheUnsignedTx.js +1 -1
  22. package/esm/Avalanche/utils/getAssetBalance.d.ts +2 -1
  23. package/esm/Avalanche/utils/getAssetBalance.js +1 -1
  24. package/esm/Avalanche/utils/getAvalancheDerivationPath.d.ts +3 -0
  25. package/esm/Avalanche/utils/getAvalancheDerivationPath.js +1 -0
  26. package/esm/Avalanche/utils/getChainAliasByChainId.js +1 -1
  27. package/esm/Avalanche/utils/getPchainUnixNow.d.ts +3 -1
  28. package/esm/Avalanche/utils/getPchainUnixNow.js +1 -1
  29. package/esm/Avalanche/utils/getStakedAssetBalance.d.ts +2 -1
  30. package/esm/Avalanche/utils/getTxOutputAddresses.js +1 -1
  31. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.d.ts +4 -2
  32. package/esm/Avalanche/utils/getUtxosByTxFromGlacier.js +1 -1
  33. package/esm/Avalanche/utils/getVmByChainAlias.d.ts +1 -1
  34. package/esm/Avalanche/utils/getXpubFromMnemonic.d.ts +1 -1
  35. package/esm/Avalanche/utils/getXpubFromMnemonic.js +1 -1
  36. package/esm/Avalanche/utils/handleSubnetAuth.js +1 -1
  37. package/esm/Avalanche/utils/orderBy.js +1 -0
  38. package/esm/Avalanche/utils/parseAvalancheTx.d.ts +12 -1
  39. package/esm/Avalanche/utils/parseAvalancheTx.js +1 -1
  40. package/esm/Avalanche/utils/parsers/index.js +1 -1
  41. package/esm/Avalanche/utils/parsers/parseAddPermissionlessDelegatorTx.js +1 -1
  42. package/esm/Avalanche/utils/parsers/parseAddPermissionlessValidatorTx.js +1 -1
  43. package/esm/Avalanche/utils/parsers/parseAddSubnetValidorTx.js +1 -1
  44. package/esm/Avalanche/utils/parsers/parseBaseTx.js +1 -1
  45. package/esm/Avalanche/utils/parsers/parseConvertSubnetToL1Tx.js +1 -0
  46. package/esm/Avalanche/utils/parsers/parseCreateChainTx.js +1 -1
  47. package/esm/Avalanche/utils/parsers/parseCreateSubnetTx.js +1 -1
  48. package/esm/Avalanche/utils/parsers/parseDisableL1ValidatorTx.js +1 -0
  49. package/esm/Avalanche/utils/parsers/parseExportTx.js +1 -1
  50. package/esm/Avalanche/utils/parsers/parseImportTx.js +1 -1
  51. package/esm/Avalanche/utils/parsers/parseIncreaseL1ValidatorBalanceTx.js +1 -0
  52. package/esm/Avalanche/utils/parsers/parseRegisterL1ValidatorTx.js +1 -0
  53. package/esm/Avalanche/utils/parsers/parseRemoveSubnetValidatorTx.js +1 -1
  54. package/esm/Avalanche/utils/parsers/parseSetL1ValidatorWeightTx.js +1 -0
  55. package/esm/Avalanche/utils/parsers/parseTransferSubnetOwnershipTx.js +1 -1
  56. package/esm/Avalanche/utils/parsers/utils/chainIdToVm.js +1 -1
  57. package/esm/Avalanche/utils/populateCredential.js +1 -1
  58. package/esm/Avalanche/utils/sortUTXOs.d.ts +6 -4
  59. package/esm/Avalanche/utils/sortUTXOs.js +1 -1
  60. package/esm/Avalanche/utils/txSizeLimits.d.ts +10 -3
  61. package/esm/Avalanche/utils/txSizeLimits.js +1 -1
  62. package/esm/Avalanche/wallets/AddressWallet.js +1 -1
  63. package/esm/Avalanche/wallets/SimpleSigner.d.ts +1 -1
  64. package/esm/Avalanche/wallets/SimpleSigner.js +1 -1
  65. package/esm/Avalanche/wallets/StaticSigner.js +1 -1
  66. package/esm/Avalanche/wallets/TxBuilderTypes.d.ts +179 -0
  67. package/esm/Avalanche/wallets/WalletAbstract.d.ts +17 -22
  68. package/esm/Avalanche/wallets/WalletAbstract.js +1 -1
  69. package/esm/Avalanche/wallets/WalletVoid.js +1 -1
  70. package/esm/Avalanche/wallets/ledger/LedgerLiveSigner.d.ts +16 -0
  71. package/esm/Avalanche/wallets/ledger/LedgerLiveSigner.js +1 -0
  72. package/esm/Avalanche/wallets/ledger/LedgerSigner.js +1 -1
  73. package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.d.ts +1 -1
  74. package/esm/Avalanche/wallets/ledger/SimpleLedgerSigner.js +1 -1
  75. package/esm/Avalanche/wallets/ledger/models.d.ts +1 -1
  76. package/esm/Avalanche/wallets/legacy/LedgerWallet.js +1 -1
  77. package/esm/Avalanche/wallets/legacy/MnemonicWallet.js +1 -1
  78. package/esm/Avalanche/wallets/legacy/MnemonicWalletVoid.js +1 -1
  79. package/esm/Avalanche/wallets/models.d.ts +1 -1
  80. package/esm/BitcoinVM/index.d.ts +5 -0
  81. package/esm/BitcoinVM/index.js +1 -0
  82. package/esm/BitcoinVM/models.d.ts +1 -1
  83. package/esm/BitcoinVM/providers/BitcoinProvider.d.ts +4 -3
  84. package/esm/BitcoinVM/providers/BitcoinProvider.js +1 -1
  85. package/esm/BitcoinVM/providers/BitcoinProviderAbstract.d.ts +1 -0
  86. package/esm/BitcoinVM/utils/getBech32AddressFromXPub.js +1 -1
  87. package/esm/BitcoinVM/wallets/BitcoinWallet.js +1 -1
  88. package/esm/BitcoinVM/wallets/BitcoinWalletLedger.js +1 -1
  89. package/esm/BitcoinVM/wallets/models.d.ts +1 -1
  90. package/esm/EVM/LedgerSigner.js +1 -1
  91. package/esm/EVM/utils/blockPolling.js +1 -1
  92. package/esm/EVM/utils/getEvmDerivationPath.d.ts +5 -0
  93. package/esm/EVM/utils/getEvmDerivationPath.js +1 -0
  94. package/esm/EVM/utils/getWalletFromMnemonic.js +1 -1
  95. package/esm/SolanaVM/utils/compileSolanaTx.d.ts +9 -0
  96. package/esm/SolanaVM/utils/compileSolanaTx.js +1 -0
  97. package/esm/SolanaVM/utils/derivationPath.d.ts +3 -0
  98. package/esm/SolanaVM/utils/derivationPath.js +1 -0
  99. package/esm/SolanaVM/utils/deserializeSolanaTx.d.ts +6 -0
  100. package/esm/SolanaVM/utils/deserializeSolanaTx.js +1 -0
  101. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.d.ts +5 -0
  102. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.js +1 -0
  103. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.d.ts +37 -0
  104. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.js +1 -0
  105. package/esm/SolanaVM/utils/serializeSolanaTx.d.ts +6 -0
  106. package/esm/SolanaVM/utils/serializeSolanaTx.js +1 -0
  107. package/esm/SolanaVM/utils/solanaProvider.d.ts +11 -0
  108. package/esm/SolanaVM/utils/solanaProvider.js +1 -0
  109. package/esm/SolanaVM/utils/transferSol.d.ts +14 -0
  110. package/esm/SolanaVM/utils/transferSol.js +1 -0
  111. package/esm/SolanaVM/utils/transferToken.d.ts +17 -0
  112. package/esm/SolanaVM/utils/transferToken.js +1 -0
  113. package/esm/SolanaVM/wallets/SolanaLedgerSigner.d.ts +10 -0
  114. package/esm/SolanaVM/wallets/SolanaLedgerSigner.js +1 -0
  115. package/esm/SolanaVM/wallets/SolanaSigner.d.ts +20 -0
  116. package/esm/SolanaVM/wallets/SolanaSigner.js +1 -0
  117. package/esm/abis/erc20.abi.js +1 -0
  118. package/esm/index.d.ts +32 -20
  119. package/esm/index.js +1 -1
  120. package/esm/utils/assertFeeStateProvided.js +1 -0
  121. package/esm/utils/getAddressDerivationPath.d.ts +8 -2
  122. package/esm/utils/getAddressDerivationPath.js +1 -1
  123. package/esm/utils/getPubKeyFromTransport.js +1 -1
  124. package/package.json +31 -13
  125. package/dist/index.js +0 -1
  126. package/esm/Avalanche/utils/getUtxoInfo.d.ts +0 -13
  127. package/esm/Avalanche/utils/getUtxoInfo.js +0 -1
  128. package/esm/Avalanche/utils/parsers/parseAddDelegatorTx.js +0 -1
  129. package/esm/Avalanche/utils/parsers/parseAddValidatorTx.js +0 -1
  130. package/esm/Avalanche/utils/parsers/parseTransformSubnetTx.js +0 -1
package/dist/index.d.ts CHANGED
@@ -1,20 +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, avaxSerial, utils, UnsignedTx, EVMUnsignedTx, Utxo, 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
9
  import { Bip32Path } from 'bip32-path';
14
10
  import AppZondax, { ResponseBase } from '@avalabs/hw-app-avalanche';
15
11
  import { BIP32Interface } from 'bip32';
16
- import { Utxo as Utxo$1, PChainUtxo } from '@avalabs/glacier-sdk';
17
- import { WalletAbstract as WalletAbstract$1 } from 'Avalanche/wallets';
12
+ import { Utxo as Utxo$1, PChainUtxo, Network as Network$2 } from '@avalabs/glacier-sdk';
13
+ import * as _avalabs_avalanchejs_dist_serializable_common_types from '@avalabs/avalanchejs/dist/serializable/common/types';
14
+ import * as _solana_kit from '@solana/kit';
15
+ import { CompilableTransactionMessage, Transaction as Transaction$2, IInstruction } from '@solana/kit';
16
+ import { Transaction } from '@ledgerhq/hw-app-btc/lib/types';
17
+ import { WalletPolicy, PsbtV2 } from 'ledger-bitcoin';
18
18
 
19
19
  /**
20
20
  * Custom Bitcoin UTXO interface.
@@ -147,6 +147,7 @@ declare abstract class BitcoinProviderAbstract {
147
147
  medium: number;
148
148
  low: number;
149
149
  }>;
150
+ abstract getAddressFromScript(script: string): Promise<string>;
150
151
  }
151
152
 
152
153
  declare class BitcoinProvider extends BitcoinProviderAbstract {
@@ -155,11 +156,12 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
155
156
  private readonly extraParams?;
156
157
  constructor(isMainnet?: boolean, apiKey?: string, explorerUrl?: string, nodeUrl?: string, extraParams?: Record<string, string> | undefined);
157
158
  getTxHex(txHash: string): Promise<string>;
158
- getUTXOs(address: string, withScripts?: boolean): Promise<{
159
+ getUTXOs(address: string, withScripts?: boolean, skipBatch?: boolean): Promise<{
159
160
  confirmed: BitcoinInputUTXOWithOptionalScript[];
160
161
  unconfirmed: BitcoinInputUTXOWithOptionalScript[];
161
162
  }>;
162
- getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[]): Promise<BitcoinInputUTXO[]>;
163
+ getAddressFromScript(script: string): Promise<string>;
164
+ getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[], skipBatch?: boolean): Promise<BitcoinInputUTXO[]>;
163
165
  private _parseUtxo;
164
166
  getBalances(address: string): Promise<{
165
167
  available: bigint;
@@ -167,7 +169,7 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
167
169
  final: bigint;
168
170
  }>;
169
171
  getChainHeight(): Promise<number>;
170
- getFeeRates(): Promise<{
172
+ getFeeRates(skipBatch?: boolean): Promise<{
171
173
  low: number;
172
174
  medium: number;
173
175
  high: number;
@@ -466,6 +468,8 @@ declare function getEvmAddressFromPubKey(pubKey: Buffer): string;
466
468
  */
467
469
  declare function getBtcAddressFromPubKey(pubKey: Buffer, network: Network): string;
468
470
 
471
+ declare const getEVMDerivationPath: (accountIndex: number, pathSpec: DerivationPath, withRoot?: boolean) => string;
472
+
469
473
  declare class LedgerSigner$1 extends AbstractSigner {
470
474
  readonly type: string;
471
475
  readonly path: string;
@@ -557,17 +561,20 @@ declare class BitcoinWalletVoid extends BitcoinWalletAbstract {
557
561
  signTx(tx: any): any;
558
562
  }
559
563
 
564
+ declare const BtcNetworks: typeof networks;
565
+
560
566
  type ChainIDAlias = 'X' | 'P' | 'C';
561
567
  /**
562
568
  * Types for parsed transaction
563
569
  */
564
- type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx | UnknownTx;
570
+ type Tx = AddValidatorTx | AddDelegatorTx | ExportTx | ImportTx | BaseTx$1 | CreateSubnetTx | CreateChainTx | AddSubnetValidatorTx | RemoveSubnetValidatorTx | AddPermissionlessValidatorTx | AddPermissionlessDelegatorTx | TransformSubnetTx | TransferSubnetOwnershipTx$1 | ConvertSubnetToL1Tx | RegisterL1ValidatorTx | SetL1ValidatorWeightTx | DisableL1ValidatorTx | IncreaseL1ValidatorBalanceTx | UnknownTx;
565
571
  interface FeeData {
566
572
  totalAvaxBurned: bigint;
567
573
  totalAvaxOutput: bigint;
568
574
  totalAvaxInput: bigint;
569
575
  isValidAvaxBurnedAmount: boolean;
570
576
  txFee: bigint;
577
+ baseFee: bigint;
571
578
  }
572
579
  interface TxBase extends FeeData {
573
580
  type: string;
@@ -581,6 +588,11 @@ declare enum TxType {
581
588
  Import = "import",
582
589
  CreateSubnet = "create_subnet",
583
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",
584
596
  AddSubnetValidator = "add_subnet_validator",
585
597
  RemoveSubnetValidator = "remove_subnet_validator",
586
598
  AddPermissionlessValidator = "add_permissionless_validator",
@@ -589,7 +601,7 @@ declare enum TxType {
589
601
  TransferSubnetOwnership = "transfer_subnet_ownership",
590
602
  Unknown = "unknown"
591
603
  }
592
- interface BaseTx extends TxBase {
604
+ interface BaseTx$1 extends TxBase {
593
605
  type: TxType.Base;
594
606
  chain: VM;
595
607
  outputs: {
@@ -659,6 +671,35 @@ interface RemoveSubnetValidatorTx extends TxBase {
659
671
  nodeID: string;
660
672
  subnetID: string;
661
673
  }
674
+ interface ConvertSubnetToL1Tx extends TxBase {
675
+ type: TxType.ConvertSubnetToL1;
676
+ managerAddress: string;
677
+ validators: {
678
+ nodeId: string;
679
+ stake: bigint;
680
+ balance: bigint;
681
+ remainingBalanceOwners: string[];
682
+ deactivationOwners: string[];
683
+ }[];
684
+ subnetID: string;
685
+ chainID: string;
686
+ }
687
+ interface RegisterL1ValidatorTx extends TxBase {
688
+ type: TxType.RegisterL1Validator;
689
+ balance: bigint;
690
+ }
691
+ interface SetL1ValidatorWeightTx extends TxBase {
692
+ type: TxType.SetL1ValidatorWeight;
693
+ }
694
+ interface IncreaseL1ValidatorBalanceTx extends TxBase {
695
+ type: TxType.IncreaseL1ValidatorBalance;
696
+ balance: bigint;
697
+ validationId: string;
698
+ }
699
+ interface DisableL1ValidatorTx extends TxBase {
700
+ type: TxType.DisableL1Validator;
701
+ validationId: string;
702
+ }
662
703
  interface AddPermissionlessValidatorTx extends TxBase {
663
704
  type: TxType.AddPermissionlessValidator;
664
705
  nodeID: string;
@@ -668,7 +709,7 @@ interface AddPermissionlessValidatorTx extends TxBase {
668
709
  rewardOwner: OutputOwners;
669
710
  delegationRewardOwner: OutputOwners;
670
711
  stake: bigint;
671
- stakeOuts: TransferableOutput[];
712
+ stakeOuts: readonly TransferableOutput[];
672
713
  subnetID: string;
673
714
  publicKey: undefined | string;
674
715
  signature: undefined | string;
@@ -682,7 +723,7 @@ interface AddPermissionlessDelegatorTx extends TxBase {
682
723
  stake: bigint;
683
724
  subnetID: string;
684
725
  delegatorRewardsOwner: OutputOwners;
685
- stakeOuts: TransferableOutput[];
726
+ stakeOuts: readonly TransferableOutput[];
686
727
  }
687
728
  interface TransformSubnetTx extends TxBase {
688
729
  type: TxType.TransformSubnet;
@@ -697,11 +738,11 @@ interface TransformSubnetTx extends TxBase {
697
738
  minStakeDuration: number;
698
739
  maxStakeDuration: number;
699
740
  minDelegationFee: number;
700
- minDelegatorStake: number;
741
+ minDelegatorStake: bigint;
701
742
  maxValidatorWeightFactor: number;
702
743
  uptimeRequirement: number;
703
744
  }
704
- interface TransferSubnetOwnershipTx extends TxBase {
745
+ interface TransferSubnetOwnershipTx$1 extends TxBase {
705
746
  type: TxType.TransferSubnetOwnership;
706
747
  subnetID: string;
707
748
  threshold: number;
@@ -717,7 +758,12 @@ declare function isAddValidatorTx(tx: Tx): tx is AddValidatorTx;
717
758
  declare function isAddDelegatorTx(tx: Tx): tx is AddDelegatorTx;
718
759
  declare function isExportTx(tx: Tx): tx is ExportTx;
719
760
  declare function isImportTx(tx: Tx): tx is ImportTx;
720
- declare function isBaseTx(tx: Tx): tx is BaseTx;
761
+ declare function isBaseTx(tx: Tx): tx is BaseTx$1;
762
+ declare function isConvertSubnetToL1Tx(tx: Tx): tx is ConvertSubnetToL1Tx;
763
+ declare function isRegisterL1ValidatorTx(tx: Tx): tx is RegisterL1ValidatorTx;
764
+ declare function isSetL1ValidatorWeightTx(tx: Tx): tx is SetL1ValidatorWeightTx;
765
+ declare function isDisableL1ValidatorTx(tx: Tx): tx is DisableL1ValidatorTx;
766
+ declare function isIncreaseL1ValidatorBalance(tx: Tx): tx is IncreaseL1ValidatorBalanceTx;
721
767
  declare function isCreateSubnetTx(tx: Tx): tx is CreateSubnetTx;
722
768
  declare function isCreateChainTx(tx: Tx): tx is CreateChainTx;
723
769
  declare function isAddSubnetValidatorTx(tx: Tx): tx is AddSubnetValidatorTx;
@@ -725,17 +771,13 @@ declare function isRemoveSubnetValidatorTx(tx: Tx): tx is RemoveSubnetValidatorT
725
771
  declare function isAddPermissionlessValidatorTx(tx: Tx): tx is AddPermissionlessValidatorTx;
726
772
  declare function isAddPermissionlessDelegatorTx(tx: Tx): tx is AddPermissionlessDelegatorTx;
727
773
  declare function isTransformSubnetTx(tx: Tx): tx is TransformSubnetTx;
728
- declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx;
774
+ declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx$1;
729
775
 
730
776
  declare class AbstractProvider {
731
777
  protected baseUrl: string;
732
778
  protected context: Context.Context;
733
- evmRpc: JsonRpcProvider$1;
734
- constructor(baseUrl: string, context: Context.Context);
735
- /**
736
- * @link https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData
737
- */
738
- getEvmFeeData(): Promise<ethers.FeeData>;
779
+ fetchOptions?: RequestInit | undefined;
780
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit | undefined);
739
781
  getContext(): Context.Context;
740
782
  getChainID(chainAlias: ChainIDAlias): string;
741
783
  getNetworkID(): number;
@@ -743,6 +785,7 @@ declare class AbstractProvider {
743
785
  getApiX(): avm.AVMApi;
744
786
  getApiP(): pvm.PVMApi;
745
787
  getApiC(): evm.EVMApi;
788
+ getInfo(): info.InfoApi;
746
789
  getApi(chain: ChainIDAlias): avm.AVMApi | pvm.PVMApi | evm.EVMApi;
747
790
  getAvaxID(): string;
748
791
  getAddress(publicKey: Buffer, chain: ChainIDAlias): string;
@@ -763,10 +806,11 @@ declare class AbstractProvider {
763
806
  }
764
807
 
765
808
  declare class JsonRpcProvider extends AbstractProvider {
766
- constructor(baseUrl: string, context: Context.Context);
809
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit);
767
810
  static fromBaseURL(url: string): Promise<JsonRpcProvider>;
768
811
  static getDefaultMainnetProvider(): JsonRpcProvider;
769
812
  static getDefaultFujiProvider(): JsonRpcProvider;
813
+ static getDefaultDevnetProvider(): JsonRpcProvider;
770
814
  }
771
815
 
772
816
  /**
@@ -777,6 +821,183 @@ declare const MainnetContext: Context.Context;
777
821
  * Avalanche Fuji testnet context
778
822
  */
779
823
  declare const FujiContext: Context.Context;
824
+ declare const DevnetContext: Context.Context;
825
+
826
+ type BaseTx = {
827
+ utxoSet: utils.UtxoSet;
828
+ chain: 'X' | 'P';
829
+ toAddress: string;
830
+ amountsPerAsset: Record<string, bigint>;
831
+ feeState?: pvm.FeeState;
832
+ options?: Common.SpendOptions;
833
+ fromAddresses?: string[];
834
+ };
835
+ type ImportP = {
836
+ utxoSet: utils.UtxoSet;
837
+ sourceChain: 'X' | 'C';
838
+ toAddress?: string;
839
+ threshold?: number;
840
+ feeState?: pvm.FeeState;
841
+ locktime?: bigint;
842
+ };
843
+ type ExportP = {
844
+ amount: bigint;
845
+ utxoSet: utils.UtxoSet;
846
+ destination: 'X' | 'C';
847
+ feeState?: pvm.FeeState;
848
+ toAddress?: string;
849
+ };
850
+ type ConsolidateP = {
851
+ utxoSet: utils.UtxoSet;
852
+ amount: bigint;
853
+ feeState?: pvm.FeeState;
854
+ toAddress?: string;
855
+ options?: Common.SpendOptions;
856
+ };
857
+ type CreateSubnet = {
858
+ utxoSet: utils.UtxoSet;
859
+ rewardAddresses: string[];
860
+ feeState?: pvm.FeeState;
861
+ fromAddresses?: string[];
862
+ options?: Common.SpendOptions;
863
+ threshold?: number;
864
+ locktime?: bigint;
865
+ };
866
+ type CreateChain = {
867
+ utxoSet: utils.UtxoSet;
868
+ subnetId: string;
869
+ chainName: string;
870
+ vmID: string;
871
+ fxIds: string[];
872
+ genesisData: Record<string, unknown>;
873
+ subnetAuth: number[];
874
+ feeState?: pvm.FeeState;
875
+ options?: Common.SpendOptions;
876
+ fromAddresses?: string[];
877
+ };
878
+ type ConvertSubnetToL1 = {
879
+ utxoSet: utils.UtxoSet;
880
+ address: string;
881
+ chainId: string;
882
+ subnetId: string;
883
+ subnetAuth: number[];
884
+ options?: Common.SpendOptions;
885
+ feeState: pvm.FeeState;
886
+ fromAddresses?: string[];
887
+ validators: {
888
+ nodeId: string;
889
+ weight: bigint;
890
+ balance: bigint;
891
+ pubKey: string;
892
+ signature: string;
893
+ remainingBalanceOwner: {
894
+ addresses: string[];
895
+ threshold?: number;
896
+ };
897
+ deactivationOwner: {
898
+ addresses: string[];
899
+ threshold?: number;
900
+ };
901
+ }[];
902
+ };
903
+ type RegisterL1Validator = {
904
+ utxoSet: utils.UtxoSet;
905
+ balance: bigint;
906
+ signature: string;
907
+ feeState: pvm.FeeState;
908
+ message: string;
909
+ options?: Common.SpendOptions;
910
+ fromAddresses?: string[];
911
+ };
912
+ type SetL1ValidatorWeight = {
913
+ utxoSet: utils.UtxoSet;
914
+ feeState: pvm.FeeState;
915
+ message: string;
916
+ options?: Common.SpendOptions;
917
+ fromAddresses?: string[];
918
+ };
919
+ type DisableL1Validator = {
920
+ utxoSet: utils.UtxoSet;
921
+ feeState: pvm.FeeState;
922
+ disableAuth: number[];
923
+ validationId: string;
924
+ options?: Common.SpendOptions;
925
+ fromAddresses?: string[];
926
+ };
927
+ type IncreaseL1ValidatorBalance = {
928
+ utxoSet: utils.UtxoSet;
929
+ feeState: pvm.FeeState;
930
+ balance: bigint;
931
+ validationId: string;
932
+ options?: Common.SpendOptions;
933
+ fromAddresses?: string[];
934
+ };
935
+ type AddSubnetValidator = {
936
+ utxoSet: utils.UtxoSet;
937
+ nodeId: string;
938
+ start: bigint;
939
+ end: bigint;
940
+ weight: bigint;
941
+ subnetId: string;
942
+ subnetAuth: number[];
943
+ feeState?: pvm.FeeState;
944
+ fromAddresses?: string[];
945
+ options?: Common.SpendOptions;
946
+ };
947
+ type AddPermissionlessValidator = {
948
+ utxoSet: utils.UtxoSet;
949
+ nodeId: string;
950
+ start: bigint;
951
+ end: bigint;
952
+ weight: bigint;
953
+ subnetId: string;
954
+ shares: number;
955
+ fromAddresses?: string[];
956
+ rewardAddresses?: string[];
957
+ delegatorRewardAddresses?: string[];
958
+ publicKey?: Buffer;
959
+ signature?: Buffer;
960
+ options?: Common.SpendOptions;
961
+ stakingAssetId?: string;
962
+ locktime?: bigint;
963
+ threshold?: number;
964
+ feeState?: pvm.FeeState;
965
+ };
966
+ type AddPermissionlessDelegator = {
967
+ utxoSet: utils.UtxoSet;
968
+ nodeId: string;
969
+ start: bigint;
970
+ end: bigint;
971
+ weight: bigint;
972
+ subnetId: string;
973
+ fromAddresses?: string[];
974
+ rewardAddresses?: string[];
975
+ options?: Common.SpendOptions;
976
+ locktime?: bigint;
977
+ feeState?: pvm.FeeState;
978
+ stakingAssetId?: string;
979
+ threshold?: number;
980
+ };
981
+ type RemoveSubnetValidator = {
982
+ utxoSet: utils.UtxoSet;
983
+ nodeId: string;
984
+ subnetId: string;
985
+ subnetAuth: number[];
986
+ feeState?: pvm.FeeState;
987
+ fromAddresses?: string[];
988
+ options?: Common.SpendOptions;
989
+ };
990
+ type TransferSubnetOwnershipTx = {
991
+ utxoSet: utils.UtxoSet;
992
+ subnetId: string;
993
+ subnetAuth: number[];
994
+ subnetOwners: string[];
995
+ feeState?: pvm.FeeState;
996
+ fromAddresses?: string[];
997
+ options?: Common.SpendOptions;
998
+ threshold?: number;
999
+ locktime?: bigint;
1000
+ };
780
1001
 
781
1002
  /**
782
1003
  * An abstract class that that is shared by all wallet classes.
@@ -824,7 +1045,7 @@ declare abstract class WalletAbstract {
824
1045
  */
825
1046
  getAtomicUTXOs(chain: ChainIDAlias, source: ChainIDAlias): Promise<utils.UtxoSet>;
826
1047
  exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
827
- importP(utxos: utils.UtxoSet, sourceChain: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
1048
+ importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): Common.UnsignedTx;
828
1049
  importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
829
1050
  /**
830
1051
  *
@@ -844,10 +1065,6 @@ declare abstract class WalletAbstract {
844
1065
  * @param toAddress
845
1066
  */
846
1067
  exportC(amount: bigint, destination: 'X' | 'P', nonce: bigint, baseFee: bigint, toAddress?: string): _avalabs_avalanchejs.EVMUnsignedTx;
847
- /**
848
- * Get the nonce of this wallet's C chain address
849
- */
850
- getNonce(): Promise<number>;
851
1068
  /**
852
1069
  * Export the given amount of AVAX from the P chain. Export fee is automatically added.
853
1070
  * @param amount
@@ -855,18 +1072,17 @@ declare abstract class WalletAbstract {
855
1072
  * @param destination
856
1073
  * @param toAddress
857
1074
  */
858
- exportP(amount: bigint, utxoSet: utils.UtxoSet, destination: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
859
- addValidator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, delegationFee: number, config?: {
860
- rewardAddress?: string;
861
- }): Common.UnsignedTx;
862
- addDelegator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, config?: {
863
- rewardAddress?: string;
864
- }): Common.UnsignedTx;
865
- consolidateP(utxoSet: utils.UtxoSet, amount: bigint, toAddress?: string, options?: Common.SpendOptions): Common.UnsignedTx;
866
- baseTX(utxoSet: utils.UtxoSet, chain: 'X' | 'P', toAddress: string, amountsPerAsset: Record<string, bigint>, options?: Common.SpendOptions, fromAddresses?: string[]): Common.UnsignedTx;
867
- 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;
868
- createSubnet(utxoSet: utils.UtxoSet, rewardAddresses: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
869
- addSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
1075
+ exportP({ amount, utxoSet, destination, feeState, toAddress }: ExportP): Common.UnsignedTx;
1076
+ consolidateP({ utxoSet, amount, feeState, toAddress, options, }: ConsolidateP): Common.UnsignedTx;
1077
+ baseTX({ utxoSet, chain, toAddress, amountsPerAsset, feeState, options, fromAddresses, }: BaseTx): Common.UnsignedTx;
1078
+ convertSubnetToL1({ utxoSet, chainId, subnetId, subnetAuth, feeState, address, validators, options, fromAddresses, }: ConvertSubnetToL1): Common.UnsignedTx;
1079
+ registerL1Validator({ utxoSet, balance, signature, message, feeState, fromAddresses, options, }: RegisterL1Validator): Common.UnsignedTx;
1080
+ setL1ValidatorWeight({ utxoSet, feeState, message, options, fromAddresses, }: SetL1ValidatorWeight): Common.UnsignedTx;
1081
+ disableL1Validator({ utxoSet, feeState, options, fromAddresses, disableAuth, validationId, }: DisableL1Validator): Common.UnsignedTx;
1082
+ increaseL1ValidatorBalance({ utxoSet, feeState, options, fromAddresses, balance, validationId, }: IncreaseL1ValidatorBalance): Common.UnsignedTx;
1083
+ createBlockchain({ utxoSet, subnetId, chainName, vmID, fxIds, genesisData, subnetAuth, feeState, options, fromAddresses, }: CreateChain): Common.UnsignedTx;
1084
+ createSubnet({ utxoSet, rewardAddresses, feeState, fromAddresses, options, threshold, locktime, }: CreateSubnet): Common.UnsignedTx;
1085
+ addSubnetValidator({ utxoSet, nodeId, start, end, weight, subnetId, subnetAuth, feeState, fromAddresses, options, }: AddSubnetValidator): Common.UnsignedTx;
870
1086
  /**
871
1087
  *
872
1088
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -883,7 +1099,7 @@ declare abstract class WalletAbstract {
883
1099
  * @param signature the BLS signature, If the subnet is the primary network. Can be found in the Node on startup.
884
1100
  * @param options
885
1101
  */
886
- addPermissionlessValidator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, shares: number, fromAddresses?: string[], rewardAddresses?: string[], delegatorRewardAddresses?: string[], publicKey?: Buffer, signature?: Buffer, options?: Common.SpendOptions): Common.UnsignedTx;
1102
+ addPermissionlessValidator({ utxoSet, nodeId, start, end, weight, subnetId, shares, feeState, fromAddresses, rewardAddresses, delegatorRewardAddresses, publicKey, signature, options, threshold, locktime, stakingAssetId, }: AddPermissionlessValidator): Common.UnsignedTx;
887
1103
  /**
888
1104
  *
889
1105
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -896,10 +1112,9 @@ declare abstract class WalletAbstract {
896
1112
  * @param rewardAddresses Will use active address if not provided. Given addresses will share the reward UTXO.
897
1113
  * @param options
898
1114
  */
899
- addPermissionlessDelegator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, fromAddresses?: string[], rewardAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
900
- removeSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
901
- transferSubnetOwnershipTx(utxoSet: utils.UtxoSet, subnetId: string, subnetAuth: number[], subnetOwners: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
902
- 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;
1115
+ addPermissionlessDelegator({ utxoSet, nodeId, start, end, weight, subnetId, fromAddresses, rewardAddresses, options, locktime, feeState, threshold, stakingAssetId, }: AddPermissionlessDelegator): Common.UnsignedTx;
1116
+ removeSubnetValidator({ utxoSet, nodeId, subnetId, subnetAuth, fromAddresses, feeState, options, }: RemoveSubnetValidator): Common.UnsignedTx;
1117
+ transferSubnetOwnershipTx({ utxoSet, subnetId, subnetAuth, subnetOwners, feeState, fromAddresses, options, threshold, locktime, }: TransferSubnetOwnershipTx): Common.UnsignedTx;
903
1118
  protected constructor(provider: AbstractProvider);
904
1119
  }
905
1120
 
@@ -1221,7 +1436,7 @@ declare class StaticSigner extends WalletVoid implements Signer {
1221
1436
  */
1222
1437
  declare class SimpleSigner implements Signer {
1223
1438
  /**
1224
- * Node for `m/44'/9000'/0'`
1439
+ * Node for `m/44'/9000'/n'`
1225
1440
  * @private {BIP32Interface}
1226
1441
  */
1227
1442
  private accountNodeXP;
@@ -1324,7 +1539,7 @@ declare class SimpleLedgerSigner implements Signer {
1324
1539
  private accountNode;
1325
1540
  /**
1326
1541
  * @param {number} activeAccountIndex - the index of the primary account used for static signing
1327
- * @param {string} xpubXP - optional extended public key of `m/44'/9000'/0`
1542
+ * @param {string} xpubXP - optional extended public key of `m/44'/9000'/${activeAccountIndex}`
1328
1543
  */
1329
1544
  constructor(activeAccountIndex: number, provider: JsonRpcProvider, xpubXP?: string);
1330
1545
  private reSerializeTx;
@@ -1338,6 +1553,18 @@ declare class SimpleLedgerSigner implements Signer {
1338
1553
  signMessage(request: SignMessageRequest): Promise<Buffer>;
1339
1554
  }
1340
1555
 
1556
+ /**
1557
+ * Ledger signer that can use multiple LedgerLive derivation paths for signing transactions.
1558
+ */
1559
+ declare class LedgerLiveSigner implements Signer {
1560
+ #private;
1561
+ private accountIndices;
1562
+ constructor(accountIndices: number[]);
1563
+ signMessage(request: SignMessageRequest): Promise<Buffer>;
1564
+ signTx(txRequest: SignTxRequest): Promise<UnsignedTx>;
1565
+ signTxBuffer(txRequest: SignTxBufferRequest): Promise<Buffer[]>;
1566
+ }
1567
+
1341
1568
  declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAlias, provider, utxos, }: {
1342
1569
  transactionHex: string;
1343
1570
  signatures: Uint8Array[];
@@ -1350,15 +1577,16 @@ declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAl
1350
1577
  }>;
1351
1578
 
1352
1579
  type GlacierOutput = Utxo$1 | PChainUtxo;
1353
- declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, isTestnet: boolean) => Utxo;
1580
+ declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, network: Network$2) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
1354
1581
 
1355
1582
  type Params$2 = {
1356
1583
  txBytes: Uint8Array;
1357
1584
  fromAddress: string;
1358
1585
  vm: VM;
1586
+ credentials?: Credential[];
1359
1587
  utxos: Utxo[];
1360
1588
  };
1361
- declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, utxos, }: Params$2) => Promise<UnsignedTx>;
1589
+ declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, credentials, utxos, }: Params$2) => Promise<UnsignedTx>;
1362
1590
 
1363
1591
  type Params$1 = {
1364
1592
  tx: avaxSerial.AvaxTx;
@@ -1432,7 +1660,7 @@ declare function getAssetBalance(utxoSet: utils.UtxoSet, assetID: string): GetAv
1432
1660
  /**
1433
1661
  * Get the current p-chain timestamp in unix
1434
1662
  */
1435
- declare function getPchainUnixNow(isTestnet: boolean): Promise<bigint>;
1663
+ declare function getPchainUnixNow(provider: AbstractProvider): Promise<bigint>;
1436
1664
 
1437
1665
  interface GetStakedAvaxBalanceDict {
1438
1666
  /**
@@ -1454,33 +1682,23 @@ declare function getStakeForAddresses(addresses: string[], api: pvm.PVMApi): Pro
1454
1682
  */
1455
1683
  declare function getUnixNow(): bigint;
1456
1684
 
1457
- type UtxoInfo = {
1458
- utxoId: string;
1459
- assetId: string;
1460
- locktime: bigint;
1461
- stakeableLocktime: bigint;
1462
- threshold: number;
1463
- amount: bigint;
1464
- };
1465
- declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
1466
-
1467
1685
  type Params = {
1468
1686
  transactionHex: string;
1469
1687
  chainAlias: ChainIDAlias;
1470
- isTestnet: boolean;
1688
+ network: Network$2;
1471
1689
  url: string;
1472
1690
  token?: string;
1473
1691
  headers?: Record<string, string>;
1474
1692
  };
1475
- declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, isTestnet, url, token, headers, }: Params) => Promise<Utxo[]>;
1693
+ declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
1476
1694
 
1477
- declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
1695
+ declare const getVmByChainAlias: (chainAlias: string) => "AVM" | "EVM" | "PVM";
1478
1696
 
1479
1697
  /**
1480
1698
  * Get the xpub for m/44'/9000'/0' from the given mnemonic
1481
1699
  * @param mnemonic
1482
1700
  */
1483
- declare function getXpubFromMnemonic(mnemonic: string): string;
1701
+ declare function getXpubFromMnemonic(mnemonic: string, accountIndex: number): string;
1484
1702
 
1485
1703
  /**
1486
1704
  * Verify the given address is a valid Avalanche bech32 address
@@ -1489,10 +1707,20 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
1489
1707
  */
1490
1708
  declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
1491
1709
 
1710
+ type ParseOptions = {
1711
+ /**
1712
+ * Tolerance percentage range where the burned amount is considered valid.
1713
+ */
1714
+ feeTolerance?: number;
1715
+ /**
1716
+ * Base fee used for validating burn amount. Priced in nAvax.
1717
+ */
1718
+ baseFee?: bigint;
1719
+ };
1492
1720
  /**
1493
1721
  * Returns human readable data from a given a transaction buffer,
1494
1722
  */
1495
- declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
1723
+ declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance, baseFee: inputBaseFee }?: ParseOptions): Promise<Tx>;
1496
1724
 
1497
1725
  declare const emptySignature: Signature;
1498
1726
  declare const populateCredential: (indices: number[], existingCredentialData?: {
@@ -1504,14 +1732,15 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
1504
1732
 
1505
1733
  /**
1506
1734
  * The UTXOs will be sorted in the following order.
1507
- * 1- LockedStakeable UTXOs with the highest locktime to lowest
1508
- * 2- Highest value UTXOs to lowest
1735
+ * 1- Highest value unlocked UTXO (for fees)
1736
+ * 2- LockedStakeable UTXOs with the highest locktime to lowest
1737
+ * 3- Rest of the unlocked UTXOs highest to lowest
1509
1738
  * @remark Does not check for locked UTXOs
1510
1739
  */
1511
1740
  declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
1512
1741
  declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
1513
- declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo[];
1514
- declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo[];
1742
+ declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1743
+ declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1515
1744
 
1516
1745
  /**
1517
1746
  * The list of transaction types supported by `getMaximumUtxoSet`.
@@ -1537,9 +1766,16 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
1537
1766
  * @param utxos - list of UTXOs to be consumed by the transaction.
1538
1767
  * @param sizeSupportedTx - one of the supported transaction types
1539
1768
  * @param limit - optional - byte size limit, defaults to 64kb.
1769
+ * @param feeState - current fee state on the chain
1540
1770
  * @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
1541
1771
  */
1542
- declare function getMaximumUtxoSet(wallet: WalletAbstract$1, utxos: Utxo[], sizeSupportedTx: SizeSupportedTx, limit?: number): Utxo[];
1772
+ declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
1773
+ wallet: WalletAbstract;
1774
+ utxos: Utxo[];
1775
+ sizeSupportedTx: SizeSupportedTx;
1776
+ limit?: number;
1777
+ feeState?: pvm.FeeState;
1778
+ }): Utxo[];
1543
1779
 
1544
1780
  /**
1545
1781
  * Verifies the given derivation path is valid, starts with `m`, and of the right length
@@ -1547,6 +1783,8 @@ declare function getMaximumUtxoSet(wallet: WalletAbstract$1, utxos: Utxo[], size
1547
1783
  */
1548
1784
  declare function verifyDerivationPath(path: string): any;
1549
1785
 
1786
+ declare const getAvalancheDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
1787
+
1550
1788
  type index_AbstractProvider = AbstractProvider;
1551
1789
  declare const index_AbstractProvider: typeof AbstractProvider;
1552
1790
  type index_AddDelegatorTx = AddDelegatorTx;
@@ -1556,10 +1794,12 @@ type index_AddSubnetValidatorTx = AddSubnetValidatorTx;
1556
1794
  type index_AddValidatorTx = AddValidatorTx;
1557
1795
  type index_AddressWallet = AddressWallet;
1558
1796
  declare const index_AddressWallet: typeof AddressWallet;
1559
- type index_BaseTx = BaseTx;
1560
1797
  type index_ChainIDAlias = ChainIDAlias;
1798
+ type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
1561
1799
  type index_CreateChainTx = CreateChainTx;
1562
1800
  type index_CreateSubnetTx = CreateSubnetTx;
1801
+ declare const index_DevnetContext: typeof DevnetContext;
1802
+ type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
1563
1803
  type index_ExportTx = ExportTx;
1564
1804
  type index_FeeData = FeeData;
1565
1805
  declare const index_FujiContext: typeof FujiContext;
@@ -1567,9 +1807,12 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
1567
1807
  type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
1568
1808
  type index_GlacierOutput = GlacierOutput;
1569
1809
  type index_ImportTx = ImportTx;
1810
+ type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
1570
1811
  type index_JsonRpcProvider = JsonRpcProvider;
1571
1812
  declare const index_JsonRpcProvider: typeof JsonRpcProvider;
1572
1813
  type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
1814
+ type index_LedgerLiveSigner = LedgerLiveSigner;
1815
+ declare const index_LedgerLiveSigner: typeof LedgerLiveSigner;
1573
1816
  type index_LedgerSigner = LedgerSigner;
1574
1817
  declare const index_LedgerSigner: typeof LedgerSigner;
1575
1818
  type index_LedgerWallet = LedgerWallet;
@@ -1580,7 +1823,10 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
1580
1823
  type index_MnemonicWalletVoid = MnemonicWalletVoid;
1581
1824
  declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
1582
1825
  declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
1826
+ type index_ParseOptions = ParseOptions;
1827
+ type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
1583
1828
  type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
1829
+ type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
1584
1830
  type index_SignMessageRequest = SignMessageRequest;
1585
1831
  type index_SignTxBufferRequest = SignTxBufferRequest;
1586
1832
  type index_SignTxRequest = SignTxRequest;
@@ -1593,14 +1839,12 @@ type index_SizeSupportedTx = SizeSupportedTx;
1593
1839
  declare const index_SizeSupportedTx: typeof SizeSupportedTx;
1594
1840
  type index_StaticSigner = StaticSigner;
1595
1841
  declare const index_StaticSigner: typeof StaticSigner;
1596
- type index_TransferSubnetOwnershipTx = TransferSubnetOwnershipTx;
1597
1842
  type index_TransformSubnetTx = TransformSubnetTx;
1598
1843
  type index_Tx = Tx;
1599
1844
  type index_TxBase = TxBase;
1600
1845
  type index_TxType = TxType;
1601
1846
  declare const index_TxType: typeof TxType;
1602
1847
  type index_UnknownTx = UnknownTx;
1603
- type index_UtxoInfo = UtxoInfo;
1604
1848
  type index_WalletAbstract = WalletAbstract;
1605
1849
  declare const index_WalletAbstract: typeof WalletAbstract;
1606
1850
  type index_WalletVoid = WalletVoid;
@@ -1614,6 +1858,7 @@ declare const index_emptySignature: typeof emptySignature;
1614
1858
  declare const index_getAddressFromXpub: typeof getAddressFromXpub;
1615
1859
  declare const index_getAddressPublicKeyFromXpub: typeof getAddressPublicKeyFromXpub;
1616
1860
  declare const index_getAssetBalance: typeof getAssetBalance;
1861
+ declare const index_getAvalancheDerivationPath: typeof getAvalancheDerivationPath;
1617
1862
  declare const index_getLedgerProvider: typeof getLedgerProvider;
1618
1863
  declare const index_getMaximumUtxoSet: typeof getMaximumUtxoSet;
1619
1864
  declare const index_getPaginatedUTXOs: typeof getPaginatedUTXOs;
@@ -1622,7 +1867,6 @@ declare const index_getStakeForAddresses: typeof getStakeForAddresses;
1622
1867
  declare const index_getStakedAssetBalance: typeof getStakedAssetBalance;
1623
1868
  declare const index_getUTXOsForAddresses: typeof getUTXOsForAddresses;
1624
1869
  declare const index_getUnixNow: typeof getUnixNow;
1625
- declare const index_getUtxoInfo: typeof getUtxoInfo;
1626
1870
  declare const index_getUtxosByTxFromGlacier: typeof getUtxosByTxFromGlacier;
1627
1871
  declare const index_getVmByChainAlias: typeof getVmByChainAlias;
1628
1872
  declare const index_getXpubFromMnemonic: typeof getXpubFromMnemonic;
@@ -1633,12 +1877,17 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
1633
1877
  declare const index_isAddValidatorTx: typeof isAddValidatorTx;
1634
1878
  declare const index_isBaseTx: typeof isBaseTx;
1635
1879
  declare const index_isBech32Address: typeof isBech32Address;
1880
+ declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
1636
1881
  declare const index_isCreateChainTx: typeof isCreateChainTx;
1637
1882
  declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
1883
+ declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
1638
1884
  declare const index_isExportTx: typeof isExportTx;
1639
1885
  declare const index_isImportTx: typeof isImportTx;
1886
+ declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
1640
1887
  declare const index_isObsidianApp: typeof isObsidianApp;
1888
+ declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
1641
1889
  declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
1890
+ declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
1642
1891
  declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
1643
1892
  declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
1644
1893
  declare const index_parseAvalancheTx: typeof parseAvalancheTx;
@@ -1650,105 +1899,23 @@ declare const index_sortUTXOsByAmountDescending: typeof sortUTXOsByAmountDescend
1650
1899
  declare const index_sortUTXOsStaking: typeof sortUTXOsStaking;
1651
1900
  declare const index_verifyDerivationPath: typeof verifyDerivationPath;
1652
1901
  declare namespace index {
1653
- export {
1654
- index_AbstractProvider as AbstractProvider,
1655
- index_AddDelegatorTx as AddDelegatorTx,
1656
- index_AddPermissionlessDelegatorTx as AddPermissionlessDelegatorTx,
1657
- index_AddPermissionlessValidatorTx as AddPermissionlessValidatorTx,
1658
- index_AddSubnetValidatorTx as AddSubnetValidatorTx,
1659
- index_AddValidatorTx as AddValidatorTx,
1660
- index_AddressWallet as AddressWallet,
1661
- index_BaseTx as BaseTx,
1662
- index_ChainIDAlias as ChainIDAlias,
1663
- index_CreateChainTx as CreateChainTx,
1664
- index_CreateSubnetTx as CreateSubnetTx,
1665
- index_ExportTx as ExportTx,
1666
- index_FeeData as FeeData,
1667
- index_FujiContext as FujiContext,
1668
- index_GetAvaxBalanceDict as GetAvaxBalanceDict,
1669
- index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
1670
- index_GlacierOutput as GlacierOutput,
1671
- index_ImportTx as ImportTx,
1672
- index_JsonRpcProvider as JsonRpcProvider,
1673
- index_LedgerGetXpubResponse as LedgerGetXpubResponse,
1674
- index_LedgerSigner as LedgerSigner,
1675
- index_LedgerWallet as LedgerWallet,
1676
- index_MainnetContext as MainnetContext,
1677
- index_MnemonicWallet as MnemonicWallet,
1678
- index_MnemonicWalletVoid as MnemonicWalletVoid,
1679
- index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
1680
- index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
1681
- index_SignMessageRequest as SignMessageRequest,
1682
- index_SignTxBufferRequest as SignTxBufferRequest,
1683
- index_SignTxRequest as SignTxRequest,
1684
- index_Signer as Signer,
1685
- index_SimpleLedgerSigner as SimpleLedgerSigner,
1686
- index_SimpleSigner as SimpleSigner,
1687
- index_SizeSupportedTx as SizeSupportedTx,
1688
- index_StaticSigner as StaticSigner,
1689
- index_TransferSubnetOwnershipTx as TransferSubnetOwnershipTx,
1690
- index_TransformSubnetTx as TransformSubnetTx,
1691
- index_Tx as Tx,
1692
- index_TxBase as TxBase,
1693
- index_TxType as TxType,
1694
- index_UnknownTx as UnknownTx,
1695
- index_UtxoInfo as UtxoInfo,
1696
- index_WalletAbstract as WalletAbstract,
1697
- index_WalletVoid as WalletVoid,
1698
- index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx,
1699
- index_convertGlacierUtxo as convertGlacierUtxo,
1700
- index_createAvalancheEvmUnsignedTx as createAvalancheEvmUnsignedTx,
1701
- index_createAvalancheUnsignedTx as createAvalancheUnsignedTx,
1702
- index_digestMessage as digestMessage,
1703
- index_emptySignature as emptySignature,
1704
- index_getAddressFromXpub as getAddressFromXpub,
1705
- index_getAddressPublicKeyFromXpub as getAddressPublicKeyFromXpub,
1706
- index_getAssetBalance as getAssetBalance,
1707
- index_getLedgerProvider as getLedgerProvider,
1708
- index_getMaximumUtxoSet as getMaximumUtxoSet,
1709
- index_getPaginatedUTXOs as getPaginatedUTXOs,
1710
- index_getPchainUnixNow as getPchainUnixNow,
1711
- index_getStakeForAddresses as getStakeForAddresses,
1712
- index_getStakedAssetBalance as getStakedAssetBalance,
1713
- index_getUTXOsForAddresses as getUTXOsForAddresses,
1714
- index_getUnixNow as getUnixNow,
1715
- index_getUtxoInfo as getUtxoInfo,
1716
- index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier,
1717
- index_getVmByChainAlias as getVmByChainAlias,
1718
- index_getXpubFromMnemonic as getXpubFromMnemonic,
1719
- index_isAddDelegatorTx as isAddDelegatorTx,
1720
- index_isAddPermissionlessDelegatorTx as isAddPermissionlessDelegatorTx,
1721
- index_isAddPermissionlessValidatorTx as isAddPermissionlessValidatorTx,
1722
- index_isAddSubnetValidatorTx as isAddSubnetValidatorTx,
1723
- index_isAddValidatorTx as isAddValidatorTx,
1724
- index_isBaseTx as isBaseTx,
1725
- index_isBech32Address as isBech32Address,
1726
- index_isCreateChainTx as isCreateChainTx,
1727
- index_isCreateSubnetTx as isCreateSubnetTx,
1728
- index_isExportTx as isExportTx,
1729
- index_isImportTx as isImportTx,
1730
- index_isObsidianApp as isObsidianApp,
1731
- index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
1732
- index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
1733
- index_isTransformSubnetTx as isTransformSubnetTx,
1734
- index_parseAvalancheTx as parseAvalancheTx,
1735
- index_populateCredential as populateCredential,
1736
- index_signedTxToHex as signedTxToHex,
1737
- index_sortUTXOsByAmount as sortUTXOsByAmount,
1738
- index_sortUTXOsByAmountAscending as sortUTXOsByAmountAscending,
1739
- index_sortUTXOsByAmountDescending as sortUTXOsByAmountDescending,
1740
- index_sortUTXOsStaking as sortUTXOsStaking,
1741
- index_verifyDerivationPath as verifyDerivationPath,
1742
- };
1902
+ 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_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_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 };
1903
+ export type { 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_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 };
1743
1904
  }
1744
1905
 
1906
+ type DerivationPathOptions = {
1907
+ withRoot?: boolean;
1908
+ pathSpec?: DerivationPath;
1909
+ };
1745
1910
  /**
1746
1911
  * Get the derivation path used by wallet addresses
1747
1912
  * @param addressIndex Which index is the address on
1748
- * @param pathSpec BIP44 vs LedgerLive
1749
1913
  * @param vm Which VM is this address on. Coin index changes between Avalanche and EVM
1914
+ * @param options
1915
+ * @param options.withRoot If false, skips the "m/" prefix. Needed for Solana Ledger app.
1916
+ * @param options.pathSpec Only relevant (and required) for EVM.
1750
1917
  */
1751
- declare function getAddressDerivationPath(addressIndex: number, pathSpec: DerivationPath, vm: 'EVM' | 'AVM' | 'PVM'): string;
1918
+ declare function getAddressDerivationPath(accountIndex: number, vm: 'SVM' | 'EVM' | 'AVM' | 'PVM', options?: DerivationPathOptions): string;
1752
1919
 
1753
1920
  /**
1754
1921
  * Get the public key from a given private key.
@@ -1793,4 +1960,103 @@ declare function openLedgerApp(transport: Transport, applicationName: string): P
1793
1960
  */
1794
1961
  declare function quitLedgerApp(transport: Transport): Promise<Buffer>;
1795
1962
 
1796
- 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 };
1963
+ declare const compileSolanaTx: (compilableTx: CompilableTransactionMessage) => Readonly<Readonly<{
1964
+ messageBytes: _solana_kit.TransactionMessageBytes;
1965
+ signatures: _solana_kit.SignaturesMap;
1966
+ }> & _solana_kit.TransactionWithLifetime>;
1967
+
1968
+ type SolanaProvider = ReturnType<typeof getSolanaProvider>;
1969
+ 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)>;
1970
+ declare const getSolanaProvider: ({ isTestnet, rpcUrl, }: {
1971
+ isTestnet: boolean;
1972
+ rpcUrl: string;
1973
+ }) => _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)>;
1974
+
1975
+ 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>)[]>>>;
1976
+
1977
+ declare const serializeSolanaTx: (tx: Transaction$2) => _solana_kit.Base64EncodedWireTransaction;
1978
+
1979
+ declare const transferSol: ({ from, to, amount, provider, }: {
1980
+ from: string;
1981
+ to: string;
1982
+ amount: bigint;
1983
+ provider: SolanaProvider;
1984
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
1985
+ instructions: readonly _solana_kit.IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
1986
+ version: 0;
1987
+ }>, "feePayer">>;
1988
+
1989
+ declare const transferToken: ({ from, to, mint, amount, decimals, provider, }: {
1990
+ from: string;
1991
+ to: string;
1992
+ mint: string;
1993
+ amount: bigint;
1994
+ decimals: number;
1995
+ provider: SolanaProvider;
1996
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
1997
+ instructions: readonly IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
1998
+ version: 0;
1999
+ }>, "feePayer">>;
2000
+
2001
+ declare const getSolanaDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
2002
+
2003
+ declare const getSolanaPublicKeyFromLedger: (accountIndex: number, transport: Transport) => Promise<Buffer>;
2004
+
2005
+ /**
2006
+ * Helper to abstract confirming the existence of an Associated Token Account (ATA).
2007
+ * Useful for transferring SPL tokens, as each wallet must have an ATA for each token they own.
2008
+ * If a ATA does not exist, gas estimates must include a one-time rent-exempt minimum for creating
2009
+ * and holding an ATA on-chain.
2010
+ * @param mint - The mint address of the token.
2011
+ * @param owner - The public key of the wallet owner.
2012
+ * @param provider - An instance of SolanaProvider to interact with the Solana blockchain.
2013
+ * @returns { ataAddress: string; exists: boolean; info: SolanaAccountInfo } - The ATA address, a boolean indicating if it exists, and the account info if it does.
2014
+ */
2015
+ declare const maybeGetAssociatedTokenAccount: ({ mint, owner, provider, }: {
2016
+ mint: string;
2017
+ owner: string;
2018
+ provider: SolanaProvider;
2019
+ }) => Promise<{
2020
+ address: _solana_kit.Address<string>;
2021
+ exists: boolean;
2022
+ info: Readonly<{
2023
+ context: Readonly<{
2024
+ slot: bigint;
2025
+ }>;
2026
+ value: (Readonly<{
2027
+ executable: boolean;
2028
+ lamports: _solana_kit.Lamports;
2029
+ owner: _solana_kit.Address<string>;
2030
+ rentEpoch: bigint;
2031
+ space: bigint;
2032
+ }> & Readonly<{
2033
+ data: _solana_kit.Base64EncodedDataResponse;
2034
+ }>) | null;
2035
+ }>;
2036
+ }>;
2037
+
2038
+ declare class SolanaSigner {
2039
+ #private;
2040
+ constructor(privateKey: Buffer);
2041
+ static fromMnemonic(mnemonic: string, accountIndex: number): SolanaSigner;
2042
+ /**
2043
+ * @param message Base-64 encoded message bytes
2044
+ * @returns Base-64 encoded signature
2045
+ */
2046
+ signMessage(message: string): Promise<string>;
2047
+ /**
2048
+ * @param base64EncodedTx Base-64 encoded transaction
2049
+ * @param provider SolanaProvider
2050
+ * @returns
2051
+ */
2052
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2053
+ }
2054
+
2055
+ declare class SolanaLedgerSigner {
2056
+ #private;
2057
+ constructor(accountIndex: number, transport: Transport);
2058
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2059
+ }
2060
+
2061
+ 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, selectUtxos, serializeSolanaTx, transferSol, transferToken };
2062
+ export type { BitcoinHistoryTx, BitcoinInputUTXO, BitcoinInputUTXOWithOptionalScript, BitcoinLedgerInputUTXO, BitcoinOutputUTXO, BitcoinTx, SolanaProvider };