With this component you can invoke a method from a Smart Contract in 2 different ways:
- Read-only: Using a call operation you can invoke a method that will not change anything on the block-chain and use no gas (Has no cost)
- Non read-only: Using a send operation you can invoke a method that will change the block-chain and to do that you will need to use gas (Thus it will have a cost and you will need to provide a origin wallet)
Check the info below for more details of what is needed in each case:
Read Only (Call Operation)
For a read-only transaction you will need the following information:
Non Read-Only (Send Operation)
For a non-read-only transaction you will need everything need for the call operation plus the following information:
Metamask
You can also use this component to interact with the MetaMask Chrome extension.
You can even use MetaMask to sign messages, without any interaction with a smart contract.
This message then can even be validate in the Server Side using a component like Nethereum.