Ever Platform
RoadmapIdeasDeveloper ToolsSDK
  • About Ever Platform
  • Sandbox endpoint
  • Quick Start
  • Use cases
    • Infrastructure Provider
      • Projects
    • Community-driven development
      • Roadmap
        • Discussions
      • Your ideas
      • DevNet Giver(Faucet)
    • Custom development
      • Our clients
  • Products
    • Evercloud
      • Networks Endpoints
      • Get Started
      • GraphQL API documentation
      • Testnet Faucets
      • About data proofs in Cloud
      • SLA
      • HTTP notifications
    • Dedicated Cloud/Node
    • Dapp Server (DS)
    • Simple Emulator (SE)
      • Endpoint
    • Network Emulator (NE)
    • Functionality comparison
  • Samples
    • GraphQL Samples
      • Send message
      • Network Config
      • Blocks
      • Accounts
      • Transactions
      • Messages
      • Block and Transaction Pagination: Best Practice
      • Multiple Message Processing and Monitoring
      • Subscribe for REMP receipts
  • Reference
    • GraphQL API
      • Quick Start
      • Samples
      • Networks
      • Explore Playground
      • Connect to GraphQL API
      • Schema
      • Blockchain API
      • Info API
      • Query Collections: Query Language
      • Subscribe Collections
      • Message Monitor API
      • Field Descriptions
    • Evercloud API Add-ons
      • Query cost
      • Blockchain Statistics
      • FT (Fungible Token) API
      • Price
      • Counterparties
      • Flex API
    • Changelog
      • Evercloud
      • Dapp Server (DS)
      • Simple Emulator (SE)
    • Breaking changes
      • Policy
      • Deprecation schedule
      • Migration guides
        • GraphQL API 1.0 migration
  • SDK and tools
    • everdev
    • Client Libraries
  • Guides
    • How to connect to GraphQL API
  • 😊Social
    • Feedback page
    • Telegram
    • Discord
Powered by GitBook
On this page
  • List of tokens
  • Token info
  • Holder info
  • Wallet info
  • Account
  • Transaction
  • Message

Was this helpful?

  1. Reference
  2. Evercloud API Add-ons

FT (Fungible Token) API

PreviousBlockchain StatisticsNextPrice

Last updated 2 years ago

Was this helpful?

List of tokens

Shows the list of tokens, sorted by token creation timestamp (DESC) - fresh ones go first.

Filter

You can optionally filter by symbol substring.

Pagination

Use cursor, {first, after} or {last, before} filters for pagination.

query{
  ft{
    tokens(symbolSubstring:"EVER", first:4){
      edges{
        node{
          address
          symbol
          standard
          name
          decimals
          rootOwner
          totalSupply
        }
        cursor
      }
    }
  }
}

Token info

Returns info about the token by its root contract address

query{
  ft{
    token(address:"0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d"){
      address
      symbol
      name
      decimals
      rootOwner
      totalSupply
    }
  }
}

Holder info

Returns info about token owner by its address.

Pagination

Use cursor, {first, after} or {last, before} filters for pagination of list fields.

query{
  ft{
    holder(address:"0:3666ef0af863317eafcea173b9a9fdd6d1e4aa6dd080a1f472b2ad217215e5c9"){
      address
      wallets(first:2){
        edges{
          node{
            balance
            token{
              symbol
            }
            percentage
          }
          cursor
        }
      }
      transfers(first:1){
        edges{
          node{
            messageId
            token{
              symbol
            }
            fromWallet{
              address
            }
            toWallet{
              address
            }
            fromHolder{
              address
            }
            toHolder{
              address
            }
            transferType
            timestamp
            value
          }
          cursor
        }
      }
    }
    }
}

Wallet info

Returns the information related to the tip3 token wallet.

Explore schema for all available fields.

Pagination

Use cursor, {first, after} or {last, before} filters for pagination of list fields.

query{
  ft{
    wallet(address:"0:fc9316349bdd2b961dc0a89fc9cf4cb95a26aff662c042945a6a533a401db3f3"){
      address
      token{
        address
        symbol
      }
      holder{
        address
      }
      balance
      percentage
      transfers(first:10){
        edges{
          node{
            value
          }
        }
      }
    }
  }
}

Account

Field tokenHolder was added to BlockchainAccount

query{
blockchain{
    account(address:"0:3666ef0af863317eafcea173b9a9fdd6d1e4aa6dd080a1f472b2ad217215e5c9"){
      info{
        address
        balance
        tokenHolder{
          wallets{
            edges{
              node{
                balance
                token{
                  symbol
                }
                transfers{
                  edges{
                    node{
                      value
                      messageId
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Transaction

Field tokenTransfer was added to BlockchainTransaction

query{
  blockchain{
    transaction(hash:"fda25eec114d7da8d6ebd31ec2b2ca07eed0db8749501d6c1a128f646f91e350"){
      hash
      tokenTransfer{
        value
        transferType 
      }
    }
  }
}

About transferType

In source transaction transferType for simple transfer will be Transfer

In destination transaction transferType for simple transfer will be Receive

Message

Field tokenTransfer was added to BlockchainMessage.

query{
blockchain{
    message(hash:"39af972085108d71ba439dab66cd4cbdb010ab018a078eeed7bf2f05df237c68"){
      hash
      tokenTransfer{
        value
        transferType
        token{
          symbol
        }
      }
    }
  }
}

We followed GraphQL best practices and implemented Relay Cursor Connections Specification for pagination for all list types. You can read more here

https://relay.dev/graphql/connections.htm