transactionManagerservice is used to track a transaction's status as it propagates through the blockchain.
transactionManager.listenwith callbacks, as shown below.
confirmedevent will not fire unless
transactionManager.confirmis called. This async function waits a number of blocks (default 5) after the transaction has been mined to resolve. To change this globally, set the
confirmedBlockCountattribute in Maker options. To change it for just one call, pass the number of blocks to wait as the second argument:
lockEth()which are composed of several internal transactions. These can be more accurately tracked by accessing
tx.metadatain the callback which contains both the
methodthe internal transactions were created from.
TransactionObjectalso has a few methods to provide further details on the transaction:
hash: transaction hash
fees(): amount of ether spent on gas
timeStamp(): timestamp of when transaction was mined
timeStampSubmitted(): timestamp of when transaction was submitted to the network