Skip to main content

Questions tagged [ethereum]

Users asking questions related to the Ethereum network.

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 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
1 vote
0 answers
29 views

How to replace substrate address(H256) to Ethereum Address(H160)

I need to replace the substrate address(H256) in fresh substrate-node-template to Ethereum Address(H160). Is it possible? If yes, Is it mandatory to integrate frontier in the node-template? Do we have ...
Deepak Chaudhary's user avatar
1 vote
1 answer
41 views

Set Off-chain worker with AccountId20

The examples in substrate use the sr25519 AccountId and Multisignature for creating offchain workers with signed transactions. Is there a way to use AccountId20 and EthereumSignature for a node using ...
Discardo's user avatar
  • 436
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
0 votes
1 answer
160 views

Invalid transaction:1010 Invalid: Transaction has a bad signature

I have changed my default multisignature to EthereumSignature. But whenever i'm doing any transaction on metamask then it is working fine and whenever i'm manually signing the transaction with a ...
Arunjot Singh's user avatar
2 votes
1 answer
182 views

which libp2p module do I use to broadcast data to peers in the network e.g blockchain? do I use mdns or kademlia for blockchain?

I am trying to understand lib2p2 Rust by looking at the rust libp2p examples in the rust libp2p github repo and substrate network module as well. My question is, If I am building a peer to peer ...
Neo's user avatar
  • 323
4 votes
1 answer
66 views

How can I create a bridge between a solo chain created with substrate and Ethereum blockchain?

Is there a tool offered by the substrate ecosystem that I can use, that can help me create a bridge between a solochain created with substrate and Ethereum blockchain? Specifically, I want to transfer ...
Tahlil's user avatar
  • 341
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
4 votes
3 answers
82 views

Troubleshooting Polkadot.js Recognition of Prefunded Dev Accounts on a Network Using EthereumSignature

I've made some changes to my blockchain setup recently. I switched the signature over to EthereumSignature, which changed my AccountId to an H160 size. Thankfully, I can still use scripts to manage ...
ALeSD's user avatar
  • 499
2 votes
1 answer
84 views

I Can't Generate The right AccountId from Ethereum(H160) Address

I am writing a test to test evm contract instantiation using polkadot api. I get to derive the evm account like this: const alice = keyring.addFromUri('//Alice', { name: 'Alice default' }); const ...
dharjeezy's user avatar
  • 419
3 votes
1 answer
71 views

How can I sign and execute transactions using custom origin(20 bytes address) in PolkadotJS

I have a pallet which ensures a particular custom origin of H160(20 bytes). Actually, this pallet is to ensure that the Origin is that of an ethereum address(20 bytes). I am therefore writing ...
dharjeezy's user avatar
  • 419
2 votes
1 answer
100 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
2 votes
1 answer
101 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
1 vote
2 answers
270 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
7 votes
0 answers
92 views

Why do clients have to hardcode the extra types in the registry?

Context: I'm experimenting with an H160-address based substrate and I'm doing it from scratch (it's not a moon* or frontier template fork). It's reasonably trivial to make changes to the substrate ...
Farcaller's user avatar
  • 148
1 vote
1 answer
197 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
  • 148
1 vote
1 answer
45 views

Balance becomes zero after changing Account address type from Substrate address to Ethereum address

I am working on a scenario, where I have to upgrade my application and change account address type(from Substrate address to Ethereum address[similar to moonbeam unified account]). I made the ...
Boleng's user avatar
  • 497
1 vote
1 answer
360 views

How to connect substrate node to metamask?

My node is compatible with EVM and I would like to connect it to metamask? How can I do it? What should I put in RPC URL and chain id? (Where can I find my chain id)
P.E's user avatar
  • 181
0 votes
1 answer
98 views

How to Sign an Ethereum transaction from substrate?

Consider we have a ETH keypair in the keystore inserted using this command curl -H "Content-Type:application/json" -d '{"jsonrpc":"2.0","id":1,"method"...
Immanuel John's user avatar
0 votes
1 answer
39 views

Ink smart contracts are giving build error when i am using ethabi rust crate

To encode and decode data the way we do in solidity I am using ethabi. It is working fine in compilation and testing but when I am running the command cargo contract build, it is giving me a build ...
crypto sahdev's user avatar
1 vote
1 answer
133 views

Is there any way to compile ink contract to EVM bytecode?

I just wonder if there is any way to deploy my ink! contract to ethereum network. As far as I know, ink! contract compiles to WASM bytecode, not EVM, so it's not possible, right? Or maybe there are ...
Lev Lymarenko'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
0 votes
1 answer
122 views

How to make a Frontier demo for running Ethereum smart contracts?

Inside the Frontier repo, I found this template folder: https://github.com/paritytech/frontier/tree/master/template and its Readme says: This template is maintained in the Frontier project repository, ...
Russo's user avatar
  • 1,193
0 votes
1 answer
84 views

ChainBridge: how to use their CLI tool to deploy smart contracts on Ethereum networks?

How to Ropsten, Rinkeby, Kovan, Goerli, and Kiln From cb-sol-cli doc page https://github.com/ChainSafe/chainbridge-deploy/blob/master/cb-sol-cli/docs/deploy.md It is not very clear or easy to use this ...
Russo's user avatar
  • 1,193
1 vote
1 answer
84 views

How to connect my Parachain and Ethereum to ChainBridge?

How can I make ChainBridge to work with my parachain collator? Is there a documentation for such process? all the settings are inside the chainbridge/config.json file(https://github.com/ChainSafe/...
Russo's user avatar
  • 1,193
1 vote
2 answers
136 views

Polkadot Patricia Trie compatible with Ethereum implementation

I'm currently looking to verify ethereum transaction merkle-proofs in runtime. As Ethereum also uses a patricia-trie, I was wondering if the two implementations are generally compatible. Is it ...
Paul Etscheit's user avatar
2 votes
2 answers
140 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
5 votes
1 answer
382 views

the trait `WrapperTypeEncode` is not implemented for `ethereum_types::H256` & `ethereum_types::U256`

I am using: ethereum-type version = "0.12", codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"]} scale-...
Asmita's user avatar
  • 305
1 vote
1 answer
344 views

Enabling the std feature on environmental crate

I'm trying to use the environmental crate (link: https://docs.rs/environmental/1.1.3/src/environmental/lib.rs.html#64) to work with EVM and ethereum transactions. But it seems like adding either ...
flipchan's user avatar
  • 369
3 votes
1 answer
165 views

convert ethereum public key to substrate public key

given a known ethereum public key, is it possible to determine a substrate public key for the same account (for the purpose of an airdrop)? i believe that substrate keys are interchangeable across ...
srebrenik's user avatar
3 votes
1 answer
736 views

How to convert a Substrate address to an Etherum address? [duplicate]

How can I convert a Substrate address to an Etherum address? There is an EVM to substrate address conversion that Edgeware provides: https://edgewa.re/keygen
Ayush Mishra's user avatar
5 votes
2 answers
301 views

How do ECDSA subkeys differ from Bitcoin/Ethereum keys?

As far as I understand, besides the ed25519 and sr25519 signatures, there is a compatibility mode for ECDSA keypairs that should use the secp256k1 curve. Both Bitcoin and Ethereum use the secp256k1 ...
q9f's user avatar
  • 307
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
3 votes
0 answers
72 views

What are precompiled in moonbeam and relevant EVM enabled chains? [closed]

What are precompiled in moonbeam and relevant EVM-enabled chains? and why we should use it if we are going to create EVM enabled chain?
Pankaj's user avatar
  • 2,021
2 votes
1 answer
265 views

Process ethereum transactions in an offchain worker

I need to process Ethereum transactions in a substrate offchain worker. I already include EVM and Ethereum pallets, but I also need to do some communications with runtime code running as solidity ...
naiem's user avatar
  • 123