Unable to match provided value to a secret URI

See original GitHub issue

Hello,

I’m trying to use the signer-cli, but it fails with Error: Unable to match provided value to a secret URI so I’m wondering if it’s my seed problem ? I find it weird given that I’m locally able to use this seed to generate a keyring pair -> create tx -> sign -> send

const keyringPair = (new Keyring()).addFromUri("12345678901234567890123456789012"); // suri length 32
// address from this keyring pair = 5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu
...
const transferMethod = api.tx.balances.transfer(destinationAddress, amount);
const payload = createType(nodeApi.registry, 'SignerPayload', {
	method: transferMethod,
	nonce,
	genesisHash: api.genesisHash,
	blockHash: api.genesisHash,
	runtimeVersion: api.runtimeVersion,
	version: api.extrinsicVersion,
}).toPayload();
const extrinsic = createType(api.registry, "ExtrinsicPayload", payload, { version: payload.version });
const hex = extrinsic.toHex();
...

in my terminal:

polkadot-js-signer sign --account 5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu --seed "12345678901234567890123456789012" --type ed25519 "...extrinsic-hex..."

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, Oct 6, 2020

The API FAQ does point here. (And also to tx wrapper as another option). It is simple enough as a sample that shows both sides to just keep that in place.

Glad you got sorted.

0reactions
polkadot-js-botcommented, May 31, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Substrate Uri
Substrate has a standard derivation format that applies on any seeds and mnemonics. This means that for a given secret, you can apply...
Read more >
When catches events, happened error. · Issue #970
I execute my substrate project node on substrate v1.0.0rc2. Unable to decode Uint8Array for type 'Phase': Unable to create Enum via index 4,...
Read more >
Resolve Secrets Manager secret access errors after ...
I attempted to retrieve or access an AWS Secrets Manager secret, and received an error similar to one of the following: "You can't...
Read more >
Solved: Receiving a "redirect_uri_mismatch" error when aut...
I'm trying to use OAUTH 2.0 to authenticate/authorize. I'm testing on my local machine, where my application is running and accessible over HTTPS....
Read more >
Google OAuth 2 authorization - Error: redirect_uri_mismatch
So I can't find Authorized redirect URIs in the credentials page. It seems appears in Application type:"Web application". But you can click the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found