BuildTransaction class
Class that builds transactions and return OutputTx ready for broadcasting.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cosmos(
{required HDWallet wallet, required int coin, required String amount, required String toAddress, required String chainId, required String denomination, required String accountNumber, required String sequence, String fee = '0', String gas = '200000', int broadcastMode = 0}) → Transaction - Cosmos native transactions.
-
ethereumEIP1559(
{required HDWallet wallet, required BigInt amount, required String toAddress, required int nonce, String maxInclusionFeePerGas = '2000000000', required BigInt maxFeePerGas, required BigInt gasLimit, int chainId = 1, int coinType = TWCoinType.TWCoinTypeEthereum, String? data}) → Transaction - Ethereum native transactions. EIP-1559 type transaction.
-
ethereumERC1155TokenEIP1559(
{required HDWallet wallet, required BigInt amount, required String tokenContract, required String toAddress, required int nonce, String maxInclusionFeePerGas = '2000000000', required BigInt maxFeePerGas, required BigInt gasLimit, required int tokenId, int chainId = 1, int coinType = TWCoinType.TWCoinTypeEthereum, String? data}) → Transaction - Ethereum ERC1155 token transactions. EIP-1559 type transaction.
-
ethereumERC1155TokenLegacy(
{required HDWallet wallet, required BigInt amount, required String tokenContract, required String toAddress, required int nonce, required BigInt gasPrice, required BigInt gasLimit, required int tokenId, int chainId = 56, int coinType = TWCoinType.TWCoinTypeSmartChain, String? data}) → Transaction - Ethereum ERC1155 token transactions. Legacy type transaction.
-
ethereumERC20TokenEIP1559(
{required HDWallet wallet, required BigInt amount, required String tokenContract, required String toAddress, required int nonce, String maxInclusionFeePerGas = '2000000000', required BigInt maxFeePerGas, required BigInt gasLimit, int chainId = 1, int coinType = TWCoinType.TWCoinTypeEthereum}) → Transaction - Ethereum ERC20 token transactions. EIP-1559 type transaction.
-
ethereumERC20TokenLegacy(
{required HDWallet wallet, required BigInt amount, required String tokenContract, required String toAddress, required int nonce, required BigInt gasPrice, required BigInt gasLimit, int chainId = 56, int coinType = TWCoinType.TWCoinTypeSmartChain}) → Transaction - Ethereum ERC20 token transactions. Legacy type transaction.
-
ethereumLegacy(
{required HDWallet wallet, required BigInt amount, required String toAddress, required int nonce, required BigInt gasPrice, required BigInt gasLimit, int chainId = 56, int coinType = TWCoinType.TWCoinTypeSmartChain, String? data}) → Transaction - Ethereum native transactions. Legacy type transaction.
-
solana(
{required HDWallet wallet, required String recipient, required BigInt amount, required String latestBlockHash, required BigInt fee}) → Transaction - Solana native transaction.
-
solanaToken(
{required HDWallet wallet, required String recipientSolanaAddress, required String tokenMintAddress, required BigInt amount, required int decimals, required String latestBlockHash, required BigInt fee}) → Transaction - Solana token transaction.
-
utxoCoin(
{required HDWallet wallet, required int coin, required String toAddress, required BigInt amount, required BigInt byteFee, required List utxo}) → Transaction - Utxo coins transaction.
-
utxoCoinWithExceptionHandling(
{required HDWallet wallet, required int coin, required String toAddress, required BigInt amount, required BigInt byteFee, required List utxo}) → Transaction - Utxo coins transaction that handles exceptions.