ReadonlyarkReadonlyarkReadonlyboardingReadonlycontractReadonlydustReadonlyforfeitReadonlyforfeitReadonlyidentityReadonlyindexerReadonlynetworkReadonlynetworkReadonlyoffchainReadonlyonchainReadonlyrenewalReadonlyserverReadonlywalletStaticMIN_The intent ID.
The inputs of the intent.
Optionalsession: SignerSessionThe musig2 signing session, if not provided, the signing will be skipped.
Finalizes pending transactions by retrieving them from the server and finalizing each one.
Optionalvtxos: ExtendedVirtualCoin[]Optional list of VTXOs to use instead of retrieving them from the server
Array of transaction IDs that were finalized
Optionalfilter: GetVtxosFilterOptionalparams: SettleParamsOptionaleventCallback: (event: SettlementEvent) => voidConvert this wallet to a readonly wallet.
A readonly wallet with the same configuration but readonly identity
const wallet = await Wallet.create({ identity: SingleKey.fromHex('...'), ... });
const readonlyWallet = await wallet.toReadonly();
// Can query balance and addresses
const balance = await readonlyWallet.getBalance();
const address = await readonlyWallet.getAddress();
// But cannot send transactions (type error)
// readonlyWallet.sendBitcoin(...); // TypeScript error
Staticcreate
Main wallet implementation for Bitcoin transactions with Ark protocol support. The wallet does not store any data locally and relies on Ark and onchain providers to fetch UTXOs and VTXOs.
Example