Questions tagged [polkadot-js-extension]
The polkadot-js-extension tag has no usage guidance.
22
questions
3
votes
0
answers
74
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 = "...
1
vote
1
answer
26
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/ ...
1
vote
1
answer
23
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 ...
3
votes
2
answers
140
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 ...
0
votes
1
answer
19
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 ...
2
votes
1
answer
62
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 ...
0
votes
1
answer
42
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 ...
2
votes
1
answer
43
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?
1
vote
0
answers
23
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 ...
1
vote
3
answers
114
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
...
1
vote
1
answer
148
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 ...
0
votes
2
answers
48
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 ...
1
vote
1
answer
40
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.
...
0
votes
1
answer
29
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 ...
0
votes
0
answers
40
views
PolkadotAPI Signing transaction using AccountKey20 address format [duplicate]
I have error signing transaction with account that uses accountkey20, have anyone encountered this problem and fixed it?
What is the current behavior and expected behavior?
When I try to sign ...
4
votes
1
answer
88
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'...
1
vote
1
answer
60
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 ...
1
vote
1
answer
94
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 ...
2
votes
2
answers
42
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,...
0
votes
1
answer
123
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 ...
2
votes
2
answers
73
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 ...
5
votes
2
answers
94
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 ...