MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / getABIfromEtherscan

Function getABIfromEtherscan

scripts/tokenInfo-v1.js:87–102  ·  view source on GitHub ↗
(_address)

Source from the content-addressed store, hash-verified

85}
86
87async function getABIfromEtherscan(_address) {
88 let urlDomain = 'api';
89 const options = {
90 url: `https://${urlDomain}.etherscan.io/api`,
91 qs: {
92 module: 'contract',
93 action: 'getabi',
94 address: _address,
95 apikey: 'THM9IUVC2DJJ6J5MTICDE6H1HGQK14X559'
96 },
97 method: 'GET',
98 json: true
99 };
100 let data = await request(options);
101 return JSON.parse(data.result);
102}
103
104getTokens();

Callers 1

getTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected