Foorswap SDK V1.0

🛠 An SDK for building applications on top of Floorswap Protocol

Install

Copy

yarn add floorswap.js

Using interfaces

Copy

import { Floorswap } from 'floorswap.js'

const floorswap = new Floorswap({
    chain: "ethereum",
    apiKey: '...'
}: IFloorswapConstructorParams);

interface IFloorswapConstructorParams {
  chain?: 'ethereum' | 'goerli'; // default: ethereum
  apiKey?: string;
}

Configs

Name

Type

Required

Description

chain

"ethereum""goerli"

false

currently ethereum is the default setting

apiKey

string

false

e.g."b9a8a372-5dfd-45bd-813c-c787d2ad1d39"

​​

Last updated