0

I want to get all transaction associated with a contract in ethereum. I tried to found the solution with Web3, or etherscan API ,but i didn't found anything.

Thanks for your help :)

0

Suppose this is what you are looking for:

const url = 'https://api-rinkeby.etherscan.io/api';
const params = {
    module: 'account',
    action: 'txlist',
    address: self.contractAddress,
    sort: 'desc',
    startblock: '2027434',  // First contract transaction
};

$.getJSON(url, params, function(resp) { ... });

P.S.: Do not forget to put correct API network name into url.

1
  • Is this will give mme all the transactions associated to the contract : "self.contractAddress" ? I will test it and let you know if it works. Thank you :) May 20 '18 at 17:37

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.