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.

1 Click "Send"

2 Fill in the transfer address, fuel price and restrictions (replace 46 of the V network address with 0x)

3 Confirm transfer information

4 After the transaction is confirmed, you can check the transaction status in the event
Deploy the contract to call the contract instance

1 After compiling the contract, click deploy or transact

2 Fill in fuel prices and restrictions

3 After clicking Confirm, you can view the deployment status in the event

4 After the deployment is successful, the contract method can be seen in the left navigation bar and called
Add tokens and transfer examples

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)

2 Click on'Add Token'

3 After the addition is successful, you can view the token balance in the asset

4 Transfer currency Click "Send" on the asset page like a transfer

5 Fill in the sending address, fuel price and fuel limit and click "Next"

6 Confirmation information

7 Repeat operations 1-3 at the sending destination to check the token balance

8 Check balance
Updated about 3 years ago