New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

imx-widgets-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imx-widgets-react

A collection of widgets for use with React apps for displaying data from [Immutable X](https://www.immutable.com/).

latest
Source
npmnpm
Version
0.0.11
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

imx-widgets-react

A collection of widgets for use with React apps for displaying data from Immutable X.

Installation

npm install imx-widgets-react

// or

yarn install imx-widgets-react

Widgets

Opens the window to link your wallet with IMX.

Example of wallet linking widget

import { IMXLinkWallet } from 'imx-widgets-react';

<IMXLinkWallet
  // (optional) string: IMX Link URL, will default to mainnet
  imxLinkAddress=""
  // (optional) string: IMX API URL, will default to mainnet
  imxApiAddress=""
  // (optional) string: CSS class name for for the container that the button is in
  containerClassName=""
  // (optional) React.Component: Component that will be displayed when the wallet has been linked
  linkedComponent={<MyComponent />}
  // (optional) React.Component: Component that will be displayed when the wallet is not linked.
  unlinkedComponent={<MyComponent />}
/>

IMX Balance

Displays the linked wallets IMX balance.

NOTE: Requires the IMXLinkWidget to be used and for a wallet to have been linked before a balance will be displayed.

Example of balance widget

import { IMXBalance } from 'imx-widgets-react';

<IMXBalance
  imxLinkAddress="" // (optional) string: IMX Link URL, will default to mainnet
  imxApiAddress="" // (optional) string: IMX API URL, will default to mainnet
  />

IMX Deposit

Displays the linked wallets IMX balance and deposit funds to IMX.

NOTE: Requires the IMXLinkWidget to be used and for a wallet to have been linked before a balance will be displayed and funds can be deposited.

Example of deposit widget

import { IMXDeposit } from 'imx-widgets-react';

<IMXDeposit
  imxLinkAddress="" // (optional) string: IMX Link URL, will default to mainnet
  imxApiAddress="" // (optional) string: IMX API URL, will default to mainnet
  />

FAQs

Package last updated on 11 Jan 2022

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