TRANSACTION_CONFIRMED
On a TRANSACTION_CONFIRMED event, a previously broadcast transaction via the dapi has been confirmed by the blockchain.
Parameter
Description
chainId: number
ChainId is the type of wallet selection network
txid: string
Transaction id which was confirmed on chain
blockHeight: number
Height of the new block
blockTime: number
Timestamp of the new block
Example
neoline.addEventListener(neoline.EVENT.TRANSACTION_CONFIRMED, (result) => {
console.log('Transaction confirmation detail:', result);
});
/* Another */
window.addEventListener('NEOLine.NEO.EVENT.TRANSACTION_CONFIRMED', (result) => {
console.log('Transaction confirmation detail:', result.detail);
});
最后更新于
这有帮助吗?