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

Function getABIfromEtherscan

scripts/tokenInfo-v2.js:109–124  ·  view source on GitHub ↗
(_address)

Source from the content-addressed store, hash-verified

107}
108
109async function getABIfromEtherscan(_address) {
110 let urlDomain = "api";
111 const options = {
112 url: `https://${urlDomain}.etherscan.io/api`,
113 qs: {
114 module: "contract",
115 action: "getabi",
116 address: _address,
117 apikey: "THM9IUVC2DJJ6J5MTICDE6H1HGQK14X559"
118 },
119 method: "GET",
120 json: true
121 };
122 let data = await request(options);
123 return JSON.parse(data.result);
124}
125
126getTokens();

Callers 1

getTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected