I'm looking for a way to encode smart contract calls in javascript code with polkadot-js, the same way I can do it from the web UI, but I cannot find a description of the available API in the documentation
- is there a better documentation somewhere describing the methods and their arguments available somewhere?
- How should I use the ABI in my .contract file to encode a function call to a smart contract?
The contract is written in ink and the chain uses the contracts pallet.
Parts of the functionally will use some code written in Rust and executed as wasm in the browser so if it is easier to do in no_std rust that is also an option for me