Skip to content

The newest launches (curl)

Tested on BSC testnet before every release

This is an example. Every value in it (names, amounts, addresses) is there to show you how; change any of them to suit you. It’s launches.sh, exactly as our tests run it on testnet. Point it at testnet with MM_API, or leave it for mainnet.

launches.sh
#!/usr/bin/env bash
# The newest launches, with curl alone. (Pipe into `jq` if you have it:
# … | jq -r '.launches[] | "\(.symbol)\t\(.token)"')
# ./launches.sh
set -euo pipefail
API=${MM_API:-https://marketmayhem.co/api/v1}
curl -sf "$API/launches?limit=5"
echo
echo 'RESULT {"ok":true}'