Hi there! Jacob here with a new feature announcement on stats.gallery.
Introducing… the smart contract explorer!
Simply navigate to a smart contract account and click on the “Contract” tab to see the interactions interface. Example
Each of the buttons represents a method you can call on the contract. In this example, the contract also implements a few standard NEP interfaces. Those are auto-detected and have extra integrated functionality.
Let’s take a look at the ft_metadata
method.
An NEP-148 standard-compliant ft_metadata
method implementation is a view method that doesn’t take any arguments, so we can just click on the “View” button.
Let’s try ft_balance_of
, which takes an account ID as an argument.
What about non-standard method calls? stats.gallery has a clever auto-detect feature to help you choose parameters. It’s not always perfect, so you can modify them however you like.
What if you want to actually call a method on-chain instead of just viewing its state? Well, first we’ll have to log into the contract on stats.gallery.
Once you log in, you’ll be able to perform method calls on-chain, just like in any other dapp.
Enjoy!
WARNING: This tool provides an extremely generic UI over WASM smart contracts. It is not guaranteed to perform the same operations as, for example, method calls mediated by the NEAR CLI or a smart contract’s dedicated dapp. You should always double-check the method call and arguments on the transaction confirmation screen. Use at your own risk!