0xAdventure
  • Overview
  • Product
    • Floorswap
      • USER GUIDE
        • Trading Modes
        • How to Buy NFTs?
        • How to Sell NFTs?
        • How to Set Your Slippage Tolerance?
        • How to Add Liquidity?
        • How to Increase Liquidity?
        • How to Remove Liquidity?
        • How to Manage Liquidity Positions?
        • How to Deposit?
        • How to Withdraw?
        • Fees
      • RISKS
      • TECHNICAL REFERENCE
        • Swap Method
        • Bonding Curve
      • DEVELOPERS
        • APIs
          • FloorSwap API V1.0
            • API Overview
            • Pool List
            • Pool Detail
            • Swap Info
            • Position Info
            • Position List
            • Position History
        • SDKs
          • Foorswap SDK V1.0
            • Pool
            • Position
            • Swap
            • Account
    • Launchpad
    • GAME Swap
    • Cross-chain bridge
    • AI-specialized NFT
    • AI narrative engine
    • AI creative partners
  • Tokenomics
  • Media Kit
Powered by GitBook
On this page
  1. Product
  2. Floorswap
  3. DEVELOPERS
  4. APIs
  5. FloorSwap API V1.0

Swap Info

get swap details

GET:

Copy

/api/v1/floor/swap/info

Authorization information

There is currently no authorization information disclosed in the API.

Request

Name

Type

Required

Description

collection

string

true

collection address

swapType

int

true

swap type 1: swap token to nft 2: swap nft to token

slippage

double

true

swap slippage (0.02 == 2%)

count

int

false

the number of nft that you want to swap out, It is necessary for type=1

nftList

array<int>

false

the list of nft that you want to swap in, It is necessary for type=2

Response

Name

Type

Description

Example

code

string

result code

200

message

string

the error message

Invalid key

success

boolean

whether the request success

true

data

object

​

​

- swapList

array

​

​

- pairAddress

string

specific pair address

0xe012baf811cf9c

- nftList

array<int>

the list of NFTs that will be swapped in or out from the pair

[1,2,3]

- signature

string

the signature of entire params, that will be verified in contract

0xc7cdea3700000000000000000000000000000000

- tokenAmount

int

nft reserves

20

- protocolFee

bigint

the fee of the protocol

​

- lpFee

bigint

the fee of the liquidity provider

​

- slippageAmount

bigint

the maxcost token when swap token to nft or the minimum token out when swap nft to token

​

PreviousPool DetailNextPosition Info

Last updated 12 months ago