Questions tagged [evm]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 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
16 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
0 answers
16 views

Updating Frontier because of InvalidCode(Opcode(95))

I'm utilizing the Polkadot branch v0.9.37 within a Substrate-based standalone chain. Presently, when deploying smart contracts using the latest version of Solidity, I encounter the following error: ...
BlockBird's user avatar
0 votes
1 answer
22 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
  • 43
0 votes
0 answers
37 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
24 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
43 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
  • 222
2 votes
1 answer
82 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
39 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
49 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
20 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
53 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
60 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
26 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
160 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
61 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
43 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
62 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
57 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
59 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
51 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
  • 489
2 votes
1 answer
179 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
31 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,322
0 votes
1 answer
61 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
51 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
75 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
121 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
78 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
  • 222
3 votes
1 answer
102 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
46 views

Unified Accounts

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
57 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
117 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
138 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
271 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
91 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
4 votes
1 answer
201 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,322
2 votes
1 answer
115 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
57 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
106 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
4 votes
1 answer
449 views

Getting "Gas estimation failed" error while deploying EVM contract on Substrate Node?

When I try to deploy a solidity smart contract on my substrate node I get the following error: "Gas estimation failed Gas estimation errored with the following message (see below). The ...
Brian Ramirez's user avatar
2 votes
0 answers
58 views

Failed to compact generated WASM binary in substrate standalone chain [duplicate]

I'm building the substrate standalone chain with this cargo build --release command and facing the issue: thread 'main' panicked at 'Failed to compact generated WASM binary.: Error(UnknownOpcode(192))...
Muhammad Zaryab Rafique's user avatar
2 votes
1 answer
95 views

error: no matching package named `sc-consensus-grandpa` found

I want to add pallet ethereum in our runtime but after adding this line: pallet-ethereum = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/...
Deepak Chaudhary's user avatar
5 votes
0 answers
33 views

eip-681 equivalent for Polkadot to generate qrcodes

I'm developing an app and there I have the possibility to generate qrcodes to ask for payments in multiple blockchains using multiple tokens. For EVM blockchains I do have the eip681 to guide me (...
Valhalla Hero's user avatar
1 vote
2 answers
241 views

How to add evm and ethereum pallet from scratch into substrate node?

I want to add evm pallet and ethereum pallet into my substrate node from scratch, so how I can do that.
neeraj's user avatar
  • 41
5 votes
2 answers
86 views

Is it possible to use ink! with Ethereum-style accounts?

Wondering if anyone knows whether ink! supports AccountIds which are ethereum-style accounts? Let's assume this would be a chain with a Unified Accounts setup, similar to Moonbeam. In specific, we ...
Justin Frevert's user avatar
6 votes
0 answers
182 views

How to generate a Moonbeam Unified Account using Subkey?

In the Moonbeam Unified documentation here, it says that Moonbeam natively supports "Ethereum-style address (H160 format), which is 40+2 hex-characters long, in a Substrate based chain" and ...
Luke Schoen's user avatar
  • 2,322
1 vote
1 answer
40 views

NFT Enlisting on OpenSea

I have implemented EVM and ETH Pallet in Substrate Based chain with POA consensus mechanism. Contracts deployment in Solidity language and NFT Minting transactions are also working perfectly but i'm ...
BlockBird's user avatar
1 vote
1 answer
62 views

How to implement the `Get` trait for a `Pallet<T>`?

I'm writing a pallet that implements evm::executor::stack::PrecompileSet. The goal is to use this pallet in conjunction with Frontier's pallet-evm, which has the following types in its Config trait: ...
Bernardo Rodrigues's user avatar
1 vote
0 answers
75 views

Change chainID in frontier after chain is live

We have tested in local chain with a runtime upgrade to change the chainID of the EVM (with frontier). All seems ok, chain continue to run correctly with the new chainID. Except the fact that we will ...
Dubs's user avatar
  • 294