Interaction
Last updated
Last updated
This tutorial uses the SimpleStorage.sol
contract:
Make the set
call passing in your account address, value
as the updated value of the contract, and the amount of gas you are willing to spend for the transaction:
To verify that a value has been updated, perform a get
call after a set
update call.
Once the contract is deployed, you can perform a read operation using the get
function call and a write operation using the set
function call. This tutorial uses the library to interact with the contract. The Quorum Developer Quickstart provides a .
To perform a read operation, you need the address that the contract was deployed to and the contract's ABI. The contract's ABI can be obtained from compiling the contract; see the for an example.
Use the object to create a new instance of the smart contract, then make the get
function call from the contract's list of methods, which will return the value stored:
To perform a write operation, send a transaction to update the stored value. As with the , you need to use the address that the contract was deployed to and the contract's ABI. The account address must correspond to an actual account with some ACCES in it to perform the transaction.