Navigate to Home PageNavigate to Home Page
SpaceWorm API Lite Doc
What does it do?

The $WORM / SpaceWorm API helps pass some of the necessary data for our dashboard, and has a lot of other possible uses in future.

Do I need to worry about this?
Probably not - unless you want to go deeper, need the data for your service / dApp, have some input or want to ask a question.

Usage

Circulating Supply

GET https://api.spaceworm.army/v1/circulating-supply
{ "circulatingSupply": "000000000000.000" }

Total Burned

GET https://api.spaceworm.army/v1/total-burned
{ "totalBurned": "000000000000.0000" }

Total Burned as Percent of Starting Supply

GET https://api.spaceworm.army/v1/total-burned-percent
{ "totalBurnedPercent": "00.00" }

Price

Get all options.GET https://api.spaceworm.army/v1/price
{ "USDperWORM": "000.00000000000000000", "WORMperUSD": "0000.000000000000000", "ETHperWORM": "0.00000000000000000000000000000000000", "WORMperETH": "00000.00000000000000000000000000", "USDperETH": "0000.000000000000000000000000" }
Get only the requested price.GET https://api.spaceworm.army/v1/price?n=USDperWORM|WORMperUSD|ETHperWORM|WORMperETH|USDperETH
0.00000000000000001

Volume

Currently pulls from hourly blocks (to be dynamic to each block / timestamp in future).

Get both optionsGET https://api.spaceworm.army/v1/24hVolume
{ "volumeETH": "0000.000000000000000000", "volumeUSD": "000000.0000000000" }
Get only the requested currency.GET https://api.spaceworm.army/v1/24hVolume?currency=eth|usd
{ "ethVolume": "0000.000000000000000000" }
{ "usdVolume": "000000.0000000000" }

Token Details

GET https://api.spaceworm.army/v1/token-details
{ "contract": "0xf7ecb2e5ddad17506e62f51a442f725a26053fb2", "uniswapPairAddress": "0x2c5eae2ac336e27a7c8737cf5fc3263c4f09a2f0", "symbol": "$WORM", "name": "SpaceWorm", "decimals": "18", "totalSupply": "1100000" }
GET https://api.spaceworm.army/v1/total-supply
{ "totalSupply": "1100000" }

Total Holders

GET https://api.spaceworm.army/v1/total-holders
{ "totalHolders": "0000" }

Dashboard (WIP)

Early iteration of part of the API that provides internal data to the dashboard. Note: this is a Work In Progress (WIP)GET https://api.spaceworm.army/v1/dashboard
{ "pair": { "token1": { "derivedETH": "0.00000000000" }, "reserve0": "000.00000000000", "reserve1": "000000.00000000000", "reserveUSD": "000000.00000000000", "trackedReserveETH": "0000.00000000000", "token0Price": "0.00000000000", "token1Price": "00000.00000000000", "untrackedVolumeUSD": "00000000000.00000000000", "volumeToken0": "00000000000.00000000000", "volumeToken1": "00000000000.00000000000", "txCount": "0000000" }, "pairDayDatas": [ { "id": "0x2c5eae2ac336e27a7c8737cf5fc3263c4f09a2f0-xxxxx", "date": 0000000000, "dailyVolumeToken0": "0000.00000000000", "dailyVolumeToken1": "00000.00000000000", "dailyTxns": "0000", } ], "_meta": { "block": { "hash": "0x0000000", "timestamp": "0x0000000" } }, "volumeETH": "0000.00000000000", "volumeUSD": "00000000000.00000000000", "totalBurned": "00000.0000000000000000000000", "totalBurnedPercent": "0000.00000000000", "circulatingSupply": "0000000.00000000000", "totalHolders": "0000", "USDperWORM": "0.00000000000000000", "WORMperUSD": "0.00000000000000", "ETHperWORM": "000.0000000000000000", "WORMperETH": "000.00000000000", "USDperETH": "0000.000000000000000" }
Live example of how we utilise some of the API:
  • Ticker: $WORM
  • Name: SpaceWorm
  • Token Address:
    0xF7Ecb2E5ddaD17506E62F51A442f725a26053fb2
  • Pair Address:
    0x2c5eae2ac336e27a7c8737cf5fc3263c4f09a2f0
  • Diluted Market Cap: $0
  • Total Supply: 1,100,000
  • Circulating Market Cap: $0
  • Circulating Supply: 0.00
  • Burned Supply: 0.00 (0.00%)
  • Total liquidity: $0.00 USD
  • 24h volume: $0.00 USD
  • Holders: 0
  • Total tx: 0
  • Pooled WETH: 0.0000
  • Pooled $WORM: 0.00
  • % Pooled $WORM: NaN%
  • Pool created: 9/2/2022 01:31 GMT
  • 1 ETH: 0.00 $WORM
  • 1 $WORM: 0.000000000 ETH
  • 1 ETH: 0.00 $USD
  • 1 $WORM: 0.000 $USD