dAppBooster
    Preparing search index...
    TransactionButton: FC<TransactionButtonProps> = ...

    TransactionButton component that handles blockchain transaction submission and monitoring.

    Integrates with writeContractSync or sendTransactionSync functions to handle transaction submission and wait for confirmation. Displays transaction status and calls the onMined callback when the transaction is confirmed.

    TransactionButton component props.

    Function that initiates the transaction.

    Callback function called when transaction is mined.

    Whether the button is disabled.

    Button label during pending transaction.

    Number of confirmations to wait for.

    Button content.

    Additional props inherited from Chakra UI ButtonProps.

    <TransactionButton
    transaction={sendEthTransaction}
    onMined={(receipt) => console.log("Transaction confirmed:", receipt)}
    labelSending="Processing..."
    confirmations={3}
    >
    Send ETH
    </TransactionButton>