Closed polariseye closed 3 years ago
https://github.com/polkadot-js/api/issues/3733 the is the info i refer to
You never want to create the signer payload directly - it is based on the metadata. Just use
const tx = api.tx.balances.transfer(...);
await tx.signAsync(...);
You never want to create the signer payload directly - it is based on the metadata. Just use
const tx = api.tx.balances.transfer(...); await tx.signAsync(...);
i have used api.tx.balances.transfer
. and tx.addSignature
.
and sign by const { signature } = api.createType('ExtrinsicPayload', signer.toPayload(), { version: api.extrinsicVersion }).sign(Alice);
i have fix it.and i finish my example: https://github.com/polariseye/polka-signer
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.
hi,could you please help me fix the error.