Application call

Interact with a decentralised application: store a value on the blockchain.

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.

Overview of the Smart Contract's behavior
circle-info

The smart contract source can be found herearrow-up-right.

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 Testnetarrow-up-right, using the transaction ID printed WEXZJNY4UIVTZLYP2DXMZZTA5FMEEOLCQCVM6J66DZDCAW6YJWZQ.

Here is the status of the transaction:

Application call transaction

Opt-In

If the account calling the smart contract never opted in the application, it will be automatically done.

Last updated

Was this helpful?