Skip to content

1010:Invalid Transaction:Transaction has a bad signature #5907

Closed
@Wangmmx

Description

@Wangmmx

I got this error when transfer KSM with the @polkadot/api v11.2.1 lib, and sign with @polkadot/types v11.2.1

    let transfer = api.tx.balances.transferAllowDeath(BOB, 1);
    let signedHex = transfer.sign(pair, {era:0, runtimeVersion: { specVersion:runtime.specVersion, transactionVersion:runtime.transactionVersion}}).toHex()
//broadcast the signedHex

And pair can be any random one, I had never got this error before, could you please help me with this? Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions