Given a public key, scan the blockchain and return a list of metadata-objects describing every contract associated with that public key and its hash. The metadata-object should contain the wallet address of the sender and the recipient, value, and timestamp of the containing block.
[ ] Custom metadata object created that contains
Timestamp of block that the contract is contained in
Sender wallet address
Recipient wallet address
Value
Test setup with the following cases:
[ ] Given a wallet address, a block with no contracts in it
[ ] Given a wallet address, a block with that wallet address as the sender in a contract
[ ] Given a wallet address, a block with that wallet address as a recipient in a contract
Given a public key, scan the blockchain and return a list of metadata-objects describing every contract associated with that public key and its hash. The metadata-object should contain the wallet address of the sender and the recipient, value, and timestamp of the containing block.
Test setup with the following cases: