Contract interaction refers to the process of communicating and operating with smart contracts on the blockchain via a wallet. A smart contract is a piece of automated code deployed on the blockchain that triggers specific logic or functionality based on input.
The CoinEx Vault “Contract Interaction” offers two types of interaction: Read and Write.
- Read: Read on-chain information from the smart contract, eg. balance, account records, contract parameters. Query only, do not modify the data on the blockchain; the operation does not require a Gas fee.
- Write: Trigger the smart contract to perform logical operations, send a transaction to call the contract function, such as transfer, staking, and minting. The operation modifies the data on the blockchain. The Gas fee is required.
The following tutorial takes writing a contract as an example.
Step 1: Confirm the interaction network.
Enter the group multi-signature wallet that you want to interact with the contract, click “More - Contract Interaction”, and select the network that you want to interact with the contract.
Step 2: Search for the contract.
Select the Contract Interaction, enter the contract address, and click “Search Contract”.
Step 3: Write a contract.
Select “Write contract”, find the action, such as “approve”, and click to expand the input box.
Fill in the information as required and click “write” after confirming that the information is correct.
Double-check the info and add a description for the interaction, then click “Apply”.
Step 4: Cold wallet authorization.
After the request is successfully submitted, it will be verified with the App to agree to create the request. After the approval, multi-signing, and broadcast are completed, the contract interaction can be achieved.