As discussed in the overview, smart contract transactions can do any number of things in the blockchain.
Depending on the intention of the transaction there are a few ways to view the results.
When you submit a transaction, and it is accepted by the master node, it will be assigned a transaction hash. This hash is a reference to your transaction and allows you to view the result later.
The following are ways to get the result of your transaction using the hash:
Using the below template you can retrieve the result of any transaction, using the hash:
Returns a transaction object.
From this object you can determine the following:
Transactions results can be viewed on the block explorer. Each network, testnet and mainnet, have their own block explorers.
If the purpose of the smart contract was to change some state in the blockchain. Each state value is associated to a key in storage.
Using the below template you can retrieve any CURRENT state value from a masternode:
TAU tokens balances are controlled by the currency smart contract and kept in the balances variable. Each wallet account is a key with an associated numerical value. Using the above template we can view the balance of an account directly from a Lamden Masternode.
See the IDE Get Current State section for directions.
Telegram: t.me/lamdenchatDiscord: discord.gg/xjBgcAAUpSReddit: reddit.com/r/lamden