sCrypt IDE v0.5.0 allows users to deploy a contract to testnet and interact with it without writing a single line of code.
We need a private key of testnet to fund the deployment and calling transactions. To do so, open sCrypt settings in VSCode and input your private key.
- Before we deploy a contract, we need to compile it. Right click on it and select Compile to Bitcoin Script.
- Now click the sCrypt logo in the Activity Bar on the left, you should see your contract listed. Click on the contract you want to deploy and a panel similar to the following shall appear.
3. Input arguments in the panel and click Deploy. It should deploy your contract on testnet if everything goes well.
4. There is a new contract instance listed under Deployed Contracts. You can view the deployment transaction in a block explorer by clicking View Tx.
Click on the deployed contract, you can see a list of its methods. Click on the one you want to call, a Call panel shall appear similar to the Deploy panel we have seen. Similarly, input all arguments and click Call. Afterwards, you can also view the calling transaction by clicking on View Tx next to the method.
Enjoy and Happy New Year!