@1inch/embedded-widget
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

1inch network

1inch swap widget

Library for integrating 1inch swap widget.
See the live example here and the source code here.

Test coverage

Statements Branches Functions Lines
Statements Branches Functions Lines

Installation

Node

npm install @1inch/embedded-widget

Yarn

yarn add @1inch/embedded-widget

Usage

import {setup1inchWidget} from '@1inch/embedded-widget';

setup1inchWidget({
    chainId: 137,
    sourceTokenSymbol: '1INCH',
    destinationTokenSymbol: 'DAI',
    hostElement: host,
    provider: window.ethereum,
    theme: 'light',
    sourceTokenAmount: '15'
});

Readme

Keywords

none

Package Sidebar

Install

npm i @1inch/embedded-widget

Weekly Downloads

5

Version

0.0.2

License

none

Unpacked Size

21 kB

Total Files

12

Last publish

Collaborators

  • 1inch-robot
  • k06a
  • d.kotsiuba
  • artall641inch
  • zumzoom
  • sevenswen
  • zzomrot
  • krboktv-inch