Application call
Interact with a decentralised application: store a value on the blockchain.
Last updated
Interact with a decentralised application: store a value on the blockchain.
Last updated
We have set up a really simple stateful smart contract to test the application calls. This smart contract is expecting an integer as a parameter. It then stores the sum of values and the number of values as global states within the application and the last value sent as a local state in the user account.
The smart contract source can be found here.
Once you've put some money into your account, you can run the Unix example program with the -a
flag:
Now you can check the transaction status on AlgoExplorer for Testnet, using the transaction ID printed WEXZJNY4UIVTZLYP2DXMZZTA5FMEEOLCQCVM6J66DZDCAW6YJWZQ
.
Here is the status of the transaction:
If the account calling the smart contract never opted in the application, it will be automatically done.