Skip to main content

Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

Filter by
Sorted by
Tagged with
8 votes
3 answers
774 views

How to bind an Ethereum H160 address with a Substrate H256 address?

I'm trying to bind a H160 address with a H256 address, if we assume this function: fn bind(origin: OriginFor<T>, address: H160 , signature: [u8; 130]) -> Result<(), Error<T>>{ ...
Stefan Muto's user avatar
5 votes
1 answer
166 views

PolkadotJS Apps shows wrong AccountId20 on Frontier Template Node

Frontier recently received support for Moonbeam's AccountId20: https://github.com/paritytech/frontier/pull/1019 So now I'm trying to use this new feature on PolkadotJS Apps. I'm running a Frontier ...
Bernardo Rodrigues's user avatar
4 votes
1 answer
171 views

Frontier-node-template compilation error on Windows

I am trying to run the frontier-node-template:https://github.com/substrate-developer-hub/frontier-node-template/ But it gives an error as shown below. I tried to change the rustup default nightly-...
Ajit's user avatar
  • 827
4 votes
1 answer
101 views

Existential deposit in EVM compatible address

I understand that there is an existential deposit for native token. But, there is any existential deposit for EVM compatible address H160?
Tomasz Waszczyk's user avatar
4 votes
1 answer
156 views

Is there any way to access the accountid inside the offchain worker?

I am coding a pallet in which I need to know who I am inside a offchain worker to check if I should send a transaction or not. Right now I have access to the account in the send_signed_transaction ...
Gabriel Martinez's user avatar
3 votes
4 answers
690 views

Private key for EVM Frontier

I am running the Frontier-Node-Template and using the library Web3JS to generate EVM transactions following the Moonbeam guide. const Web3 = require('web3'); const web3 = new Web3('ws://127.0.0.1:9944'...
Alex Bean's user avatar
  • 5,747
3 votes
2 answers
123 views

Implementing min gas fee for pallet_evm

I have my base currency as 18 decimals like 1_000_000_000_000_000_000. I want to set my base fee to charge using 1_000_000_000_000_000_000 for each evm transaction. How can i do? currently i have done ...
Faraz Ahmad's user avatar
3 votes
1 answer
109 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
2 answers
344 views

Frontier: How to change EVM gas fee charged in calling precompile functions

Regarding the EVM gas fee used for calling precompile functions, how can I set that fee to zero so that the MetaMask will show zero fee at invoking those precompile functions? I saw a demonstration of ...
Russo's user avatar
  • 1,193
3 votes
1 answer
76 views

How does 'into_account_id' function of pallet_evm works?

I'm working with pallet_evm of Frontier to support EVM, I want to map the Substrate account with the EVM account #[pallet::storage] pub type Mapping<T: Config> = StorageMap<_, ...
Stefan Muto's user avatar
3 votes
1 answer
107 views

Frontier EVM integration: UnknownTransaction::NoUnsignedValidator error occurs while transferring funds via Metamask

I'm integrating Frontier EVM into my Substrate chain and facing the following issue while trying to send some funds between accounts via metamask: [ethjs-query] while formatting outputs from RPC '{&...
Oleg Kalenik's user avatar
3 votes
0 answers
131 views

Unable to fully utilize block capacity when performing load testing

I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
magecnion's user avatar
  • 244
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
3 votes
1 answer
322 views

Getting `insufficient funds for gas * price + value` error when performing transaction with another account than Alice

I'd like to use Substrate Frontier as a private blockchain for my current project. I have set up a project using a frontier-template-node build and I am now trying to adjust its settings. I am ...
Olivier Hory's user avatar
2 votes
2 answers
142 views

Ethereum chain as a Substrate chain

Is it technically possible to upgrade Ethereum to be Substrate compatible blockchain? I understand there is likely to be strong resistance toward such idea in ETH community but I am interested only ...
jangorecki's user avatar
2 votes
1 answer
149 views

How to upgrade Frontier to use a specific Substrate version

The Substrate team(https://github.com/paritytech/substrate/) produces releases like polkadot-v0.9.25 every a few weeks, and my team needs to upgrade our parachain to follow those Substrate versions. ...
Russo's user avatar
  • 1,193
2 votes
1 answer
204 views

Explorer for Substrate-based EVM chains

I've built an EVM-compatible blockchain using Substrate and connected it with Metamask and PolkadotJs explorer. But I want a more user-friendly explorer that users with a non-technical background can ...
Discardo's user avatar
  • 436
2 votes
2 answers
70 views

Is it possible to turn a Frontier node into an Ethereum client?

Suppose I start with a Frontier-based template node and want it to sync with a Geth full node, as if it was an Ethereum execution client. What are the minimal set of changes necessary to make this ...
afm's user avatar
  • 355
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
147 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
2 votes
1 answer
63 views

PreLog Blocks in frontier ethereum pallet on_initialize hook

fn on_initialize(_: T::BlockNumber) -> Weight { let mut weight = T::SystemWeightInfo::kill_storage(1); // If the digest contain an existing ethereum block(encoded as PreLog)...
Timothée Delabrouille's user avatar
2 votes
1 answer
98 views

Can an off-chain worker read/write the state of an EVM contract?

Let's assume we have a frontier-based node with smart contract X. From an off-chain worker, we want to call X.some_method() which will return data, and then the worker would use this data to make some ...
Adam Wierzbicki's user avatar
2 votes
3 answers
973 views

cannot find macro `vec` in this scope

I am trying to add Frontier as a dependency in my substrate-parachain-template. Compiling sp-npos-elections v4.0.0-dev (https://github.com/paritytech/substrate?branch=polkadot-v0.9.25#3348e144) ...
Russo's user avatar
  • 1,193
2 votes
1 answer
160 views

How to make a parachain project that uses Frontier as a dependency?

I have a parachain project that uses Frontier as a dependency with a specific Substrate version(polkadot-v0.9.24), but the Ethereum RPC does not work. So I need to find the bug there... Also I am ...
Russo's user avatar
  • 1,193
2 votes
1 answer
55 views

How to debug/solve this frontier integration issue?

I am currently in the process of integrating the frontier with the solo chain. Following the integration, when I attempted to deploy the contract using Remix, it appears to be stuck, with no ...
Ajit's user avatar
  • 827
2 votes
1 answer
102 views

Derived H160 address is different than showing in metamask?

I know ss58 public key and private key, also I have derived the EVM HS160 account from the same public key, next is how I can import that EVM HS160 Account in metamask. If I put the private key of ...
neeraj's user avatar
  • 41
2 votes
1 answer
176 views

How to make gasless(EVM balance) transaction in Frontier EVM for certain Ethereum smart contract functions?

How is gasPrice determined in Frontier EVM? I found the following settings in the Frontier/template/src/runtime/lib.rs impl pallet_evm::Config for Runtime { type FeeCalculator = BaseFee; type ...
Russo's user avatar
  • 1,193
2 votes
0 answers
84 views

How should I add offchain worker(OCW) in frontier when using AccountId20?

In order to add an offchain worker with using AccountId20 as the runtime account type I did following things. add associated type type AuthorityId: AppCrypto<Self::Public, Self::Signature>; in ...
xiao liang'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
2 votes
0 answers
53 views

Failed to resolve dependencies with pallet-staking in frontier

i am trying to implement n-POS in my frontier and i had to use pallet-staking for that. but when i try to use this dependency in my cargo.TOML file it start giving me error related to frame-...
Unknown Helper's user avatar
2 votes
0 answers
49 views

frontier ethereum pallet integration, the trait `fc_rpc::format::Formatter` is not implemented for `Geth` [closed]

I'm trying to copy a function from the frontier pallet(fc_rpc::format::Formatter), I copied it to a file and imported that. frontier-752fb1c28a6c675a/ea37e8f/client/rpc/src/format.rs It's the same ...
flipchan's user avatar
  • 369
1 vote
2 answers
249 views

Where can I find frontier evm precompile documentation?

I'm trying to learn how to implement EVM pre-compiles in substrate (frontier), but I cannot find any documentation anywhere. If I try and reference something like moonbeam I fall into dependency hell. ...
jjreedv's user avatar
  • 35
1 vote
1 answer
92 views

Moonbeam #[precompile] procedural macro and Rust generics compilation error

I'm trying to write something similar to Moonbeam's assets-erc20 precompile. I'm using Moonbeam's #[precompile] procedural macros. pub type AssetIdOf<R> = <<R as pallet_evm::Config&...
Bernardo Rodrigues's user avatar
1 vote
1 answer
48 views

unresolved import sc_rpc::Metadata

i try to import fc-rpc on fronter. but got some error message Compiling fc-rpc v2.0.0-dev (https://github.com/paritytech/frontier.git#9d4ccba8) error[E0432]: unresolved import `sc_rpc::Metadata` --&...
kula's user avatar
  • 111
1 vote
1 answer
82 views

Can I make a frontier node only accept json-rpc read methods?

Is there a way to filter ethereum json-rpc methods to only allow read calls, not writing? ie, filter out sendTransaction, sendRawTransaction, create, etc
afm's user avatar
  • 355
1 vote
1 answer
59 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
1 vote
1 answer
101 views

Transferring Funds from SS58 Account to H160 Account Using Frontier and Metamask

I've successfully integrated Frontier into my runtime and have accessed the funds from an account, Alice's, using its SS58 account. To achieve this, I truncated the public address to retrieve the H160 ...
ALeSD's user avatar
  • 499
1 vote
1 answer
202 views

How do I use the AccountId20 and EthereumSignature Signer with polkadot.js.org? [duplicate]

I'm trying to get a better understanding of Frontier, and thus I'm reimplementing the frontier node template over the generic substrate node template. Unfortunately I'm pretty much stuck at step 1. ...
Farcaller's user avatar
  • 158
1 vote
2 answers
106 views

frontier node template fees

I created a new frontier node template with frontier. During each interaction I pay a gas fee, my question is where this gas fee is deposited and can it be collected by the validator ?
user3941's user avatar
1 vote
1 answer
119 views

the trait bound `Event: From<pallet_base_fee::Event>` is not satisfied

I was trying to add Frontier template into my substrate-parachain-template project... when I added this code below in runtime/src/lib.rs: impl pallet_base_fee::Config for Runtime { type Event = ...
Russo's user avatar
  • 1,193
1 vote
1 answer
349 views

trait bound `H256: TypeInfo` is not satisfied; `TypeInfo` is not implemented for `H256, H160, H64, ethereum_types::U256`

Frontier(pallet-ethereum) project failed to compile after updating from polkadot-v0.9.17 to v0.9.18 Compiling polkadot-runtime v0.9.18 (https://github.com/paritytech/polkadot?branch=release-v0.9....
Russo's user avatar
  • 1,193
1 vote
1 answer
25 views

How to integrate Subxt with frontier?

I want the transaction to be happen through subxt on frontier node template. I'm getting this error in this process: Metadata error: The generated code is not compatible with the node How to solve ...
Deepak Chaudhary'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
36 views

do we have any updated guide to integrate the frontier to the substrate solo-chain?

I want to integrate the frontier with my existing substrate solo-chain. do we have any guide/resource to help in that? substrate version i am using polkadot-v1.0.0
Pankaj's user avatar
  • 2,021
1 vote
1 answer
69 views

Frontier template using sr25519 - polkajsapi

I just cloned frontier and modified the code for using H256 address following this These are my changes in runtime/src/lib.rs: pub type Signature = MultiSignature; impl pallet_evm::Config for Runtime ...
Huy Duan Tran's user avatar
1 vote
1 answer
109 views

Generating ethereum address from SS58 address [duplicate]

I have created keypairs for aura and grandpa and added it into customSpec file but i need to add ethereum address in customSpec file to fund it with some amount of ethereum. So, i have generated ...
neeraj's user avatar
  • 41
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
1 answer
140 views

getting Error's while adding pallet_evm to runtime " the trait bound `pallet_evm::Pallet<Runtime>: Callable<Runtime>` is not satisfied in `Call`"

I am trying to add Evm pallet to my substrate runtime i am using Polkadotv0.9.25 for both substrate and frontier but getting error of trait bound for almost every pallet. error:- within Call, the ...
Amit Kumar Yadav's user avatar
1 vote
2 answers
161 views

deploy solidity ethereum to parachain with ExhaustsResources error

I can deploy a few Ethereum smart contracts into my parachain via Hardhat. But those are only normal contracts. All the upgradeable contracts and ERC777 contract cannot be deployed with the ...
Russo's user avatar
  • 1,193
1 vote
1 answer
184 views

ProviderError: submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Payment))

Hi I am trying to use Hardhat to deploy Ethereum smart contracts to my parachain with Frontier EVM inside. The Hardhat uses my own Typescript file to deploy contracts like this one: https://hardhat....
Russo's user avatar
  • 1,193