New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@infinex/wallet-sdk

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infinex/wallet-sdk

SDK to set up and communicate with an instance of @infinex/wallet

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
2
Weekly downloads
 
Created
Source

@infinex/wallet-sdk

SDK to create and communicate with an instance of the @infinex/wallet.

Example

const sdk = new WalletSDK("#sdk", {
  url: "http://my-key-app/",
});

// Unlock with a JWT
const jwt = "eyJhbG...";
const { address } = await sdk.unlock(jwt);

// Get an ethers wallet/signer
const provider = getEthersProvider();
const signer = sdk.ethersSigner(provider);

// Sign a message string with the wallet
const signature = await signer.signMessage(`A message from ${address}`);

// Lock the wallet
await lock();

console.log(address, signature);

FAQs

Package last updated on 14 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc