PiperX Docs
  • 🌎Welcome
  • 📜Terms of Use
  • Introduction
    • 🎬What is PiperX
    • 📽️What is IPFi
    • 🤖DeFAI
  • User Guide
    • 🏫User Guide One Pager
    • 🌀How to Swap
    • ➕How to Add Liquidity
      • 🎯How to Claim LP Rewards
      • 🆕How to Create a New Pool
      • 👀How to Remove Liquidity
    • 💰How to Farm
  • Developer
    • 📚Smart Contracts
      • Mainnet
      • Aeneid
    • 🧰Integrations (TypeScript)
      • Swap
    • 📗APIs
  • Resources
    • 🔗Links
    • 💽Media Kit
    • ☎️Community Support
    • 🐸OG Program
Powered by GitBook
On this page
  • Installation
  • Wallet Integration
  1. Developer

Integrations (TypeScript)

Installation

The following section of the doc illustrate how to integrate with PiperX V2 and V3 smart contracts in your app using TypeScript. Please make sure you have ethers and piperx sdk installed.

npm install ethers
npm i @piperx/sdk

Wallet Integration

In all the following SDK examples, it require user to use a wallet provider library to interact with blockchain. We use ethers library as example, but you could get signer from other wallet providers.

import { ethers } from 'ethers'
export const signer = new ethers.Wallet(privateKey, provider)
PreviousAeneidNextSwap

Last updated 3 months ago

🧰