Constructs a new instance of the BrowserExtensionWallet.
The raw CIP-30 wallet API provided by the browser extension.
The provider used to fetch additional data.
Creates and initializes a new transaction builder with the wallet's current state.
A promise that resolves to a pre-configured TransactionBuilder instance.
This method simplifies transaction construction by automatically pre-populating the builder with:
The returned builder is ready for you to add outputs and other transaction details.
Returns the "network magic," a unique number identifying the Cardano network.
A promise that resolves to the network magic number (e.g., Mainnet: 764824073, Preprod: 1).
Fetches and parses all reward addresses controlled by the wallet.
A promise that resolves to an array of parsed RewardAddress objects.
Requests a CIP-8 compliant data signature from the wallet.
The address to sign with (as an Address object or Bech32 string).
The hex-encoded data payload to be signed.
A promise that resolves to the signature and public key.
Requests a transaction signature from the wallet and deserializes the resulting witness set.
The transaction to be signed, provided as a CBOR hex string.
If true, the wallet will only add its witness for multi-signature transactions.
A promise that resolves to the deserialized VkeyWitnessSet.
This class acts as an adapter, consuming the raw, CBOR-based API of a CIP-30 wallet and exposing methods that return deserialized, object types from Cometa.