You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<TransactionButton
transaction={async () => {
if (!account)
return;
const transaction = transfer({
contract,
to: "0x613540d63666C26593Fce4694d10f7d5de76bdEd",
amount: 0.1,
});
var result = await sendTransaction({ transaction, account });
}}
onClick={() => alert("Transaction is about to be sent")}
onTransactionSent={(result) => {
console.log("Transaction submitted", result);
}}
onTransactionConfirmed={(receipt) => {
console.log("Transaction confirmed", receipt);
}}
onError={(error) => {
console.log("Transaction error", error);
}}
>
Confirm Transaction
</TransactionButton>
But can you show me an example of how I can do “Batch Transfer”? Unfortunately, the “Batch Transfer” examples in the Thirdweb document were not enough.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
<TransactionButton
transaction={async () => {
if (!account)
return;
const transaction = transfer({
contract,
to: "0x613540d63666C26593Fce4694d10f7d5de76bdEd",
amount: 0.1,
});
var result = await sendTransaction({ transaction, account });
}}
onClick={() => alert("Transaction is about to be sent")}
onTransactionSent={(result) => {
console.log("Transaction submitted", result);
}}
onTransactionConfirmed={(receipt) => {
console.log("Transaction confirmed", receipt);
}}
onError={(error) => {
console.log("Transaction error", error);
}}
>
Confirm Transaction
</TransactionButton>
But can you show me an example of how I can do “Batch Transfer”? Unfortunately, the “Batch Transfer” examples in the Thirdweb document were not enough.
Thank you in advance.
Hello,
Thank you for contacting us. To get help with your inquiry,
Hello,
How can I send to multiple addresses using
<TransactionButton/>
?I made sending to a single wallet as follows.
Link: https://portal.thirdweb.com/react/v5/components/TransactionButton
But can you show me an example of how I can do “Batch Transfer”? Unfortunately, the “Batch Transfer” examples in the Thirdweb document were not enough.
Thank you in advance.
The text was updated successfully, but these errors were encountered: