Questions tagged [ethereum]

Users asking questions related to the Ethereum network.

Filter by
Sorted by
Tagged with
4 votes
1 answer
48 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
55 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
  • 345
4 votes
3 answers
69 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
52 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
47 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
69 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
70 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
176 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
77 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
102 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
37 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
  • 413
1 vote
1 answer
271 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
  • 171
0 votes
1 answer
79 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
113 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
138 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
101 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
71 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
80 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
118 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
113 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
4 votes
1 answer
335 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
  • 195
1 vote
1 answer
240 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
  • 319
3 votes
1 answer
132 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
577 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
230 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
43 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
  • 319
3 votes
0 answers
69 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
  • 1,896
2 votes
1 answer
234 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