0

I just want to get list of function names from smart contract abi. Please guide

1 Answer 1

1

In JavaScript:

let AbiJson = `Your ABI JSON string`

let abi = JSON.parse(AbiJson);

for(let item of abi) {
    if(item.name)
        console.log(item.name);
}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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