transactionManager
service is used to track a transaction's status as it propagates through the blockchain.pending
, mined
, confirmed
or error
.transactionManager.listen
with callbacks, as shown below.confirmed
event will not fire unless transactionManager.confirm
is 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 confirmedBlockCount
attribute 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.metadata
in the callback which contains both the contract
and the method
the internal transactions were created from.TransactionObject
also has a few methods to provide further details on the transaction:hash
: transaction hashfees()
: amount of ether spent on gastimeStamp()
: timestamp of when transaction was minedtimeStampSubmitted()
: timestamp of when transaction was submitted to the network