https://github.com/aeternity/aepp-calldata-js/blob/master/src/ContractEncoder.js https://github.com/aeternity/aepp-calldata-js/blob/7a2e022008bdf94f5c75c164776784980a7d165d/tests/ContractEncoder.js#L19-L58 It returns a lot of interesting things. Some of them are a list of defined entrypoints, also aescan can extract a list of defined constants.