API

Introduction

AIFI Network API (AIFI ) is a powerful SDK library developed on Nostr. It enables developers to interact with various functionalities such as querying transactions, balances, and token events effortlessly.

Features

  • Query Transactions

  • Check Balance

  • Retrieve Token Lists

  • Get Allowance

  • Fetch Funding Records

  • Access Token Events

  • Retrieve Market-Related Information

  • Explore Fairmint Functionalities

  • Manage Locks


Support Method List

AIFI .assets

  • getBalance(owner)

    Retrieve the balance for a specified owner (npub address)

  • getTokenList()

    Get a list of tokens

  • getAllowance() Check the allowance. (asset quantity authorized to another npub address such as operator/marketplace etc)

  • getFundingRecords()

    Fetch funding records (Send / Receive history)

  • getTokenEvents()

    Access token events such as Asset Transfers, Approve, etc

  • getHolders()

    Retrieve the token holders list

  • getHolder()

    Retrieve token holder information

  • getHolderSummary()

    Retrieve summary of a token holder

  • getPayeeList()

    Get a list of approved withdrawal channels

AIFI .markets

  • getMarketTokenList()

    Retrieve tokens available in the market.

  • getMarketOrderListing()

    Get order listing(s) for a market.

  • getOrderHistory()

    Retrieve order history.

  • getMarketMyOrder()

    Retrieve orders for a user.

Last updated