Skip to main content

Questions tagged [evm]

Questions inquiring about using Substrate based EVMs including the EVM pallet or related tools.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How to use the Substrate H160 address to sign a transaction on moonbeam?

Woof and hello substrated people, I have a special issue where I need your support. I shared an extrinsic with my community to transfer $WIFD from AH to Moonbeam, so far so good. In this example "...
dogwifdots dev's user avatar
0 votes
0 answers
10 views

Runtime Upgrade from standard Node Template to Frontier Template Node

I’m curious, is it possible to do a runtime upgrade that also adds EVM functionality? Currently my project has a solochain that is already public and we’d like to integrate EVM functionality/...
Christian Kessler's user avatar
0 votes
0 answers
58 views

Clarifications on Gas and Weight Measurement in Frontier Precompiles

I have included frontier in my runtime and I am trying to correctly measure the gas and weights of my precompiles. I have some questions about using the functions that frontier provides. What is the ...
magecnion's user avatar
  • 344
0 votes
2 answers
22 views

looking for resource to create my evm compatible chain with native currency

I am looking for a quick and existing solution to fork and create my own EVM-compatible chain with a native currency
Chain Soft's user avatar
0 votes
1 answer
21 views

Error While Configuring EVM in Substrate Parachain: Conflict in 'syn' Crate

I am trying to configure the EVM for my Substrate parachain and encountered an issue during the process. I am following along with this tutorial. After implementing this commit as instructed in the ...
Syed Kamran's user avatar
0 votes
0 answers
17 views

Frontier: Transaction would exhaust the block limits

I am testing a parachain with Frontier included: Frontier Parachain Template. But when I am trying to deploy a smart contract following the steps in the Substrate Documentation: Access EVM accounts, I ...
Alex Bean's user avatar
  • 5,757
0 votes
1 answer
27 views

XVM Ink Wasm to EVM: Contract Reverted. Decoding Failed

I tried to deploy a XVM Wasm contract wrapping around a deployed EVM Solidity contract in my local node. Steps Deploy my EVM Solidity contract via Remix connecting to my local node //SPDX-License-...
Russo's user avatar
  • 1,193
0 votes
1 answer
44 views

How to Synchronize EVM and Substrate Balances in a Substrate Frontier Blockchain?

I am working on a Substrate-based blockchain using the Frontier template to achieve Ethereum compatibility. I am looking to synchronize the balance states between the EVM pallet and Substrate's native ...
Christian Kessler's user avatar
0 votes
0 answers
20 views

Gas Limit is over estimated for dex contract

i've been working with the dex smart contracts. Whenever i try to use the add liquidity function of the contract ,it has been calculating the gas limit of 1.3 billion in frontier1.1.0. In frontier v1....
Arunjot Singh's user avatar
2 votes
1 answer
38 views

How to impl FindAuthor<H160> with Babe

I want add pallet-evm in my substrate node. and my substrate node use Babe instead of Aura. How can I Impl FindAuthor whih Babe ? this is the example of Aura. I want to impl it with Babe pub struct ...
robin y's user avatar
  • 21
1 vote
0 answers
13 views

How can I manage the issue of excessive gas estimation in MetaMask when deploying a dapp contract on my WASM+EVM chain and calling its functions?

i am trying to deploy a dapp contract on my WASM + EVM based substrate chain but while calling the contract functions it gives me high gas estimation, how can i handle this issue?
Arunjot Singh's user avatar
1 vote
0 answers
16 views

Rpc call showing empty in evm integrated chain?

i have been working on polkadot layer 0 chain. i have integrated evm frontier on layer 0 chain and everything is working fine .when i try to call rpc (eth.getcode) it is showing empty . can some ...
Karanvir Singh's user avatar
0 votes
0 answers
20 views

How to integrate Eirgon EVM execution client into substrate chain

I am building a substrate based chain (not a parachain) and I require 100% EVM compatibility. As such, I would like to leverage erigon as an EVM execution client and use substrate as the consensus ...
TauLepton's user avatar
  • 107
0 votes
1 answer
25 views

No matching package named 'evm-gasometer found'

My node is on the substrate branch polkadot-v0.9.19. I have bumped it to polkadot-v0.9.22. After bumping the version I am trying to build the node in release mode using the following command. cargo ...
RRR's user avatar
  • 45
0 votes
0 answers
42 views

Event subscription error from EVM compatible Substrate chain

i'm trying to listen events against a solidity smart contract deployed on EVM compatible Substrate chain and getting following error Error listening event ChangeOwner : Error: Returned error: Method ...
BlockBird's user avatar
0 votes
1 answer
31 views

move Astr EVM from Metamask to Polkadt.js

I have Astar(Astr) on as an EVM on Metamask and want to eventually take profit on some of it and move that portion to USDT. My plan is to swap it for DOT first on Polkadot.js wallet. The problem is ...
Sal's user avatar
  • 1
0 votes
0 answers
47 views

Error querying evm rpc endpoint on a node run by Chopsticks

I'm trying to run a local node using Chopsticks and connect to it using Metamask, but when I make the request to the eth-rpc-adapter, it fails. Here are the steps I followed with the corresponding ...
magecnion's user avatar
  • 344
2 votes
1 answer
93 views

How to interact with EVM contracts using polkadotJS

Is there a tutorial explaining how to interact with EVM smart contracts using PolkadotJS?.
ChristianArg's user avatar
1 vote
1 answer
40 views

How to query the number of EVM contracts in a chain

Is there an easy way to query how many EVM smart contracts has been deployed in a Substrate chain?
ChristianArg's user avatar
1 vote
1 answer
52 views

AssetHub interaction with AccountId20

Say I want to send and receive tokens from AssetHub in my chain that is using AccountId20 format to interact with internal pallets. I understand that Rococo uses AccountId32 so how would I go about ...
Valentin Fernandez's user avatar
1 vote
0 answers
25 views

Setting Gas fees for substrate chain which has frontier integrated in it

I am deploying the default smart contract in remix ide to local substrate chain using Metamask to connect with the chain. The local chain uses frontier for EVM. But fees comes quite high. I want to ...
Rohitas_atr894's user avatar
2 votes
0 answers
54 views

Deployment of contract and calling its function is taking too much fees

I have configured the transaction fees to be approximately 40. However, when deploying a smart contract on an EVM-compatible chain, the fees amount to be 2300, and when calling this function, the ...
Arunjot Singh's user avatar
2 votes
1 answer
64 views

Getting the error of OutofGas evm

I've ensured EVM compatibility in my substrate-chain. The default contracts from Remix, such as storage, ballot, and owner are working correctly. However, when I deploy alternative contracts like ERC-...
Arunjot Singh's user avatar
1 vote
0 answers
28 views

how to solve mismatched type error in substrate?

I have been integrating paritytech frontier(0.9.43) version with the substrate 0.9.43 version . while integrating when i added frontier changes in rpc.rs and service.rs file i am facing this error. ...
Karanvir Singh's user avatar
0 votes
1 answer
207 views

How to convert h160 address to ss58 address?

I am a dApp developer in Astar. I want to convert EVM(h160) address to Substrate(ss58) address to implement the UI like the subscan page. https://astar.subscan.io/account/...
ttt's user avatar
  • 1
1 vote
1 answer
73 views

thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped)

we are running a stand alone Blockchain network by using POA consensus mechanism. The chain was working fine and after producing 8 Lac Blocks the nodes we down and now i have tried to re-execute same ...
BlockBird's user avatar
0 votes
0 answers
44 views

How to fix the gas limit using asset-erc20 precompile

When I transfer ERC in EVM with the classic method of deployed contract it set the gas limit correctly, however when I want to transfer using the precompile ( moonbeam one ) asset-erc20 ( from ...
Dubs's user avatar
  • 294
2 votes
0 answers
63 views

Deploy ink! contracts with unified accounts

I have a chain similar to mentioned in this question, where I'm trying to deploy ink! smart contracts. I'm setting my Environment like this: use ink::env::{Environment, DefaultEnvironment}; use ...
Discardo's user avatar
  • 436
0 votes
0 answers
64 views

Converting a H256/bytes32 into a generic AccountId for EVM precompiles

Overview We are building out a precompile for pallet-staking and have run into the tricky challenge of converting H256 types into generic AccountIds so that we can implement functions like nominate ...
Drew Stone's user avatar
  • 1,194
2 votes
1 answer
63 views

Obtain the balance of erc20 tokens with Polkadot JS

I'm seeking a method to retrieve the balances of all ERC20 tokens associated with an account using the Polkadot JS API. I've been unable to locate a specific API call that enables this functionality. ...
Brian Ramirez's user avatar
2 votes
1 answer
40 views

EVM solo to para migration on Genesis

I need to migrate the state of an EVM solochain (not substrate) into a Frontier-based parachain. The original chain has been running for a while with high activity, so the state is fairly big. I am ...
Bernardo Rodrigues's user avatar
0 votes
1 answer
65 views

Calling Precompiled Contracts from Other Contracts in EVM fails

I am in the process of working with a precompiled contract I created in my Frontier EVM. I encounter issues when attempting to call this precompiled contract from another contract. While direct calls ...
ALeSD's user avatar
  • 499
2 votes
1 answer
194 views

how to solve the sys error in substrate polkadot branch (polkadot-v0.9.43)

I have been integrating EVM(43 version) in 43 version of substrate. while adding files to runtime module i am getting sys error while building it .I want to know how to solve this error
Karanvir Singh's user avatar
0 votes
0 answers
33 views

Unable to recognise Shibuya account address to deploy an EVM contract on Shibuya network using Truffle

I want to make an XVM call from an ink! contract that is deployed to the Shibuya Wasm environment to a Solidity EVM contract that is deployed to the Shibuya EVM environment. To deploy the Solidity ...
Luke Schoen's user avatar
  • 2,346
0 votes
1 answer
68 views

In pallet-evm why do we need `WithdrawOrigin`?

For pallet-evm there's a config item, actually two config items that I would put under the same category and that is CallOrigin and WithdrawOrigin : pallet_evm::Config { /// Allow the origin ...
Purple_Turtle's user avatar
1 vote
1 answer
60 views

Frontier & Substrate

Hello we are using frontier, and we would like to remove gas fees for all evm transactons, I tried many things, but didn't achieve.. I still need to pass gas when I sign and send a transaction : await ...
cibou's user avatar
  • 131
0 votes
0 answers
83 views

Mapping EVM Address to Substrate Address with Preserved Balance

I'm working on a project involving an EVM-compatible Substrate blockchain and facing a challenge. The problem arises when trying to map Ethereum-based addresses, acquired through Metamask, to the ...
Mr Coder's user avatar
  • 923
2 votes
1 answer
128 views

Issues with Function Call on EVM-Compatible Substrate Using Metamask and Polkadot

I'm working on a project using an EVM-compatible Substrate blockchain. I am encountering problems when trying to call functions on this Substrate instance. Here's the function used to sign and send ...
Mr Coder's user avatar
  • 923
5 votes
1 answer
90 views

Read pallet state using Metamask

I would like to read the state of a pallet using web3 clients (Metamask, Truffle). Let's suppose the pallet has exposed the function getValue(). I have not installed either EVM and Ethereum pallet ...
magecnion's user avatar
  • 344
3 votes
1 answer
112 views

How substrate / frontier convert address

We are using frontier with substrate to be able to deploy evm smart contract. When I create a transfer between two evm address and that the second one does not exist, the node create a new ss58 ...
cibou's user avatar
  • 131
3 votes
0 answers
51 views

Unified Accounts [closed]

We have followed the comets of moonBeam and implemented Unified Accounts. Now we're facing issues while adding session keys for aura, grandpa and I'm online. we're using this method for Aura and ...
BlockBird's user avatar
2 votes
1 answer
59 views

Duplicate lang item error (E0152) with sp_io crate when integrating Frontier pallets with Substrate

I'm trying to make my Substrate-based blockchain compatible with Solidity and MetaMask. I've cloned Substrate from the polkadot-v0.9.39 branch and am trying to integrate Frontier's Ethereum ...
Mr Coder's user avatar
  • 923
2 votes
1 answer
148 views

How to Integrate a Substrate Chain with MetaMask and Implement Specific Features?

I am currently working on a project that involves creating a Substrate chain and I have several questions related to this: Integration with MetaMask: I want to be able to connect my Substrate chain to ...
Mr Coder's user avatar
  • 923
4 votes
1 answer
150 views

How can I retrieve the baseFeePerGas value for historical blocks on Astar?

I want to calculate fees for historical EIP-1559 transactions on Astar EVM. For this, I need to use the GasPrice formula: GasPrice = BaseFee + MaxPriorityFeePerGas < MaxFeePerGas ? BaseFee ...
pjozvtg's user avatar
  • 75
0 votes
2 answers
314 views

Other: IO error: lock hold by current process, acquire time 1685847508 acquiring thread 196910: /tmp/chains/dev/frontier/db/LOCK: No locks available

I'm adding EVM compatibility to relay chain whie doing so I faced this error after running my blockchain.
Arunjot Singh's user avatar
-1 votes
2 answers
100 views

the trait bound `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<, OpaqueExtrinsic>>` is not satisfied

`the trait bound` `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, BlakeTwo256>, OpaqueExtrinsic>, sc_service::client::client::Client&...
Arunjot Singh's user avatar
5 votes
1 answer
218 views

How to interact between a smart contract written in Solidity from a smart contract written in ink!?

In the repository of the cargo-contract CLI tool, which currently "helps you develop smart contracts in Parity's ink!, which is a Rust eDSL allowing you to write smart contracts for blockchains ...
Luke Schoen's user avatar
  • 2,346
2 votes
1 answer
141 views

Transaction execution error of EVM "EvmCoreErrorExitReason (OutOfFund)"

I have developed Substrate Network with EVM compatibility and POA consensus algorithm. It was working fine and transaction execution time was although alot but for now getting an error from EVM-core. ...
BlockBird's user avatar
2 votes
0 answers
60 views

Frontier: What is trait LinearCostPrecompile about?

So it's often seen in Precompile implementations as a trait bound : impl<T: LinearCostPrecompile> Precompile for T { and the trait itself : pub trait LinearCostPrecompile { const BASE: u64; ...
Purple_Turtle's user avatar
3 votes
1 answer
108 views

Rationale on Moonbeam's GAS_PER_SECOND

I'm trying to understand the rationale behind Moonbeam's GAS_PER_SECOND: /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). /// Given ...
Bernardo Rodrigues's user avatar