I'm hoping to implement something like this, for even external tokens:

transaction_details(address, token_contract)

which will return the transaction history, i.e. sender, receiver, amount, timestamp...

Is this possible from inside a smart contract?


You can, but it's going to be nontrivial, as smart contracts do not have direct access to the transaction history of the blockchain, only to the current state.

With a tool like Oraclize you can get data from outside the smart contract ecosystem and use them inside of it. Depending on your use-case however, you probably had better keep this functionality off-chain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.