Collection API

Get list of supported NFT collections

## Request
curl -X "GET" "https://oracle-api.banksea.finance/moonbeam/v1/collection/list" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8'
  • Interface: /moonbeam/v1/collection/list

  • Method: GET

  • Data Format: JSON

  • Response Data:

  • Response Example:

    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": [
            {
                "collection": "beanies",
                "name": "BEANS NFT",
                "address_contract": "0xd3A9c48Df4d9342dc1A0EE2c185CE50588729Fa9"
            }
        ]
    }

Get NFT collection basic information

## Request
curl -X "POST" "https://oracle-api.banksea.finance/moonbeam/v1/collection/info" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
    "collection":"beanies"
}'
  • Interface: /moonbeam/v1/collection/info

  • Method: POST

  • Data Format: JSON

  • Request Parameter:

  • Request Example:

    {
        "collection":"beanies"
    }
  • Response Data:

  • Response Example:

{
    "success": true,
    "code": "200",
    "message": "success",
    "data": {
        "description": "Oh no - 462 of the cutest galactic beanies have escaped from their containment can! Help recapture them by joining the MoonBeans Corps and save the beaniverse, one bounty at a time!\n\nThese Non-Fungible Beans are prepped for future galactic warfare - with on-chain stats, rewards from 1% of all marketplace trades, and more.",
        "name": "BEANS NFT",
        "address_contract": "0xd3A9c48Df4d9342dc1A0EE2c185CE50588729Fa9",
        "image_url": "https://moonbeanstoken.com/images/NFTCovers/beanies.png",
        "external_url": "https://moonbeanstoken.com/",
        "discord_url": "https://discord.com/invite/qqE9aBPzQ9",
        "twitter_url": "https://twitter.com/moonbeanstoken",
        "items": 462
    }
}

Get NFT collection market cap

## Request
curl -X "POST" "https://oracle-api.banksea.finance/moonbeam/v1/collection/market_cap" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
    "collection":"beanies"
}'
  • Interface: /moonbeam/v1/collection/market_cap

  • Method: POST

  • Data Format: JSON

  • Request Parameter:

  • Request Example:

    {
        "collection":"beanies"
    }
  • Response Data:

  • Response Example:

    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": {
            "floor_price": 42.000000,
            "market_cap": 4014.710000,
            "market_cap_change": {
                "rate_24_hours": 0.000000,
                "rate_7_days": 0.000000,
                "rate_30_days": 0.026297
            }
        }
    }

Get NFT collection volume

## Request
curl -X "POST" "https://oracle-api.banksea.finance/moonbeam/v1/collection/volume" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
    "collection":"beanies"
}'
  • Interface: /moonbeam/v1/collection/volume

  • Method: POST

  • Data Format: JSON

  • Request Parameter:

  • Request Example:

    {
        "collection":"beanies"
    }
  • Response Data:

  • Response Example:

    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": {
            "sales_7_days": 0,
            "liquidity_7_days": 0,
            "volume_7_days": 0,
            "avg_price_7_days": 0,
            "volume_24_hours": 0,
            "avg_price_24_hours": 0
        }
    }

Last updated