How to connect OLT Mainnet with Metamask with 0x address

Posted by OneLedger on Nov 3, 2021 9:59:43 AM



Setup MetaMask wallet & Configure it to connect to OLT — Explore the OneLedgerProtocol’s interoperability.

Experience the newest oneledger mainnet blockchain explorer and OLVM. Developers now have the capability to launch the OneLedger Full node in a matter of seconds. By launching the full node, developers get access to the OneLedger blockchain network, where they can develop and deploy their own Solidity smart contracts and have the ability to create decentralized applications.

The newest oneledger mainnet blockchain explorer and OLVM are now available. The OneLedger Full node may now be launched in a matter of seconds by developers. Developers that launch the complete node have access to the OneLedger blockchain network, where they may construct decentralized apps and design and deploy their own Solidity smart contracts. 

Furthermore, any user can connect to metamask directly from the mainnet Network. This allows Ledgerians to transmit funds from any OneLedger wallet (OneWallet or exchanges) to any MetaMask wallet (or any web3 wallets)with 0x addresses.

In addition, any user can simply connect to metamask in an effort to support the mainnet Network. By connecting to MetaMask, you will be able to send funds from any OneLedger wallet(OneWallet or exchanges)to any metamask wallet (any web3 wallets) with 0x addresses.

 

 

How to set up OneLedger mainnet on metamask

OneLedger mainnet config for Metamask custom RPC:

Name: OneLedger Mainnet

RPC: https://mainnet-rpc.oneledger.network

Chain ID: 311752642

Coin: OLT

Explorer: https://mainnet-explorer.oneledger.network

 

 

In order to make OLVM compatible with such instruments as truffle, remix, hardhat etc. and with wallets like Metamask, MyEtherWallet etc. (or briefly web3 wallets), 0x will be used in parallel with 0lt prefix. Technically the main important part of an address is the last 20 bytes (of 40 last strings).

Let's take a look example scenario below:

Some OneLedgerian user (Alice) with the address 0ltc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (created via OneWallet) and wants to send his friend (Bob) 10 OLT tokens, but Bob has a wallet in the MetaMask. Bob has an address in his wallet 0xdac17f958d2ee523a2206206994597c13d831ec7. So in order to send OLT tokens to Bob, Alice will change prefix from 0x to 0lt (0ltdac17f958d2ee523a2206206994597c13d831ec7 instead of 0xdac17f958d2ee523a2206206994597c13d831ec7) and she could make this transfer. So the main important part is this - dac17f958d2ee523a2206206994597c13d831ec7 (last 40 strings).

Bob imagined that 10 OLT for him was too much and he want to send it back to Alice 7 OLT. So Bob could do send back to Alice with several ways:

  1. Take a look in MetaMask history the Alice address, copy it and send;
  2. Bob could ask Alice address from OneWallet and she could provide her address - 0ltc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, so Bob could take it, remove 0lt prefix and provide recipient as c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (or 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2). When transaction will be mined, Alice will receive her 7 OLT on OneWallet address 0ltc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.

So you can use wallet address 0ltc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 as 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (0x representation) for users, who use web3 wallet, and also 0x will be supported as recipient (to send directly to web3 wallets).

 

Sending 10OLT from Onewallet to 0x wallets on metamask : using 0x address as recipient

 

Payment successful :

 

Send back 10OLT from Metamask to OneWallet: Sending 0x as recipient address

 

 

Payment successful :

 

Tags: TECH, ALL