Skip to content

YagiGo/10k_swap-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

10kswap SDK

This repository contains the 10kswap SDK code, Forked from the Uniswap SDK.

The 10kswap SDK exists to help developers build on top of 10kswap. It's designed to run in any environment that can execute JavaScript (think websites, node scripts, etc.).

Installation

The easiest way to consume the SDK is via npm. To install it in your project, simply run yarn add https://github.com/10k-swap/10k_swap-sdk.git#main (or npm install https://github.com/10k-swap/10k_swap-sdk.git#main).

Usage

To run code from the SDK in your application, use an import or require statement, depending on which your environment supports. Note that the guides following this page will use ES6 syntax.

ES6 (import)

import { ChainId } from '10k_swap-sdk'
console.log(`The chainId of mainnet is ${ChainId.MAINNET}.`)
// The chainId of mainnet is 0x534e5f4d41494e.

CommonJS (require)

const L0KSWAP = require('10k_swap-sdk')
console.log(`The chainId of mainnet is ${L0KSWAP.ChainId.MAINNET}.`)
// The chainId of mainnet is 0x534e5f4d41494e.

Reference

Comprehensive reference material for the SDK is publicly available on the 10kswap Github.

DOC

fetcher

fractions

constants

route

token

trade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%