The TransactionReceipt object provides information about a transaction, as well as various methods to aid in debugging.
Authorize a transfer between two wallets
>>> token.approve(<to_wallet>, amount, {'from': <to_wallet>})
Prebuilt function to move tokens between two wallets. Will fail without approval.
>>> token.transferFrom(
<from_wallet>,
<to_wallet>,
<amount>
{'from': <to_wallet>})
When a test fails, open a console to allow interactive debugging.
$ brownie test --interactive
The history variable provides a list of every transaction made in the current session
>>> history
[ <tx1>, <tx2>, ... ]
Create a TransactionReceipt object from a transaction hash
>>> chain.get_transaction(<txhash>)