Send Transactions
Sign and send transactions on the Quai and Qi ledgers.
Configure Wallet
To send a Quai transaction, you’ll first need to connect a Wallet or QuaiHDWallet to a Provider.
Build Transaction
Then, build the transaction you want to send using the QuaiTransactionRequest type.
The above transaction is a simple value transfer. Additional transaction params for more complex transactions can be found in the QuaiTransaction class.
Send and Sign Transaction
Finally, sign and broadcast the transaction using your wallet of choice.
Configure Wallet
To send a Quai transaction, you’ll first need to connect a Wallet or QuaiHDWallet to a Provider.
Build Transaction
Then, build the transaction you want to send using the QuaiTransactionRequest type.
The above transaction is a simple value transfer. Additional transaction params for more complex transactions can be found in the QuaiTransaction class.
Send and Sign Transaction
Finally, sign and broadcast the transaction using your wallet of choice.
Configure Wallet
To send a Qi transaction, you’ll first need to connect a QiHDWallet to a Provider and sync the UTXO set.
Syncing the UTXO set will retrieve standard and change addresses, as well as scan the specified account for addresses with unspent outputs. You’ll need the wallet outpoints and addresses to build a transaction.
Build Transaction
Using the addresses and outpoints from the UTXO set, build the transaction you want to send using the QiTransactionRequest type.
Send and Sign Transaction
Finally, sign and broadcast the transaction.
Was this page helpful?