HomeCoinsOntology (ONT)Everything You Need To Know About Ontology EVM Contract Development | by...

Everything You Need To Know About Ontology EVM Contract Development | by The Ontology Team | OntologyNetwork | Sep, 2021

- Advertisement -

Part 4: Web3 API and Ontology Bridge

The Ontology Team
1631852258 425 Everything You Need To Know About Ontology EVM Contract Development

In the last section, we demonstrated the Ontology EVM contract development process. In this section, we introduce a series of Web3 API references, and explain how to use the Ontology Bridge.

6.1 Ontology Bridge TestNet

A step-by-step guide is provided below:

1) Open the Ontology Bridge test network link and click Connect Wallet in the upper right corner.

Click Cyano and MetaMask respectively to connect a wallet. Once connected, you should see your wallet address displayed.

2) Select the asset to be exchanged and the type of asset to convert to.

An OEP-4 token being exchanged for an ORC-20 token is displayed below:

Click the Swap button and the following confirmation box will pop up. Click OK to complete the exchange of OEP-4 to ERC-20. If the exchange is successful, a successful exchange prompt box will pop up.

An ORC-20 token being exchanged for an OEP-4 token is displayed below:

This requires the Approve operation first. After the Approve is successful, the process is the same as the OEP-4 token exchange for the ORC-20 token described above

6.2 Exchange of ONG between Ethereum account address and Ontology account address

Proceed as follows:

  • Open the TestNet and connect to the wallet
  • Click the ONG Transfer button as shown in the figure below

The following two pictures show ONG transfers between different types of addresses. Of course, transfers between the same types are also possible.

This concludes our “Everything You Need To Know About Ontology EVM Contract Development” series: Part 1, Part 2, Part 3 and Part 4.

Don’t forget that the Ontology EVM-compatible public beta has been opened to developers around the world, and the “Security Vulnerability and Threat Intelligence Bounty Program” in cooperation with SlowMist Technology is also in progress. The reward for reporting a single vulnerability is up to $12,000!

Source link

- Advertisement -
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
462FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,497FollowersFollow
2,230SubscribersSubscribe

Most Popular

bitcoin
Bitcoin (BTC) $ 63,753.00
ethereum
Ethereum (ETH) $ 3,848.69
tether
Tether (USDT) $ 0.998535
bitcoin-cash
Bitcoin Cash (BCH) $ 609.16
litecoin
Litecoin (LTC) $ 186.48
eos
EOS (EOS) $ 4.46
okb
OKB (OKB) $ 20.72
tezos
Tezos (XTZ) $ 6.61
leo-token
LEO Token (LEO) $ 2.92
cardano
Cardano (ADA) $ 2.10
monero
Monero (XMR) $ 255.25
stellar
Stellar (XLM) $ 0.373191
chainlink
Chainlink (LINK) $ 26.03
huobi-token
Huobi Token (HT) $ 8.35
tron
TRON (TRX) $ 0.100396
usd-coin
USD Coin (USDC) $ 0.99952
dash
Dash (DASH) $ 190.06
neo
NEO (NEO) $ 42.58
iota
IOTA (MIOTA) $ 1.23
nem
NEM (XEM) $ 0.167633
zcash
Zcash (ZEC) $ 145.32
maker
Maker (MKR) $ 2,467.94
paxos-standard
Pax Dollar (USDP) $ 0.999609
ethereum-classic
Ethereum Classic (ETC) $ 52.32
vechain
VeChain (VET) $ 0.115917
true-usd
TrueUSD (TUSD) $ 0.999177
ftx-token
FTX Token (FTT) $ 56.57
kucoin-shares
KuCoin Token (KCS) $ 14.14
waves
Waves (WAVES) $ 28.37