Skip to content
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

RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1010: Invalid Transaction: Payment #383

Closed
araa47 opened this issue Jul 3, 2020 · 2 comments
Labels

Comments

@araa47
Copy link

araa47 commented Jul 3, 2020

Hi I get this error when trying to call a custom runtime method on my chain and use the injector to sign the transaction.

const swapTx = await this.api.tx.prc20.swap(signedOffer);
console.log('SwapTx', swapTx);
await this.api.setSigner(injector.signer);
const hash = await swapTx.signAndSend(address);
console.log('Swap sent by ', address, ' with hash ', hash.toHex());

Error

RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1010: Invalid Transaction: Payment
Error: 1010: Invalid Transaction: Payment

Do i need to provide more metadata information about my chain to this extension ? Since I have already provided the types information while initializing my chain.

const ws = new WsProvider(this.providerUrl);
// Instantiate the API
this.api = await ApiPromise.create({ types: this.types, provider: ws });
@jacogr
Copy link
Member

jacogr commented Jul 3, 2020

It is from the node, as the error says, you don't have enough funds in that account to pay for the fees -

https://github.com/paritytech/substrate/blob/master/primitives/runtime/src/transaction_validity.rs#L40-L41

@jacogr jacogr added the support label Jul 3, 2020
@araa47 araa47 closed this as completed Jul 3, 2020
@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants