{"id":61627,"date":"2022-05-18T14:06:23","date_gmt":"2022-05-18T11:06:23","guid":{"rendered":"https:\/\/forklog.com\/en\/?p=61627"},"modified":"2025-09-05T13:17:15","modified_gmt":"2025-09-05T10:17:15","slug":"move-to-the-fast-lane-how-to-port-an-application-from-an-evm-chain-to-velas","status":"publish","type":"post","link":"https:\/\/forklog.com\/en\/move-to-the-fast-lane-how-to-port-an-application-from-an-evm-chain-to-velas\/","title":{"rendered":"Move to the fast lane: how to port an application from an EVM chain to Velas"},"content":{"rendered":"<p>Ethereum and <span data-descr=\"Ethereum Virtual Machine, a virtual machine for executing smart contracts.\" class=\"old_tooltip\">EVM<\/span> de facto became the standard for building decentralized applications. Developers <span data-descr=\"decentralized applications\" class=\"old_tooltip\">dapps<\/span> use the Ethereum Virtual Machine so as not to reinvent the wheel. But EVM chains often inherit Ethereum&#8217;s consensus algorithm, as well as its low throughput and high transaction costs.<\/p>\n<p>The creators of <a class=\"tracking_link\" href=\"http:\/\/velas.com\/ru\" target=\"_blank\" rel=\"noopener\">Velas<\/a> have addressed the problem of speed and transaction costs: this blockchain runs on Solana technology and is compatible with the EVM. By changing only a single line of code, developers can port their project to Velas. We explain how to do it.<\/p>\n<h2 class=\\\"wp-block-heading\\\">Why migrate a project to Velas<\/h2>\n<p>One of the problems with Ethereum and most EVM chains is low throughput and high transaction fees, which constrain users with small deposits. According to <a href=\\\"https:\/\/bitinfocharts.com\/comparison\/ethereum-transactionfees.html#3y\\\">BitinfoCharts<\/a>, the average transaction fee in the network of the second cryptocurrency stands at $11.<\/p>\n<p>Developers migrate to cheaper blockchains. For example, the company Tether issued the stablecoin USDT on Tron and <a href=\\\"https:\/\/tether.to\/ru\/transparency\\\">other blockchains<\/a>, to broaden its audience and make it more accessible to users.<\/p>\n<h2 class=\\\"wp-block-heading\\\">How Velas runs two virtual machines simultaneously<\/h2>\n<p>The Velas blockchain uses <a href=\"https:\/\/forklog.com\/en\/news\/what-is-velas\">hybrid consensus algorithm<\/a> \u2014 Proof-of-History\/Proof-of-Stake. It runs on Solana technology, which gives the network a throughput of over 50,000 transactions per second (Transactions Per Second, TPS). At this level of TPS, transaction fees are around $0.0001.<\/p>\n<p>Nodes in the network wrap EVM transactions in native eBPF format and append an instruction to invoke the transpiler program. They then compile transactions into virtual blocks, which in turn form a <a class=\\\"tracking_link\\\" href=\\\"https:\/\/evmexplorer.velas.com\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">separate EVM blockchain<\/a>.<\/p>\n<p>Velas nodes also support standard methods <a class=\\\"tracking_link\\\" href=\\\"https:\/\/docs.velas.com\/evm\/rpc\/\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">Ethereum JSON-RPC API<\/a> such as eth_getBalance or eth_getBlockByNumber. These methods query the EVM blockchain.<\/p>\n<p>For executing transactions, users pay fees in native VLX tokens. Such transactions achieve finality after three confirmations in the native blockchain \u2014 on average in 1.2 seconds.<\/p>\n<figure class=\\\"wp-block-image size-large\\\"><img loading=\\\"lazy\\\" decoding=\\\"async\\\" width=\\\"1024\\\" height=\\\"953\\\" src=\\\"https:\/\/forklog.com\/wp-content\/uploads\/image2-328-1024x953.png\\\" alt=\\\"Move to the fast lane: how to port an application from an EVM chain to Velas\\\" class=\\\"wp-image-173471\\\" srcset=\\\"https:\/\/forklog.com\/wp-content\/uploads\/image2-328-1024x953.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/image2-328-300x279.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/image2-328-768x714.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/image2-328-1536x1429.png 1536w, https:\/\/forklog.com\/wp-content\/uploads\/image2-328.png 1978w\\\" sizes=\\\"auto, (max-width: 1024px) 100vw, 1024px\\\" \/><figcaption><a href=\\\"https:\/\/evmexplorer.velas.com\/tx\/0x84a9884c0a6d41640b8874228f059a2713404c630546a1b817ec78df1dd92d22\/token-transfers\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Token transfers<\/a> into Velas EVM. The transaction was confirmed in 1.286 seconds, with a fee of $0.000151.<\/figcaption><\/figure>\n<p>In the end, Velas-hosted applications run much faster and cheaper than on other EVM blockchains.<\/p>\n<p>Moreover, migration to Velas can allow developers to skip re-auditing smart contracts, since their code does not change.<\/p>\n<h2 class=\\\"wp-block-heading\\\">How to port a dapp or a smart contract to Velas<\/h2>\n<p>To deploy a Solidity smart contract on Velas, you only need to replace the RPC provider URL with <em>evmexplorer.velas.com\/rpc<\/em>.<\/p>\n<p>For example, when using the Web3 library:<\/p>\n<pre class=\\\"wp-block-code\\\"><code>const web3 = new Web3(\\nnew Web3.providers.HttpProvider(\u2018https:\/\/blockchain-rpc\u2019));<\/code><\/pre>\n<p>to:<\/p>\n<pre class=\\\"wp-block-code\\\"><code>const web3 = new Web3(\\nnew Web3.providers.HttpProvider(\u2019https:\/\/evmexplorer.velas.com\/rpc\u2019));<\/code><\/pre>\n<p>If you use Hardhat or Truffle for deployment, replace in config.js:<\/p>\n<pre class=\\\"wp-block-code\\\"><code>url: \\\"https:\/\/blockchain-rpc\\\",\nchainId: \\\"*\\\",\n<\/code><\/pre>\n<p>with:<\/p>\n<pre class=\\\"wp-block-code\\\"><code>url: \\\"https:\/\/evmexplorer.velas.com\/rpc\\\",\nchainId: 106,\n<\/code><\/pre>\n<p>To test contract functionality on Velas, insert <a class=\\\"tracking_link\\\" href=\\\"https:\/\/docs.velas.com\/evm\/#network-details\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">RPC testnet<\/a>.<\/p>\n<p>For deploying contracts, you will need to pay transaction fees in VLX tokens. They are traded on Uniswap and centralized exchanges: Bittrex, KuCoin, Gate.io and others. The full list of VLX spot pairs is shown on CoinMarketCap.<\/p>\n<p>The Velas network can be added to the MetaMask wallet. To do this, go to network settings, click <strong>Add a network<\/strong> and fill in the fields:<\/p>\n<ul class=\\\"wp-block-list\\\">\n<li>Network name \u2014 Velas;<\/li>\n<li>RPC URL \u2014 https:\/\/evmexplorer.velas.com\/rpc;<\/li>\n<li>Chain ID \u2014 106;<\/li>\n<li>Symbol \u2014 VLX;<\/li>\n<li>Block explorer \u2014 https:\/\/evmexplorer.velas.com.<\/li>\n<\/ul>\n<figure class=\\\"wp-block-image size-large\\\"><img loading=\\\"lazy\\\" decoding=\\\"async\\\" width=\\\"1024\\\" height=\\\"860\\\" src=\\\"https:\/\/forklog.com\/wp-content\/uploads\/image1-510-1024x860.png\\\" alt=\\\"Move to the fast lane: how to port an application from an EVM chain to Velas\\\" class=\\\"wp-image-173478\\\" srcset=\\\"https:\/\/forklog.com\/wp-content\/uploads\/image1-510-1024x860.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/image1-510-300x252.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/image1-510-768x645.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/image1-510-1536x1289.png 1536w, https:\/\/forklog.com\/wp-content\/uploads\/image1-510.png 1999w\\\" sizes=\\\"auto, (max-width: 1024px) 100vw, 1024px\\\" \/><\/figure>\n<h2 class=\\\"wp-block-heading\\\">Conclusions<\/h2>\n<p>Developers at <a class=\\\"tracking_link\\\" href=\\\"http:\/\/velas.com\/ru\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">Velas<\/a> have found a way to accelerate EVM applications \u2014 wrapping and executing them in Solana&#8217;s format. This approach enables finality within 1.2 seconds with fees of one-hundredth of a cent.<\/p>\n<p>Velas\u2019 EVM compatibility makes it easier to port applications. A developer only needs to replace the RPC provider URL in the deployment script. There is no longer a costly need to adapt code to the instructions of another virtual machine, re-testing, and auditing.<\/p>\n<p>Follow ForkLog&#8217;s bitcoin news in our <a href=\\\"\/\/telegram.me\/forklog\\\" target=\\\"\u201c_blank\u201d\\\" rel=\\\"\u201cnofollow\u201d noopener\\\">Telegram<\/a> \u2014 crypto news, rates and analytics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Velas developers have addressed the problem of speed and transaction costs: the blockchain runs on Solana technology and is compatible with the EVM. By changing only a single line of code, developers can port their project to Velas. We explain how to do it.<\/p>\n","protected":false},"author":1,"featured_media":61628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"2","news_style_id":"1","cryptorium_level":"","_short_excerpt_text":"","creation_source":"","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[1144],"tags":[433,2135],"class_list":["post-61627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-longreads","tag-evm","tag-velas"],"aioseo_notices":[],"amp_enabled":true,"views":"19","promo_type":"2","layout_type":"1","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/61627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/comments?post=61627"}],"version-history":[{"count":1,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/61627\/revisions"}],"predecessor-version":[{"id":61629,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/61627\/revisions\/61629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media\/61628"}],"wp:attachment":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media?parent=61627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/categories?post=61627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/tags?post=61627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}