-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to transfer balance on frontier node template through subxt #1556
Comments
Hey hey, You can't use the PolkadotConfig because frontier/ethereum is using a different AccountId. Have a look at this example: https://gist.github.com/jsdw/13240f9341e433ea639b89d0d4235c8b#file-main-rs You can use the AccountId20 from the ethereum signer in subxt IIRC. |
@niklasad1 thank you for the help. But If i change the PolkadotConfig with EthConfig in the current code, then it is showing this error: But I'm following the provided code: https://gist.github.com/jsdw/13240f9341e433ea639b89d0d4235c8b#file-main-rs. then I'm getting this issue:
|
Hey @Aideepakchaudhary again I have created an example for this and I have tested it against polkadot-evm/frontier@f7dc0ac It works for me and my hunch is that you are using an old frontier node without the proper runtime APIs available. |
We have added an example to our repo for ethereum/frontier and closing this. Feel free to re-open if you still have issues with it. |
I'm trying to transfer some balance on frontier-node-template through subxt. but getting this issue:
This is my main.rs:
How to fix this?
The text was updated successfully, but these errors were encountered: