Logo

iZiSwap

  • Overview
  • Concepts
  • Contracts
  • Deployed Contracts
  • iZiSwap-sdk
    • Installation
    • Tutorial
      • Concepts
      • Examples
        • Quoter and Swap
        • Universal Quoter and Swap
        • Liquidity
        • Limit Order
        • Swap Simulation (for integration)
        • Oracle
        • Get pool and create pool
  • Subgraph

Info

  • Links
iZUMi
  • »
  • iZiSwap-sdk »
  • Tutorial »
  • Examples
  • View page source

ExamplesΒΆ

In this chapter, we will demonstrate how to implement the most common and important operations for iZiSwap using the SDK.

  • Quoter and Swap
    • Exact input mode
    • Exact output mode
    • Search Swap Path
  • Universal Quoter and Swap
    • Exact input mode
    • Exact output mode
  • Liquidity
    • Fetch liquidity positions
    • Mint
    • Decrease a liquidity position
    • Collect a liquidity position
  • Limit Order
    • fetch limit order
    • new limit order
    • fetch limit order and dec
    • collect limit order
  • Swap Simulation (for integration)
    • Swap Query x2y With Offline Data
    • Swap Query x2y With Online Data
  • Oracle
    • Expand Observation Queue
    • Query TWA Price Point
  • Get pool and create pool
    • 1. Some imports
    • 2. Specify chain, rpc, web3, and account
    • 3. Get web3.eth.Contract object of factory
    • 4. Choose token pair of the pool
    • 5. Check whether the pool has been created
    • 6. Get calling for creating the pool.
    • 7. Estimate gas (optional)
    • 8. Finally, send transaction!
Previous Next

© Copyright 2021-2023 @iZUMi.finance.

Built with Sphinx using a theme provided by Read the Docs.