Trying to retrieve contract entry points using the TezosContractIntrospector
The following code:
async function entry_points(){
const server={
url:'https://conseil-dev.cryptonomic-infra.tech:443',
apiKey:'foo',
network:'babylonnet
};
const contractAddress='KT1WRUe3csC1jiThN9KUtaji2bd412upfn1E';
const result=await conseiljs.TezosContractIntrospector.generateEntryPointsFromAddress(
server,
server['network'],
contractAddress
);
}
attempts to interact with the deployed contract from a medium post but results in the error:
conseiljs.min.js:2 Uncaught (in promise) TypeError: Cannot read property '0' of undefined
at Object.<anonymous> (conseiljs.min.js:2)
at Generator.next (<anonymous>)
at o (conseiljs.min.js:2)
If typeof
is used:
console.log(typeof(
conseiljs.TezosContractIntrospector.generateEntryPointsFromAddress(
server,
server['network'],
contractAddress
)
);
it is of type object
but I am unsure how to handle it.
I wish to find the entry points of a contract to use it to sendContractInvocationOperation
Any help is much appreciated
entry point
andparameters
. Where would I find this information via your linked page? Thanks