Skip to main content

Questions tagged [polkadot-js-extension]

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Signers from extension-dapp and ui-keyring expect different data types?

Can both @polkadot/extension-dapp and @polkadot/ui-keyring work together on the frontend somehow? I am helping develop a dapp that needs to sign an external message composed of bytes, but signer....
Shiba Tales's user avatar
0 votes
1 answer
21 views

Polkadot js api not working properly causing issues after the recent upgrade

RPC-CORE: submitAndWatchExtrinsic(extrinsic: Extrinsic): ExtrinsicStatus:: 1002: Verification Error: Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` ...
Ashutosh singh's user avatar
0 votes
0 answers
14 views

How to create type for AccountId32 using Polkadot-JS api

I am writing integration test using Polkadot-JS api. On the Substrate chain side, I have this structure: pub type NodeKey = AccountId32; #[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, ...
Boleng's user avatar
  • 557
0 votes
0 answers
35 views

Wallet Selector for Polkadot.js Apps UI

Are the maintainers of Polkadot.js Apps UI receptive to integrating with a wallet selector? Is there a reason why Polkadot.js Apps UI is not integrated with the Talisman Connect wallet selector?
Dan Forbes's user avatar
1 vote
1 answer
58 views

How can i update polkadot js metadata from inside my app?

i need to check in my dapp when the metadata of my wallet is expired and show a popup telling the user that he needs to update his metadata by clicking an update button on that popup. i need to do ...
Nikola Grujičić's user avatar
0 votes
0 answers
180 views

Getting Mnemonic/Seed Phrase from JSON backups [duplicate]

I have a password-protected digital backup of an account using the JSON file from the Polkadot.JS extension. How do I get the mnemonic/seed phrase from this file so that I can back it up on paper? ...
phillux's user avatar
  • 11
0 votes
1 answer
40 views

What is the signing context chosen by PolkadotJS API?

In the verification of a schnorrkel sr25519 signature, there is a signing context which takes an arbitrary string/bytes. What is the signing context used in the PolkadotJS Extension? Is it something ...
Drew Stone's user avatar
  • 1,194
0 votes
1 answer
55 views

Multisig wallet staking via Polkadot-JS UI failed

I created a 2/3 multisig wallet and staked 500 DOT with it, but I received this error message. This could mean your nomination has not been applied to any validator in the active set by the election ...
robinwen's user avatar
  • 101
0 votes
1 answer
20 views

Polkadot.js wallet dosen't show methot section(transaction details) when making a transaction

When making a transaction we are supposed to see the transaction details under the method section but we only see method data Wrong: Correct(you can see the method -> assetConversion..):
Nikola Grujičić's user avatar
1 vote
0 answers
16 views

Why are payloads wrapped in a <Bytes> tag? [duplicate]

In Polkadot JS Apps, when signing a payload the payload is wrapped in a <Bytes> tag. E.g. I put a few console log's in the polkadot JS apps code to figure out what's going on. As you can see, ...
goastler's user avatar
  • 579
1 vote
1 answer
31 views

Understanding the persistence of historical block events despite automatic removal by the System pallet in Substrate

In the Substrate documentation, I came across a statement stating that at the beginning of a new block, the System pallet automatically removes all events that were stored from the previous block. ...
the dev's user avatar
  • 477
3 votes
0 answers
31 views

ink dapp asking to sign transactions everytime i reload

so i am building a dapp with ink it has messages to get data and put data and on FE when i logged in with the polkadot-js extension wallet everytime i reload the page it asks me to sign the ...
rahul's user avatar
  • 133
3 votes
0 answers
82 views

Transaction fails when using Polkadot extension

We have a customized substrate chain currently running and we are facing some signature issues (repo). This chain has custom types, custom header and an additional extension to check a parameter ...
Leouarz's user avatar
  • 353
4 votes
1 answer
146 views

Creating SignerPayload for PolkadotJS Extenstion: Unsupported extrinsic payload version 0

I am trying to create a SignerPayloadJSON from an encoded partial extrinsic in polkadotjs. The partial extrinsic has the following hex representation ...
Tadeo's user avatar
  • 61
1 vote
1 answer
19 views

Implementing Stacking and Creating a Council in a Local Testnet

how we can implement stacking and made council in local testnet ? Thanks in Advance,
support's user avatar
  • 135
4 votes
1 answer
147 views

In-browser signing of payload generated with subxt

I am generating a partial unsigned extrinsic via subxt however cannot figure how to how to sign it using the polkadot.js api. For example: #[subxt::subxt(runtime_metadata_path = "...
myson's user avatar
  • 61
1 vote
1 answer
61 views

How to stub win.injectedWeb3 for testing dApp with Cypress?

I'm looking for guidance on how to best stub the win.injectedWeb3 object that's usually created by Polkadot{.js}. This is so that I can write some automated tests for a dApp frontend in Cypress w/ ...
Andrew's user avatar
  • 11
1 vote
1 answer
66 views

Does polkadot.js extension expose a method for signing using ECDSA?

So far it looks like polkadot.js/api supports ECDSA signatures, but the polkadot.js extension doesn't expose a method to use ECDSA: How to sign a message using ECDSA key pairs in Polkadot.js so it ...
Bob's user avatar
  • 13
3 votes
2 answers
501 views

How to sign a payload using ECDSA in PolkadotJS?

I've followed the cookbook on signing a payload, however this uses sr25519. I would like to use ECDSA to sign the payload, how can this be done? I have looked into using the keyring and managed to get ...
goastler's user avatar
  • 579
1 vote
1 answer
32 views

getting authentication and keyAgreement from sporran or polkadot.js extension

I'm writing a dApp which helps polkadot users to create a DID on Kilt. In order to create a DID, the SDK requires two arguments authentication and keyAgreement the code for generateKeypairs is below ...
Micha Roon's user avatar
2 votes
1 answer
132 views

Implement utility.batch using @substrate/txwrapper-polkadot

I am trying to implement batch transactions alongside the normal balances.transfer. Because of several reasons (constructing transaction more than one stage and polkadot lib is not helping there) i am ...
Jozzy's user avatar
  • 33
0 votes
1 answer
78 views

How to add a Substrate token created with a smart contract to my wallet? What wallet can I use for testing in a local environment?

I created a token on the Substrate chain using a smart contract and I am now trying to add it to my wallet. However, when I enter the contract address into the "Import a token" section of ...
Mr Coder's user avatar
2 votes
1 answer
61 views

How to extract account network in Polkadot JS Extension

Is there a way to extract the selected network of an account, that is configured through the Polkadot JS Extension, through accounts.subscribe?
Ross's user avatar
  • 191
2 votes
1 answer
53 views

Multisig on js extension

I created a multisig account on Polkadot.js. The multisig does not populate in the extension. I use firefox. I want to use the multisig with polkaswap. How do i get my multisig account to appear on my ...
Tony S's user avatar
  • 21
1 vote
3 answers
441 views

Connecting to a chain on `ws` localhost with polkadot.js app fails when running in brave browser

I know this question is more related to the usage of Brave browser, but the chance of getting a relevant answer would be less in brave forums where the general understanding of polkatot-js is less ...
Simson's user avatar
  • 1,275
1 vote
1 answer
397 views

'window is not defined' issue when I integrate polkadot{js} extension into my dapp

ReferenceError: window is not defined I reload my browser, I get the error shown in the attached image. However, once I disable bellow imports, the screen works fine. And also error message say that ...
Steve's user avatar
  • 83
0 votes
2 answers
112 views

How to remove account using polkadotjs? What function should I call to forget an account?

I added a new account using this command in PolkadotJS. const { pair, json } = keyring.addUri(mnemonic, 'myStr0ngP@ssworD', { name: 'mnemonic acc' }); And now, I want to forget the account. I used ...
INcre's user avatar
  • 35
1 vote
1 answer
41 views

Index.html file not found on Firefox after building dev version of Polkadot.js extension

When I start the development version of the Polkadot.js extension on Firefox after installing it, I'm getting the error: File not found. Firefox cannot find the file on moz-extension://.../index.html. ...
JasperAlexander's user avatar
4 votes
1 answer
59 views

web3Enable prompts sign-in to all of my installed extensions when I only want a single prompt for a single extension

web3Enable returns an array of all the injected sources/extensions. Is there any way to prevent it from prompting permissions for every installed extension and instead have it only throw out the one ...
Astral Gnome's user avatar
4 votes
1 answer
113 views

Wallet Selection Modal

I am working with the team that is developing the MetaMask snap for Polkadot-like networks. In addition to this wallet and the well known Polkadot-JS extension, there are Nova Wallet, Talisman, and I'...
Dan Forbes's user avatar
1 vote
1 answer
88 views

Cannot map Enum JSON, unable to find 'aUSD' in token in api.tx.currencies.transfer

I'm trying to transfer aUSD test token from one wallet to another on my dapp using Polkadot.js wallet. Sender's wallet is connected to Mandala TC7 test. I read this at Acala's site and I'm trying to ...
ratib90486's user avatar
2 votes
1 answer
369 views

How to send specific token (like ACA) using Polkadot.js

I'm new to substrate and Polkadot and I'm coming from ETH/Solidity. I noticed many test tokens in my Polkadot.js wallet like DOT, LDOT, ACA, KSM, etc. I'm trying to code a dapp that lets my user send ...
ratib90486's user avatar
2 votes
2 answers
53 views

Best way to make user sign N number of transactions

In a dApp, I want the users to be able to do N number of transactions. Those N transactions will be batched in a batchAll call. If N exceeds the maximum benchmarked amount of transactions in one batch,...
Leouarz's user avatar
  • 353
0 votes
1 answer
179 views

Parity signer fails to sign transaction with polkadot.js

I have an account created with ParitySigner. I am trying to add an account with a QR code to Polkadot.js and transfer money from that account with ParitySigner. However, when I read the QR code in ...
yoyoyousei's user avatar
5 votes
2 answers
207 views

Polkadot.js and Ledger device compatibility

I linked a new Ledger to the Polkadot.js wallet and transferred some refunded DOT tokens into this wallet. But when I opened up my Ledger Live again, the DOT account is showing a 0 balance. Then I ...
Stardust's user avatar
5 votes
2 answers
171 views

How to prevent Polkadot{.js} extension from injecting all addresses into the site's JavaScript context

By default the Polkadot{.js} extension injects all addresses that have been imported into the browser wallet when a connection is requested by a website. In comparison, the Metamask extension on ...
Dcompoze's user avatar
  • 620