Partially compatible with Ethereum Jrpc API
introduce
metamask is an Ethereum wallet that is widely used. In order to promote Vision faster, Vision is compatible with some of the main interfaces of metamask. For new Vision users, you can use metamask to create Vision users.
Compatible interfaces mainly include transfer type, deployment contract call contract type, adding tokens and currency transfer operations. The ide used to deploy the call contract is remix.
interface:
eth_sendRawTransaction (transfer \ deployment contract \ call non-constant contract)
eth_getTransactionReceipt (View transaction results)
eth_call (call the constant method of the contract)
Mainnet Links
- Network name : mainnet
- New RPC URL : https://infragrid.v.network/ethereum/compatible
- Chain ID : 888888
- Currency Symbol (optional) : VS
- Block Explorer URL (optional): https://www.visionscan.org/
Vpioneer Links
- Network name : vpioneer
- New RPC URL : https://vpioneer.infragrid.v.network/ethereum/compatible
- Chain ID : 666666
- Currency Symbol (optional) : VS
- Block Explorer URL (optional): https://www.visionscan.org/
You can use you own fullnode as RPC server. Set the RPC URL to "fullnode ip:7080/ethereum/compatible"
VS transfer
Steps:
Since the metamask account has 20 digits, the 46 of the Vision account must be replaced with 0x for transfer.
![en-transfer1.1.jpg 541](https://files.readme.io/a0988de-en-transfer1.1.jpg)
1 Click "Send"
![en-transfer1.2.jpg 541](https://files.readme.io/e108447-en-transfer1.2.jpg)
2 Fill in the transfer address, fuel price and restrictions (replace 46 of the V network address with 0x)
![en-transfer1.3.jpg 544](https://files.readme.io/b29c7ea-en-transfer1.3.jpg)
3 Confirm transfer information
![en-transfer1.4.jpg 548](https://files.readme.io/b28af0d-en-transfer1.4.jpg)
4 After the transaction is confirmed, you can check the transaction status in the event
Deploy the contract to call the contract instance
![en-deploy1.1.jpg 1280](https://files.readme.io/da1948b-en-deploy1.1.jpg)
1 After compiling the contract, click deploy or transact
![en-deploy1.2.jpg 521](https://files.readme.io/f4f6726-en-deploy1.2.jpg)
2 Fill in fuel prices and restrictions
![en-deploy1.3.jpg 533](https://files.readme.io/8523d72-en-deploy1.3.jpg)
3 After clicking Confirm, you can view the deployment status in the event
![en-deploy1.4.jpg 479](https://files.readme.io/a98274f-en-deploy1.4.jpg)
4 After the deployment is successful, the contract method can be seen in the left navigation bar and called
Add tokens and transfer examples
![en-token1.1.jpg 543](https://files.readme.io/072bbcd-en-token1.1.jpg)
1 Take vrc20 as an example, click "Add Token" in the asset, and fill in the contract address on the Add Token page (46 is replaced by 0x)
![en-token1.2.jpg 547](https://files.readme.io/ff9e2ce-en-token1.2.jpg)
2 Click on'Add Token'
![en-token1.3.jpg 538](https://files.readme.io/400ca51-en-token1.3.jpg)
3 After the addition is successful, you can view the token balance in the asset
![en-token1.4.jpg 540](https://files.readme.io/e743734-en-token1.4.jpg)
4 Transfer currency Click "Send" on the asset page like a transfer
![en-token1.5.jpg 537](https://files.readme.io/edc3f1d-en-token1.5.jpg)
5 Fill in the sending address, fuel price and fuel limit and click "Next"
![en-token1.6.jpg 545](https://files.readme.io/a9ca61f-en-token1.6.jpg)
6 Confirmation information
![en-token1.7.jpg 544](https://files.readme.io/04a6b48-en-token1.7.jpg)
7 Repeat operations 1-3 at the sending destination to check the token balance
![en-token1.8.jpg 539](https://files.readme.io/f370778-en-token1.8.jpg)
8 Check balance
Updated over 2 years ago