@avalabs/core-wallets-sdk 3.1.0-alpha.8 → 3.1.0-alpha.80

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 (129) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +438 -173
  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 +4 -2
  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 +3 -3
  84. package/esm/BitcoinVM/providers/BitcoinProvider.js +1 -1
  85. package/esm/BitcoinVM/utils/getBech32AddressFromXPub.js +1 -1
  86. package/esm/BitcoinVM/wallets/BitcoinWallet.js +1 -1
  87. package/esm/BitcoinVM/wallets/BitcoinWalletLedger.js +1 -1
  88. package/esm/BitcoinVM/wallets/models.d.ts +1 -1
  89. package/esm/EVM/LedgerSigner.js +1 -1
  90. package/esm/EVM/utils/blockPolling.js +1 -1
  91. package/esm/EVM/utils/getEvmDerivationPath.d.ts +5 -0
  92. package/esm/EVM/utils/getEvmDerivationPath.js +1 -0
  93. package/esm/EVM/utils/getWalletFromMnemonic.js +1 -1
  94. package/esm/SolanaVM/utils/compileSolanaTx.d.ts +9 -0
  95. package/esm/SolanaVM/utils/compileSolanaTx.js +1 -0
  96. package/esm/SolanaVM/utils/derivationPath.d.ts +3 -0
  97. package/esm/SolanaVM/utils/derivationPath.js +1 -0
  98. package/esm/SolanaVM/utils/deserializeSolanaTx.d.ts +6 -0
  99. package/esm/SolanaVM/utils/deserializeSolanaTx.js +1 -0
  100. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.d.ts +5 -0
  101. package/esm/SolanaVM/utils/getSolanaPublicKeyFromLedger.js +1 -0
  102. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.d.ts +37 -0
  103. package/esm/SolanaVM/utils/maybeGetAssociatedTokenAccount.js +1 -0
  104. package/esm/SolanaVM/utils/serializeSolanaTx.d.ts +6 -0
  105. package/esm/SolanaVM/utils/serializeSolanaTx.js +1 -0
  106. package/esm/SolanaVM/utils/solanaProvider.d.ts +11 -0
  107. package/esm/SolanaVM/utils/solanaProvider.js +1 -0
  108. package/esm/SolanaVM/utils/transferSol.d.ts +14 -0
  109. package/esm/SolanaVM/utils/transferSol.js +1 -0
  110. package/esm/SolanaVM/utils/transferToken.d.ts +17 -0
  111. package/esm/SolanaVM/utils/transferToken.js +1 -0
  112. package/esm/SolanaVM/wallets/SolanaLedgerSigner.d.ts +10 -0
  113. package/esm/SolanaVM/wallets/SolanaLedgerSigner.js +1 -0
  114. package/esm/SolanaVM/wallets/SolanaSigner.d.ts +20 -0
  115. package/esm/SolanaVM/wallets/SolanaSigner.js +1 -0
  116. package/esm/abis/erc20.abi.js +1 -0
  117. package/esm/index.d.ts +32 -20
  118. package/esm/index.js +1 -1
  119. package/esm/utils/assertFeeStateProvided.js +1 -0
  120. package/esm/utils/getAddressDerivationPath.d.ts +8 -2
  121. package/esm/utils/getAddressDerivationPath.js +1 -1
  122. package/esm/utils/getPubKeyFromTransport.js +1 -1
  123. package/package.json +31 -13
  124. package/dist/index.js +0 -1
  125. package/esm/Avalanche/utils/getUtxoInfo.d.ts +0 -13
  126. package/esm/Avalanche/utils/getUtxoInfo.js +0 -1
  127. package/esm/Avalanche/utils/parsers/parseAddDelegatorTx.js +0 -1
  128. package/esm/Avalanche/utils/parsers/parseAddValidatorTx.js +0 -1
  129. 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.
@@ -156,12 +156,12 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
156
156
  private readonly extraParams?;
157
157
  constructor(isMainnet?: boolean, apiKey?: string, explorerUrl?: string, nodeUrl?: string, extraParams?: Record<string, string> | undefined);
158
158
  getTxHex(txHash: string): Promise<string>;
159
- getUTXOs(address: string, withScripts?: boolean): Promise<{
159
+ getUTXOs(address: string, withScripts?: boolean, skipBatch?: boolean): Promise<{
160
160
  confirmed: BitcoinInputUTXOWithOptionalScript[];
161
161
  unconfirmed: BitcoinInputUTXOWithOptionalScript[];
162
162
  }>;
163
163
  getAddressFromScript(script: string): Promise<string>;
164
- getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[]): Promise<BitcoinInputUTXO[]>;
164
+ getScriptsForUtxos(utxos: BitcoinInputUTXOWithOptionalScript[], skipBatch?: boolean): Promise<BitcoinInputUTXO[]>;
165
165
  private _parseUtxo;
166
166
  getBalances(address: string): Promise<{
167
167
  available: bigint;
@@ -169,7 +169,7 @@ declare class BitcoinProvider extends BitcoinProviderAbstract {
169
169
  final: bigint;
170
170
  }>;
171
171
  getChainHeight(): Promise<number>;
172
- getFeeRates(): Promise<{
172
+ getFeeRates(skipBatch?: boolean): Promise<{
173
173
  low: number;
174
174
  medium: number;
175
175
  high: number;
@@ -468,6 +468,8 @@ declare function getEvmAddressFromPubKey(pubKey: Buffer): string;
468
468
  */
469
469
  declare function getBtcAddressFromPubKey(pubKey: Buffer, network: Network): string;
470
470
 
471
+ declare const getEVMDerivationPath: (accountIndex: number, pathSpec: DerivationPath, withRoot?: boolean) => string;
472
+
471
473
  declare class LedgerSigner$1 extends AbstractSigner {
472
474
  readonly type: string;
473
475
  readonly path: string;
@@ -559,17 +561,20 @@ declare class BitcoinWalletVoid extends BitcoinWalletAbstract {
559
561
  signTx(tx: any): any;
560
562
  }
561
563
 
564
+ declare const BtcNetworks: typeof networks;
565
+
562
566
  type ChainIDAlias = 'X' | 'P' | 'C';
563
567
  /**
564
568
  * Types for parsed transaction
565
569
  */
566
- 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;
567
571
  interface FeeData {
568
572
  totalAvaxBurned: bigint;
569
573
  totalAvaxOutput: bigint;
570
574
  totalAvaxInput: bigint;
571
575
  isValidAvaxBurnedAmount: boolean;
572
576
  txFee: bigint;
577
+ baseFee: bigint;
573
578
  }
574
579
  interface TxBase extends FeeData {
575
580
  type: string;
@@ -583,6 +588,11 @@ declare enum TxType {
583
588
  Import = "import",
584
589
  CreateSubnet = "create_subnet",
585
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",
586
596
  AddSubnetValidator = "add_subnet_validator",
587
597
  RemoveSubnetValidator = "remove_subnet_validator",
588
598
  AddPermissionlessValidator = "add_permissionless_validator",
@@ -591,7 +601,7 @@ declare enum TxType {
591
601
  TransferSubnetOwnership = "transfer_subnet_ownership",
592
602
  Unknown = "unknown"
593
603
  }
594
- interface BaseTx extends TxBase {
604
+ interface BaseTx$1 extends TxBase {
595
605
  type: TxType.Base;
596
606
  chain: VM;
597
607
  outputs: {
@@ -661,6 +671,35 @@ interface RemoveSubnetValidatorTx extends TxBase {
661
671
  nodeID: string;
662
672
  subnetID: string;
663
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
+ }
664
703
  interface AddPermissionlessValidatorTx extends TxBase {
665
704
  type: TxType.AddPermissionlessValidator;
666
705
  nodeID: string;
@@ -670,7 +709,7 @@ interface AddPermissionlessValidatorTx extends TxBase {
670
709
  rewardOwner: OutputOwners;
671
710
  delegationRewardOwner: OutputOwners;
672
711
  stake: bigint;
673
- stakeOuts: TransferableOutput[];
712
+ stakeOuts: readonly TransferableOutput[];
674
713
  subnetID: string;
675
714
  publicKey: undefined | string;
676
715
  signature: undefined | string;
@@ -684,7 +723,7 @@ interface AddPermissionlessDelegatorTx extends TxBase {
684
723
  stake: bigint;
685
724
  subnetID: string;
686
725
  delegatorRewardsOwner: OutputOwners;
687
- stakeOuts: TransferableOutput[];
726
+ stakeOuts: readonly TransferableOutput[];
688
727
  }
689
728
  interface TransformSubnetTx extends TxBase {
690
729
  type: TxType.TransformSubnet;
@@ -699,11 +738,11 @@ interface TransformSubnetTx extends TxBase {
699
738
  minStakeDuration: number;
700
739
  maxStakeDuration: number;
701
740
  minDelegationFee: number;
702
- minDelegatorStake: number;
741
+ minDelegatorStake: bigint;
703
742
  maxValidatorWeightFactor: number;
704
743
  uptimeRequirement: number;
705
744
  }
706
- interface TransferSubnetOwnershipTx extends TxBase {
745
+ interface TransferSubnetOwnershipTx$1 extends TxBase {
707
746
  type: TxType.TransferSubnetOwnership;
708
747
  subnetID: string;
709
748
  threshold: number;
@@ -719,7 +758,12 @@ declare function isAddValidatorTx(tx: Tx): tx is AddValidatorTx;
719
758
  declare function isAddDelegatorTx(tx: Tx): tx is AddDelegatorTx;
720
759
  declare function isExportTx(tx: Tx): tx is ExportTx;
721
760
  declare function isImportTx(tx: Tx): tx is ImportTx;
722
- 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;
723
767
  declare function isCreateSubnetTx(tx: Tx): tx is CreateSubnetTx;
724
768
  declare function isCreateChainTx(tx: Tx): tx is CreateChainTx;
725
769
  declare function isAddSubnetValidatorTx(tx: Tx): tx is AddSubnetValidatorTx;
@@ -727,17 +771,13 @@ declare function isRemoveSubnetValidatorTx(tx: Tx): tx is RemoveSubnetValidatorT
727
771
  declare function isAddPermissionlessValidatorTx(tx: Tx): tx is AddPermissionlessValidatorTx;
728
772
  declare function isAddPermissionlessDelegatorTx(tx: Tx): tx is AddPermissionlessDelegatorTx;
729
773
  declare function isTransformSubnetTx(tx: Tx): tx is TransformSubnetTx;
730
- declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx;
774
+ declare function isTransferSubnetOwnershipTx(tx: Tx): tx is TransferSubnetOwnershipTx$1;
731
775
 
732
776
  declare class AbstractProvider {
733
777
  protected baseUrl: string;
734
778
  protected context: Context.Context;
735
- evmRpc: JsonRpcProvider$1;
736
- constructor(baseUrl: string, context: Context.Context);
737
- /**
738
- * @link https://docs.ethers.io/v5/api/providers/provider/#Provider-getFeeData
739
- */
740
- getEvmFeeData(): Promise<ethers.FeeData>;
779
+ fetchOptions?: RequestInit | undefined;
780
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit | undefined);
741
781
  getContext(): Context.Context;
742
782
  getChainID(chainAlias: ChainIDAlias): string;
743
783
  getNetworkID(): number;
@@ -745,6 +785,7 @@ declare class AbstractProvider {
745
785
  getApiX(): avm.AVMApi;
746
786
  getApiP(): pvm.PVMApi;
747
787
  getApiC(): evm.EVMApi;
788
+ getInfo(): info.InfoApi;
748
789
  getApi(chain: ChainIDAlias): avm.AVMApi | pvm.PVMApi | evm.EVMApi;
749
790
  getAvaxID(): string;
750
791
  getAddress(publicKey: Buffer, chain: ChainIDAlias): string;
@@ -765,10 +806,11 @@ declare class AbstractProvider {
765
806
  }
766
807
 
767
808
  declare class JsonRpcProvider extends AbstractProvider {
768
- constructor(baseUrl: string, context: Context.Context);
809
+ constructor(baseUrl: string, context: Context.Context, fetchOptions?: RequestInit);
769
810
  static fromBaseURL(url: string): Promise<JsonRpcProvider>;
770
811
  static getDefaultMainnetProvider(): JsonRpcProvider;
771
812
  static getDefaultFujiProvider(): JsonRpcProvider;
813
+ static getDefaultDevnetProvider(): JsonRpcProvider;
772
814
  }
773
815
 
774
816
  /**
@@ -779,6 +821,183 @@ declare const MainnetContext: Context.Context;
779
821
  * Avalanche Fuji testnet context
780
822
  */
781
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
+ };
782
1001
 
783
1002
  /**
784
1003
  * An abstract class that that is shared by all wallet classes.
@@ -826,7 +1045,7 @@ declare abstract class WalletAbstract {
826
1045
  */
827
1046
  getAtomicUTXOs(chain: ChainIDAlias, source: ChainIDAlias): Promise<utils.UtxoSet>;
828
1047
  exportX(amount: bigint, utxoSet: utils.UtxoSet, destination: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
829
- importP(utxos: utils.UtxoSet, sourceChain: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
1048
+ importP({ utxoSet, sourceChain, toAddress, threshold, feeState, locktime, }: ImportP): Common.UnsignedTx;
830
1049
  importX(utxos: utils.UtxoSet, sourceChain: 'P' | 'C', toAddress?: string): Common.UnsignedTx;
831
1050
  /**
832
1051
  *
@@ -846,10 +1065,6 @@ declare abstract class WalletAbstract {
846
1065
  * @param toAddress
847
1066
  */
848
1067
  exportC(amount: bigint, destination: 'X' | 'P', nonce: bigint, baseFee: bigint, toAddress?: string): _avalabs_avalanchejs.EVMUnsignedTx;
849
- /**
850
- * Get the nonce of this wallet's C chain address
851
- */
852
- getNonce(): Promise<number>;
853
1068
  /**
854
1069
  * Export the given amount of AVAX from the P chain. Export fee is automatically added.
855
1070
  * @param amount
@@ -857,18 +1072,17 @@ declare abstract class WalletAbstract {
857
1072
  * @param destination
858
1073
  * @param toAddress
859
1074
  */
860
- exportP(amount: bigint, utxoSet: utils.UtxoSet, destination: 'X' | 'C', toAddress?: string): Common.UnsignedTx;
861
- addValidator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, delegationFee: number, config?: {
862
- rewardAddress?: string;
863
- }): Common.UnsignedTx;
864
- addDelegator(utxos: utils.UtxoSet, nodeID: string, stakeAmount: bigint, startDate: bigint, endDate: bigint, config?: {
865
- rewardAddress?: string;
866
- }): Common.UnsignedTx;
867
- consolidateP(utxoSet: utils.UtxoSet, amount: bigint, toAddress?: string, options?: Common.SpendOptions): Common.UnsignedTx;
868
- baseTX(utxoSet: utils.UtxoSet, chain: 'X' | 'P', toAddress: string, amountsPerAsset: Record<string, bigint>, options?: Common.SpendOptions, fromAddresses?: string[]): Common.UnsignedTx;
869
- 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;
870
- createSubnet(utxoSet: utils.UtxoSet, rewardAddresses: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
871
- 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;
872
1086
  /**
873
1087
  *
874
1088
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -885,7 +1099,7 @@ declare abstract class WalletAbstract {
885
1099
  * @param signature the BLS signature, If the subnet is the primary network. Can be found in the Node on startup.
886
1100
  * @param options
887
1101
  */
888
- 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;
889
1103
  /**
890
1104
  *
891
1105
  * @param utxoSet The transaction will be constructed from these UTXOs.
@@ -898,10 +1112,9 @@ declare abstract class WalletAbstract {
898
1112
  * @param rewardAddresses Will use active address if not provided. Given addresses will share the reward UTXO.
899
1113
  * @param options
900
1114
  */
901
- addPermissionlessDelegator(utxoSet: utils.UtxoSet, nodeId: string, start: bigint, end: bigint, weight: bigint, subnetId: string, fromAddresses?: string[], rewardAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
902
- removeSubnetValidator(utxoSet: utils.UtxoSet, nodeId: string, subnetId: string, subnetAuth: number[], fromAddresses?: string[], options?: Common.SpendOptions): Common.UnsignedTx;
903
- transferSubnetOwnershipTx(utxoSet: utils.UtxoSet, subnetId: string, subnetAuth: number[], subnetOwners: string[], fromAddresses?: string[], options?: Common.SpendOptions, threshold?: number, locktime?: bigint): Common.UnsignedTx;
904
- 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;
905
1118
  protected constructor(provider: AbstractProvider);
906
1119
  }
907
1120
 
@@ -1223,7 +1436,7 @@ declare class StaticSigner extends WalletVoid implements Signer {
1223
1436
  */
1224
1437
  declare class SimpleSigner implements Signer {
1225
1438
  /**
1226
- * Node for `m/44'/9000'/0'`
1439
+ * Node for `m/44'/9000'/n'`
1227
1440
  * @private {BIP32Interface}
1228
1441
  */
1229
1442
  private accountNodeXP;
@@ -1323,12 +1536,13 @@ declare class LedgerSigner extends WalletVoid implements Signer {
1323
1536
  declare class SimpleLedgerSigner implements Signer {
1324
1537
  private activeAccountIndex;
1325
1538
  private provider;
1539
+ private pathSpec;
1326
1540
  private accountNode;
1327
1541
  /**
1328
1542
  * @param {number} activeAccountIndex - the index of the primary account used for static signing
1329
- * @param {string} xpubXP - optional extended public key of `m/44'/9000'/0`
1543
+ * @param {string} xpubXP - optional extended public key of `m/44'/9000'/${activeAccountIndex}`
1330
1544
  */
1331
- constructor(activeAccountIndex: number, provider: JsonRpcProvider, xpubXP?: string);
1545
+ constructor(activeAccountIndex: number, provider: JsonRpcProvider, xpubXP?: string, pathSpec?: DerivationPath);
1332
1546
  private reSerializeTx;
1333
1547
  private getChainAlias;
1334
1548
  private getAccountPath;
@@ -1340,6 +1554,18 @@ declare class SimpleLedgerSigner implements Signer {
1340
1554
  signMessage(request: SignMessageRequest): Promise<Buffer>;
1341
1555
  }
1342
1556
 
1557
+ /**
1558
+ * Ledger signer that can use multiple LedgerLive derivation paths for signing transactions.
1559
+ */
1560
+ declare class LedgerLiveSigner implements Signer {
1561
+ #private;
1562
+ private accountIndices;
1563
+ constructor(accountIndices: number[]);
1564
+ signMessage(request: SignMessageRequest): Promise<Buffer>;
1565
+ signTx(txRequest: SignTxRequest): Promise<UnsignedTx>;
1566
+ signTxBuffer(txRequest: SignTxBufferRequest): Promise<Buffer[]>;
1567
+ }
1568
+
1343
1569
  declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAlias, provider, utxos, }: {
1344
1570
  transactionHex: string;
1345
1571
  signatures: Uint8Array[];
@@ -1352,15 +1578,16 @@ declare const addSignaturesToAvalancheTx: ({ transactionHex, signatures, chainAl
1352
1578
  }>;
1353
1579
 
1354
1580
  type GlacierOutput = Utxo$1 | PChainUtxo;
1355
- declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, isTestnet: boolean) => Utxo;
1581
+ declare const convertGlacierUtxo: (glacierUtxo: GlacierOutput, network: Network$2) => Utxo<TransferOutput | pvmSerial.StakeableLockOut<TransferOutput>>;
1356
1582
 
1357
1583
  type Params$2 = {
1358
1584
  txBytes: Uint8Array;
1359
1585
  fromAddress: string;
1360
1586
  vm: VM;
1587
+ credentials?: Credential[];
1361
1588
  utxos: Utxo[];
1362
1589
  };
1363
- declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, utxos, }: Params$2) => Promise<UnsignedTx>;
1590
+ declare const createAvalancheEvmUnsignedTx: ({ txBytes, fromAddress, vm, credentials, utxos, }: Params$2) => Promise<UnsignedTx>;
1364
1591
 
1365
1592
  type Params$1 = {
1366
1593
  tx: avaxSerial.AvaxTx;
@@ -1434,7 +1661,7 @@ declare function getAssetBalance(utxoSet: utils.UtxoSet, assetID: string): GetAv
1434
1661
  /**
1435
1662
  * Get the current p-chain timestamp in unix
1436
1663
  */
1437
- declare function getPchainUnixNow(isTestnet: boolean): Promise<bigint>;
1664
+ declare function getPchainUnixNow(provider: AbstractProvider): Promise<bigint>;
1438
1665
 
1439
1666
  interface GetStakedAvaxBalanceDict {
1440
1667
  /**
@@ -1456,33 +1683,23 @@ declare function getStakeForAddresses(addresses: string[], api: pvm.PVMApi): Pro
1456
1683
  */
1457
1684
  declare function getUnixNow(): bigint;
1458
1685
 
1459
- type UtxoInfo = {
1460
- utxoId: string;
1461
- assetId: string;
1462
- locktime: bigint;
1463
- stakeableLocktime: bigint;
1464
- threshold: number;
1465
- amount: bigint;
1466
- };
1467
- declare const getUtxoInfo: (utxo: Utxo) => UtxoInfo;
1468
-
1469
1686
  type Params = {
1470
1687
  transactionHex: string;
1471
1688
  chainAlias: ChainIDAlias;
1472
- isTestnet: boolean;
1689
+ network: Network$2;
1473
1690
  url: string;
1474
1691
  token?: string;
1475
1692
  headers?: Record<string, string>;
1476
1693
  };
1477
- declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, isTestnet, url, token, headers, }: Params) => Promise<Utxo[]>;
1694
+ declare const getUtxosByTxFromGlacier: ({ transactionHex, chainAlias, network, url, token, headers, }: Params) => Promise<Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[]>;
1478
1695
 
1479
- declare const getVmByChainAlias: (chainAlias: string) => "EVM" | "AVM" | "PVM";
1696
+ declare const getVmByChainAlias: (chainAlias: string) => "AVM" | "EVM" | "PVM";
1480
1697
 
1481
1698
  /**
1482
1699
  * Get the xpub for m/44'/9000'/0' from the given mnemonic
1483
1700
  * @param mnemonic
1484
1701
  */
1485
- declare function getXpubFromMnemonic(mnemonic: string): string;
1702
+ declare function getXpubFromMnemonic(mnemonic: string, accountIndex: number): string;
1486
1703
 
1487
1704
  /**
1488
1705
  * Verify the given address is a valid Avalanche bech32 address
@@ -1491,10 +1708,20 @@ declare function getXpubFromMnemonic(mnemonic: string): string;
1491
1708
  */
1492
1709
  declare function isBech32Address(address: string, hasChainId?: boolean): boolean;
1493
1710
 
1711
+ type ParseOptions = {
1712
+ /**
1713
+ * Tolerance percentage range where the burned amount is considered valid.
1714
+ */
1715
+ feeTolerance?: number;
1716
+ /**
1717
+ * Base fee used for validating burn amount. Priced in nAvax.
1718
+ */
1719
+ baseFee?: bigint;
1720
+ };
1494
1721
  /**
1495
1722
  * Returns human readable data from a given a transaction buffer,
1496
1723
  */
1497
- declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string): Promise<Tx>;
1724
+ declare function parseAvalancheTx(unsignedTx: Common.UnsignedTx, provider: JsonRpcProvider, currentAddress: string, { feeTolerance, baseFee: inputBaseFee }?: ParseOptions): Promise<Tx>;
1498
1725
 
1499
1726
  declare const emptySignature: Signature;
1500
1727
  declare const populateCredential: (indices: number[], existingCredentialData?: {
@@ -1506,14 +1733,15 @@ declare function signedTxToHex(signedTx: avaxSerial.SignedTx): string;
1506
1733
 
1507
1734
  /**
1508
1735
  * The UTXOs will be sorted in the following order.
1509
- * 1- LockedStakeable UTXOs with the highest locktime to lowest
1510
- * 2- Highest value UTXOs to lowest
1736
+ * 1- Highest value unlocked UTXO (for fees)
1737
+ * 2- LockedStakeable UTXOs with the highest locktime to lowest
1738
+ * 3- Rest of the unlocked UTXOs highest to lowest
1511
1739
  * @remark Does not check for locked UTXOs
1512
1740
  */
1513
1741
  declare function sortUTXOsStaking(utxos: Utxo[]): Utxo[];
1514
1742
  declare function sortUTXOsByAmount(utxos: Utxo[], isDescending: boolean): Utxo[];
1515
- declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo[];
1516
- declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo[];
1743
+ declare const sortUTXOsByAmountDescending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1744
+ declare const sortUTXOsByAmountAscending: (utxos: Utxo[]) => Utxo<_avalabs_avalanchejs_dist_serializable_common_types.Serializable>[];
1517
1745
 
1518
1746
  /**
1519
1747
  * The list of transaction types supported by `getMaximumUtxoSet`.
@@ -1539,9 +1767,16 @@ declare const P_CHAIN_TX_SIZE_LIMIT = 65536;
1539
1767
  * @param utxos - list of UTXOs to be consumed by the transaction.
1540
1768
  * @param sizeSupportedTx - one of the supported transaction types
1541
1769
  * @param limit - optional - byte size limit, defaults to 64kb.
1770
+ * @param feeState - current fee state on the chain
1542
1771
  * @returns the largest prefix of sorted `utxos` before hitting the size limit. If no such prefix exists, then an empty array.
1543
1772
  */
1544
- declare function getMaximumUtxoSet(wallet: WalletAbstract$1, utxos: Utxo[], sizeSupportedTx: SizeSupportedTx, limit?: number): Utxo[];
1773
+ declare function getMaximumUtxoSet({ wallet, utxos, sizeSupportedTx, limit, feeState, }: {
1774
+ wallet: WalletAbstract;
1775
+ utxos: Utxo[];
1776
+ sizeSupportedTx: SizeSupportedTx;
1777
+ limit?: number;
1778
+ feeState?: pvm.FeeState;
1779
+ }): Utxo[];
1545
1780
 
1546
1781
  /**
1547
1782
  * Verifies the given derivation path is valid, starts with `m`, and of the right length
@@ -1549,6 +1784,8 @@ declare function getMaximumUtxoSet(wallet: WalletAbstract$1, utxos: Utxo[], size
1549
1784
  */
1550
1785
  declare function verifyDerivationPath(path: string): any;
1551
1786
 
1787
+ declare const getAvalancheDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
1788
+
1552
1789
  type index_AbstractProvider = AbstractProvider;
1553
1790
  declare const index_AbstractProvider: typeof AbstractProvider;
1554
1791
  type index_AddDelegatorTx = AddDelegatorTx;
@@ -1558,10 +1795,12 @@ type index_AddSubnetValidatorTx = AddSubnetValidatorTx;
1558
1795
  type index_AddValidatorTx = AddValidatorTx;
1559
1796
  type index_AddressWallet = AddressWallet;
1560
1797
  declare const index_AddressWallet: typeof AddressWallet;
1561
- type index_BaseTx = BaseTx;
1562
1798
  type index_ChainIDAlias = ChainIDAlias;
1799
+ type index_ConvertSubnetToL1Tx = ConvertSubnetToL1Tx;
1563
1800
  type index_CreateChainTx = CreateChainTx;
1564
1801
  type index_CreateSubnetTx = CreateSubnetTx;
1802
+ declare const index_DevnetContext: typeof DevnetContext;
1803
+ type index_DisableL1ValidatorTx = DisableL1ValidatorTx;
1565
1804
  type index_ExportTx = ExportTx;
1566
1805
  type index_FeeData = FeeData;
1567
1806
  declare const index_FujiContext: typeof FujiContext;
@@ -1569,9 +1808,12 @@ type index_GetAvaxBalanceDict = GetAvaxBalanceDict;
1569
1808
  type index_GetStakedAvaxBalanceDict = GetStakedAvaxBalanceDict;
1570
1809
  type index_GlacierOutput = GlacierOutput;
1571
1810
  type index_ImportTx = ImportTx;
1811
+ type index_IncreaseL1ValidatorBalanceTx = IncreaseL1ValidatorBalanceTx;
1572
1812
  type index_JsonRpcProvider = JsonRpcProvider;
1573
1813
  declare const index_JsonRpcProvider: typeof JsonRpcProvider;
1574
1814
  type index_LedgerGetXpubResponse = LedgerGetXpubResponse;
1815
+ type index_LedgerLiveSigner = LedgerLiveSigner;
1816
+ declare const index_LedgerLiveSigner: typeof LedgerLiveSigner;
1575
1817
  type index_LedgerSigner = LedgerSigner;
1576
1818
  declare const index_LedgerSigner: typeof LedgerSigner;
1577
1819
  type index_LedgerWallet = LedgerWallet;
@@ -1582,7 +1824,10 @@ declare const index_MnemonicWallet: typeof MnemonicWallet;
1582
1824
  type index_MnemonicWalletVoid = MnemonicWalletVoid;
1583
1825
  declare const index_MnemonicWalletVoid: typeof MnemonicWalletVoid;
1584
1826
  declare const index_P_CHAIN_TX_SIZE_LIMIT: typeof P_CHAIN_TX_SIZE_LIMIT;
1827
+ type index_ParseOptions = ParseOptions;
1828
+ type index_RegisterL1ValidatorTx = RegisterL1ValidatorTx;
1585
1829
  type index_RemoveSubnetValidatorTx = RemoveSubnetValidatorTx;
1830
+ type index_SetL1ValidatorWeightTx = SetL1ValidatorWeightTx;
1586
1831
  type index_SignMessageRequest = SignMessageRequest;
1587
1832
  type index_SignTxBufferRequest = SignTxBufferRequest;
1588
1833
  type index_SignTxRequest = SignTxRequest;
@@ -1595,14 +1840,12 @@ type index_SizeSupportedTx = SizeSupportedTx;
1595
1840
  declare const index_SizeSupportedTx: typeof SizeSupportedTx;
1596
1841
  type index_StaticSigner = StaticSigner;
1597
1842
  declare const index_StaticSigner: typeof StaticSigner;
1598
- type index_TransferSubnetOwnershipTx = TransferSubnetOwnershipTx;
1599
1843
  type index_TransformSubnetTx = TransformSubnetTx;
1600
1844
  type index_Tx = Tx;
1601
1845
  type index_TxBase = TxBase;
1602
1846
  type index_TxType = TxType;
1603
1847
  declare const index_TxType: typeof TxType;
1604
1848
  type index_UnknownTx = UnknownTx;
1605
- type index_UtxoInfo = UtxoInfo;
1606
1849
  type index_WalletAbstract = WalletAbstract;
1607
1850
  declare const index_WalletAbstract: typeof WalletAbstract;
1608
1851
  type index_WalletVoid = WalletVoid;
@@ -1616,6 +1859,7 @@ declare const index_emptySignature: typeof emptySignature;
1616
1859
  declare const index_getAddressFromXpub: typeof getAddressFromXpub;
1617
1860
  declare const index_getAddressPublicKeyFromXpub: typeof getAddressPublicKeyFromXpub;
1618
1861
  declare const index_getAssetBalance: typeof getAssetBalance;
1862
+ declare const index_getAvalancheDerivationPath: typeof getAvalancheDerivationPath;
1619
1863
  declare const index_getLedgerProvider: typeof getLedgerProvider;
1620
1864
  declare const index_getMaximumUtxoSet: typeof getMaximumUtxoSet;
1621
1865
  declare const index_getPaginatedUTXOs: typeof getPaginatedUTXOs;
@@ -1624,7 +1868,6 @@ declare const index_getStakeForAddresses: typeof getStakeForAddresses;
1624
1868
  declare const index_getStakedAssetBalance: typeof getStakedAssetBalance;
1625
1869
  declare const index_getUTXOsForAddresses: typeof getUTXOsForAddresses;
1626
1870
  declare const index_getUnixNow: typeof getUnixNow;
1627
- declare const index_getUtxoInfo: typeof getUtxoInfo;
1628
1871
  declare const index_getUtxosByTxFromGlacier: typeof getUtxosByTxFromGlacier;
1629
1872
  declare const index_getVmByChainAlias: typeof getVmByChainAlias;
1630
1873
  declare const index_getXpubFromMnemonic: typeof getXpubFromMnemonic;
@@ -1635,12 +1878,17 @@ declare const index_isAddSubnetValidatorTx: typeof isAddSubnetValidatorTx;
1635
1878
  declare const index_isAddValidatorTx: typeof isAddValidatorTx;
1636
1879
  declare const index_isBaseTx: typeof isBaseTx;
1637
1880
  declare const index_isBech32Address: typeof isBech32Address;
1881
+ declare const index_isConvertSubnetToL1Tx: typeof isConvertSubnetToL1Tx;
1638
1882
  declare const index_isCreateChainTx: typeof isCreateChainTx;
1639
1883
  declare const index_isCreateSubnetTx: typeof isCreateSubnetTx;
1884
+ declare const index_isDisableL1ValidatorTx: typeof isDisableL1ValidatorTx;
1640
1885
  declare const index_isExportTx: typeof isExportTx;
1641
1886
  declare const index_isImportTx: typeof isImportTx;
1887
+ declare const index_isIncreaseL1ValidatorBalance: typeof isIncreaseL1ValidatorBalance;
1642
1888
  declare const index_isObsidianApp: typeof isObsidianApp;
1889
+ declare const index_isRegisterL1ValidatorTx: typeof isRegisterL1ValidatorTx;
1643
1890
  declare const index_isRemoveSubnetValidatorTx: typeof isRemoveSubnetValidatorTx;
1891
+ declare const index_isSetL1ValidatorWeightTx: typeof isSetL1ValidatorWeightTx;
1644
1892
  declare const index_isTransferSubnetOwnershipTx: typeof isTransferSubnetOwnershipTx;
1645
1893
  declare const index_isTransformSubnetTx: typeof isTransformSubnetTx;
1646
1894
  declare const index_parseAvalancheTx: typeof parseAvalancheTx;
@@ -1652,105 +1900,23 @@ declare const index_sortUTXOsByAmountDescending: typeof sortUTXOsByAmountDescend
1652
1900
  declare const index_sortUTXOsStaking: typeof sortUTXOsStaking;
1653
1901
  declare const index_verifyDerivationPath: typeof verifyDerivationPath;
1654
1902
  declare namespace index {
1655
- export {
1656
- index_AbstractProvider as AbstractProvider,
1657
- index_AddDelegatorTx as AddDelegatorTx,
1658
- index_AddPermissionlessDelegatorTx as AddPermissionlessDelegatorTx,
1659
- index_AddPermissionlessValidatorTx as AddPermissionlessValidatorTx,
1660
- index_AddSubnetValidatorTx as AddSubnetValidatorTx,
1661
- index_AddValidatorTx as AddValidatorTx,
1662
- index_AddressWallet as AddressWallet,
1663
- index_BaseTx as BaseTx,
1664
- index_ChainIDAlias as ChainIDAlias,
1665
- index_CreateChainTx as CreateChainTx,
1666
- index_CreateSubnetTx as CreateSubnetTx,
1667
- index_ExportTx as ExportTx,
1668
- index_FeeData as FeeData,
1669
- index_FujiContext as FujiContext,
1670
- index_GetAvaxBalanceDict as GetAvaxBalanceDict,
1671
- index_GetStakedAvaxBalanceDict as GetStakedAvaxBalanceDict,
1672
- index_GlacierOutput as GlacierOutput,
1673
- index_ImportTx as ImportTx,
1674
- index_JsonRpcProvider as JsonRpcProvider,
1675
- index_LedgerGetXpubResponse as LedgerGetXpubResponse,
1676
- index_LedgerSigner as LedgerSigner,
1677
- index_LedgerWallet as LedgerWallet,
1678
- index_MainnetContext as MainnetContext,
1679
- index_MnemonicWallet as MnemonicWallet,
1680
- index_MnemonicWalletVoid as MnemonicWalletVoid,
1681
- index_P_CHAIN_TX_SIZE_LIMIT as P_CHAIN_TX_SIZE_LIMIT,
1682
- index_RemoveSubnetValidatorTx as RemoveSubnetValidatorTx,
1683
- index_SignMessageRequest as SignMessageRequest,
1684
- index_SignTxBufferRequest as SignTxBufferRequest,
1685
- index_SignTxRequest as SignTxRequest,
1686
- index_Signer as Signer,
1687
- index_SimpleLedgerSigner as SimpleLedgerSigner,
1688
- index_SimpleSigner as SimpleSigner,
1689
- index_SizeSupportedTx as SizeSupportedTx,
1690
- index_StaticSigner as StaticSigner,
1691
- index_TransferSubnetOwnershipTx as TransferSubnetOwnershipTx,
1692
- index_TransformSubnetTx as TransformSubnetTx,
1693
- index_Tx as Tx,
1694
- index_TxBase as TxBase,
1695
- index_TxType as TxType,
1696
- index_UnknownTx as UnknownTx,
1697
- index_UtxoInfo as UtxoInfo,
1698
- index_WalletAbstract as WalletAbstract,
1699
- index_WalletVoid as WalletVoid,
1700
- index_addSignaturesToAvalancheTx as addSignaturesToAvalancheTx,
1701
- index_convertGlacierUtxo as convertGlacierUtxo,
1702
- index_createAvalancheEvmUnsignedTx as createAvalancheEvmUnsignedTx,
1703
- index_createAvalancheUnsignedTx as createAvalancheUnsignedTx,
1704
- index_digestMessage as digestMessage,
1705
- index_emptySignature as emptySignature,
1706
- index_getAddressFromXpub as getAddressFromXpub,
1707
- index_getAddressPublicKeyFromXpub as getAddressPublicKeyFromXpub,
1708
- index_getAssetBalance as getAssetBalance,
1709
- index_getLedgerProvider as getLedgerProvider,
1710
- index_getMaximumUtxoSet as getMaximumUtxoSet,
1711
- index_getPaginatedUTXOs as getPaginatedUTXOs,
1712
- index_getPchainUnixNow as getPchainUnixNow,
1713
- index_getStakeForAddresses as getStakeForAddresses,
1714
- index_getStakedAssetBalance as getStakedAssetBalance,
1715
- index_getUTXOsForAddresses as getUTXOsForAddresses,
1716
- index_getUnixNow as getUnixNow,
1717
- index_getUtxoInfo as getUtxoInfo,
1718
- index_getUtxosByTxFromGlacier as getUtxosByTxFromGlacier,
1719
- index_getVmByChainAlias as getVmByChainAlias,
1720
- index_getXpubFromMnemonic as getXpubFromMnemonic,
1721
- index_isAddDelegatorTx as isAddDelegatorTx,
1722
- index_isAddPermissionlessDelegatorTx as isAddPermissionlessDelegatorTx,
1723
- index_isAddPermissionlessValidatorTx as isAddPermissionlessValidatorTx,
1724
- index_isAddSubnetValidatorTx as isAddSubnetValidatorTx,
1725
- index_isAddValidatorTx as isAddValidatorTx,
1726
- index_isBaseTx as isBaseTx,
1727
- index_isBech32Address as isBech32Address,
1728
- index_isCreateChainTx as isCreateChainTx,
1729
- index_isCreateSubnetTx as isCreateSubnetTx,
1730
- index_isExportTx as isExportTx,
1731
- index_isImportTx as isImportTx,
1732
- index_isObsidianApp as isObsidianApp,
1733
- index_isRemoveSubnetValidatorTx as isRemoveSubnetValidatorTx,
1734
- index_isTransferSubnetOwnershipTx as isTransferSubnetOwnershipTx,
1735
- index_isTransformSubnetTx as isTransformSubnetTx,
1736
- index_parseAvalancheTx as parseAvalancheTx,
1737
- index_populateCredential as populateCredential,
1738
- index_signedTxToHex as signedTxToHex,
1739
- index_sortUTXOsByAmount as sortUTXOsByAmount,
1740
- index_sortUTXOsByAmountAscending as sortUTXOsByAmountAscending,
1741
- index_sortUTXOsByAmountDescending as sortUTXOsByAmountDescending,
1742
- index_sortUTXOsStaking as sortUTXOsStaking,
1743
- index_verifyDerivationPath as verifyDerivationPath,
1744
- };
1903
+ 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 };
1904
+ 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 };
1745
1905
  }
1746
1906
 
1907
+ type DerivationPathOptions = {
1908
+ withRoot?: boolean;
1909
+ pathSpec?: DerivationPath;
1910
+ };
1747
1911
  /**
1748
1912
  * Get the derivation path used by wallet addresses
1749
1913
  * @param addressIndex Which index is the address on
1750
- * @param pathSpec BIP44 vs LedgerLive
1751
1914
  * @param vm Which VM is this address on. Coin index changes between Avalanche and EVM
1915
+ * @param options
1916
+ * @param options.withRoot If false, skips the "m/" prefix. Needed for Solana Ledger app.
1917
+ * @param options.pathSpec Only relevant (and required) for EVM.
1752
1918
  */
1753
- declare function getAddressDerivationPath(addressIndex: number, pathSpec: DerivationPath, vm: 'EVM' | 'AVM' | 'PVM'): string;
1919
+ declare function getAddressDerivationPath(accountIndex: number, vm: 'SVM' | 'EVM' | 'AVM' | 'PVM', options?: DerivationPathOptions): string;
1754
1920
 
1755
1921
  /**
1756
1922
  * Get the public key from a given private key.
@@ -1795,4 +1961,103 @@ declare function openLedgerApp(transport: Transport, applicationName: string): P
1795
1961
  */
1796
1962
  declare function quitLedgerApp(transport: Transport): Promise<Buffer>;
1797
1963
 
1798
- 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 };
1964
+ declare const compileSolanaTx: (compilableTx: CompilableTransactionMessage) => Readonly<Readonly<{
1965
+ messageBytes: _solana_kit.TransactionMessageBytes;
1966
+ signatures: _solana_kit.SignaturesMap;
1967
+ }> & _solana_kit.TransactionWithLifetime>;
1968
+
1969
+ type SolanaProvider = ReturnType<typeof getSolanaProvider>;
1970
+ 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)>;
1971
+ declare const getSolanaProvider: ({ isTestnet, rpcUrl, }: {
1972
+ isTestnet: boolean;
1973
+ rpcUrl: string;
1974
+ }) => _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)>;
1975
+
1976
+ 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>)[]>>>;
1977
+
1978
+ declare const serializeSolanaTx: (tx: Transaction$2) => _solana_kit.Base64EncodedWireTransaction;
1979
+
1980
+ declare const transferSol: ({ from, to, amount, provider, }: {
1981
+ from: string;
1982
+ to: string;
1983
+ amount: bigint;
1984
+ provider: SolanaProvider;
1985
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
1986
+ instructions: readonly _solana_kit.IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
1987
+ version: 0;
1988
+ }>, "feePayer">>;
1989
+
1990
+ declare const transferToken: ({ from, to, mint, amount, decimals, provider, }: {
1991
+ from: string;
1992
+ to: string;
1993
+ mint: string;
1994
+ amount: bigint;
1995
+ decimals: number;
1996
+ provider: SolanaProvider;
1997
+ }) => Promise<_solana_kit.ITransactionMessageWithFeePayer<string> & Omit<_solana_kit.TransactionMessageWithBlockhashLifetime & Readonly<{
1998
+ instructions: readonly IInstruction<string, readonly (_solana_kit.IAccountLookupMeta<string, string> | _solana_kit.IAccountMeta<string>)[]>[];
1999
+ version: 0;
2000
+ }>, "feePayer">>;
2001
+
2002
+ declare const getSolanaDerivationPath: (accountIndex: number, withRoot?: boolean) => string;
2003
+
2004
+ declare const getSolanaPublicKeyFromLedger: (accountIndex: number, transport: Transport) => Promise<Buffer>;
2005
+
2006
+ /**
2007
+ * Helper to abstract confirming the existence of an Associated Token Account (ATA).
2008
+ * Useful for transferring SPL tokens, as each wallet must have an ATA for each token they own.
2009
+ * If a ATA does not exist, gas estimates must include a one-time rent-exempt minimum for creating
2010
+ * and holding an ATA on-chain.
2011
+ * @param mint - The mint address of the token.
2012
+ * @param owner - The public key of the wallet owner.
2013
+ * @param provider - An instance of SolanaProvider to interact with the Solana blockchain.
2014
+ * @returns { ataAddress: string; exists: boolean; info: SolanaAccountInfo } - The ATA address, a boolean indicating if it exists, and the account info if it does.
2015
+ */
2016
+ declare const maybeGetAssociatedTokenAccount: ({ mint, owner, provider, }: {
2017
+ mint: string;
2018
+ owner: string;
2019
+ provider: SolanaProvider;
2020
+ }) => Promise<{
2021
+ address: _solana_kit.Address<string>;
2022
+ exists: boolean;
2023
+ info: Readonly<{
2024
+ context: Readonly<{
2025
+ slot: bigint;
2026
+ }>;
2027
+ value: (Readonly<{
2028
+ executable: boolean;
2029
+ lamports: _solana_kit.Lamports;
2030
+ owner: _solana_kit.Address<string>;
2031
+ rentEpoch: bigint;
2032
+ space: bigint;
2033
+ }> & Readonly<{
2034
+ data: _solana_kit.Base64EncodedDataResponse;
2035
+ }>) | null;
2036
+ }>;
2037
+ }>;
2038
+
2039
+ declare class SolanaSigner {
2040
+ #private;
2041
+ constructor(privateKey: Buffer);
2042
+ static fromMnemonic(mnemonic: string, accountIndex: number): SolanaSigner;
2043
+ /**
2044
+ * @param message Base-64 encoded message bytes
2045
+ * @returns Base-64 encoded signature
2046
+ */
2047
+ signMessage(message: string): Promise<string>;
2048
+ /**
2049
+ * @param base64EncodedTx Base-64 encoded transaction
2050
+ * @param provider SolanaProvider
2051
+ * @returns
2052
+ */
2053
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2054
+ }
2055
+
2056
+ declare class SolanaLedgerSigner {
2057
+ #private;
2058
+ constructor(accountIndex: number, transport: Transport);
2059
+ signTx(base64EncodedTx: string, provider: SolanaProvider): Promise<string>;
2060
+ }
2061
+
2062
+ 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 };
2063
+ export type { BitcoinHistoryTx, BitcoinInputUTXO, BitcoinInputUTXOWithOptionalScript, BitcoinLedgerInputUTXO, BitcoinOutputUTXO, BitcoinTx, SolanaProvider };