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.).
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
).
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.
import { StarknetChainId } from 'l0k_swap-sdk'
console.log(`The chainId of mainnet is ${StarknetChainId.MAINNET}.`)
// The chainId of mainnet is 0x534e5f4d41494e.
const L0KSWAP = require('l0k_swap-sdk')
console.log(`The chainId of mainnet is ${L0KSWAP.StarknetChainId.MAINNET}.`)
// The chainId of mainnet is 0x534e5f4d41494e.
Comprehensive reference material for the SDK is publicly available on the 10kswap Github.