Once you have uploaded and deployed or linked a smart contract you can then interact with it through either the UI or the API. We can divide the interaction into two categories of attributes: Read values and Write values.
Read values do not incur a transaction cost and can generally be read from the blockchain without the need for a wallet.
Write values are attributes that require the correct composition, signing, and submission of a transaction to the blockchain.
From the UI you can select Contracts > Contracts from the main menu then click on one of the uploaded contracts. There are then two ways to reach an instance contract:
Read values are read-only methods and publicly exposed variables in the contract. In the UI, read values are automatically queried and displayed on the Details section on the contract page.
To query a read only property you can make a POST request like the following.
Even though the function does not modify the blockchain state, we use a POST request instead of a GET request because the both the function and MultiBaas may take additional parameters. MultiBaas can take additional parameters to support functionality such as type conversions.
Write values are functions that affect the blockchain state. In the UI, write values and functions that take parameters (including "pure" functions which neither read nor write from the blockchain) are grouped together in the Methods section of the contract page.
To execute a function on the contract:
If the transaction succeeds, a success message containing the transaction hash and other details will appear below the dialogue.
To submit a function call via the API you can make a request like the following:
MultiBaas returns the composed transaction. It will also be correctly wrapped if the from address belongs to a multi-signature wallet that is known to MultiBaas. Your application can then submit the transaction to a provider for signing and sending to the blockchain.
MultiBaas comes with a number of sample smart contracts pre-installed. They may be linked to deployed contracts on the blockchain or just...
Multisignature (multisig) wallets are smart contracts that allow multiple signers to review and agree on an action on the blockchain ...