BitcoinModule class
Module for Bitcoin blockchain operations.
This module provides methods for signing messages, signing PSBTs, sending transactions, building PSBTs, and querying balance on the Bitcoin blockchain.
Access this module via DynamicSDK.instance.bitcoin.
Constructors
- BitcoinModule(MessageTransport messageTransport)
- Creates a new BitcoinModule instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestChannel ↔ RequestChannel
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildPsbt(
{required String walletId, required String recipientAddress, required String amount, String? feePriority}) → Future< String> - Builds an unsigned PSBT for a Bitcoin transaction.
-
getBalance(
{required String walletId}) → Future< String> - Gets the balance of the specified Bitcoin wallet.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendBitcoin(
{required String walletId, required String recipientAddress, required String amount, String? feePriority}) → Future< String> - Sends Bitcoin from the specified wallet to a recipient address.
-
sendRawTransaction(
{required String walletId, required String rawTransaction}) → Future< String> - Broadcasts a raw Bitcoin transaction to the network.
-
signMessage(
{required String walletId, required String message, String? protocol, String? addressType, Map< String, dynamic> ? approvalQuorum}) → Future<String> - Signs a message using the specified Bitcoin wallet.
-
signPsbt(
{required String walletId, required Map< String, dynamic> request, Map<String, dynamic> ? approvalQuorum}) → Future<String> - Signs a PSBT using the specified Bitcoin wallet.
-
signPsbts(
{required String walletId, required List< Map< requests, Map<String, dynamic> >String, dynamic> ? approvalQuorum}) → Future<List< String> > - Signs multiple PSBTs using the specified Bitcoin wallet.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited