Substrate Contracts UI

Substrate Contract UI is a web application for deploying and interacting with smart contracts on Aleph Zero blockchains. Developers and users may need to use it when:

  • There is no other interface available.

  • Verifying smart contract data on a third party application.

  • Deploying a smart contract.

To upload and instantiate a contract, you need the smart contract's .contract file. To interact with a smart contract that is already on chain, you need the smart contract's address and ABI, either a .json, .contract or .wasm file.

Usually a user would have to dig through Github to either find or generate these files. With Smart Contract Hub, you can find the files with the contract's address if available.

Example

User wants to interact with a contract on Aleph Zero with address 5HMYuwaZt2F9L7VaS89Z8w4EZ2Azu2SoFthaeE6YTHEBD7dg.

  1. Open up a tab in your browser and goto Substrate Contract UI.

  2. Switch to Aleph Zero.

  3. Click on "Add New Contract"

  4. Click on "Use On-Chain Contract Address"

  5. Add contract address 5HMYuwaZt2F9L7VaS89Z8w4EZ2Azu2SoFthaeE6YTHEBD7dg

  6. Enter contract name "Groups | btn.group"

  7. Open a new tab in your browser and goto Smart Contract Hub.

  8. Enter contract address 5HMYuwaZt2F9L7VaS89Z8w4EZ2Azu2SoFthaeE6YTHEBD7dg into search input

  9. Expand the result.

  10. Download the ABI.

  11. Switch back to the Substrate Contracts UI tab and upload the ABI.

  12. Click the "Add contract" button and you should be good to go.

Last updated