You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
I have searched existing issues and this is not a duplicate.
Question or Feature Request
Function to add an address to the wallet using the JSON RPC API from the private key. The function could be like this:
async addAccount(hex) {
const entropy = new Nimiq.Entropy(Nimiq.BufferUtils.fromBase64(hex));
const privateKey = new Nimiq.PrivateKey(entropy.serialize());
const keyPair = Nimiq.KeyPair.derive(privateKey);
const wallet = new Nimiq.Wallet(keyPair);
await this._walletStore.put(wallet);
return this._walletToObj(wallet);
}
This is useful when moving the backend to a different server where there is already a JSON RPC node running, and therefore creating a new address in the new server could break the application on the client side.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
New issue checklist
README
Question or Feature Request
Function to add an address to the wallet using the JSON RPC API from the private key. The function could be like this:
This is useful when moving the backend to a different server where there is already a JSON RPC node running, and therefore creating a new address in the new server could break the application on the client side.
The text was updated successfully, but these errors were encountered: