klaytn / caver-js

Official caver-js repository
GNU Lesser General Public License v3.0
114 stars 75 forks source link

Is there a way to get transaction list of a smart contract? #318

Closed miraten closed 4 years ago

miraten commented 4 years ago

I want to get transaction list of a smart contract. As I know, there is no the exact API to get it.

Is there any plan to add new API to support it?

Please guide or suggest how to get it.

kjhman21 commented 4 years ago

Hi, @miraten. Thanks for filing an issue.

Do you want to get a list of transactions executing a specific smart contract using caver-js? I'm not sure, but I think this is what you are looking for. https://scope.klaytn.com/account/0x2e160a2b643c630e540243725764112f1bfdb1b3

Since this kinds of information is not stored in the blockchain data, caver-js cannot provide such data.

If I got it wrong, please let me know. Thanks again. :)

miraten commented 4 years ago

Hi, @kjhman21.

I am aware of the page you linked.

I wanted to get it by API method call.

Thanks anyway.

kjhman21 commented 4 years ago

@miraten If we do that in caver-js, we need to maintain a database somehow in caver-js. We do not have such a plan currently. Sorry for that.