SendTransaction

This event fires on transactions

The event return following parameters

// JavaScript

detail: {
    id: 'SendTransaction', // event name
    status: 'pending', // 
    txData: {}, // 
    txHash: [], // 
    tx: {}
}

Status description

pending

The transaction is signed and sent to the blockchain, but not yet added to the block

succes

Transaction added to block

error

Transaction not added to block

request_wallet

Transaction signature request sent to wallet

cancel

The transaction was rejected by the user, method the transaction that was canceled

Using

// JavaScript

window.addEventListener("SendTransaction", (event) => {
    console.log(event.detail.id, event.detail.status, event.detail.txData, event.detail.txHash, event.detail.tx)
})

Last updated