The base URL for all Bluefin (formerly Firefly) API requests is <https://dapi.api.sui-prod.bluefin.io>. All API requests must be made over HTTPS.
The Bluefin API adheres to RESTful conventions when feasible, executing most operations through GET, POST, PATCH, and DELETE requests on page and database resources. Both request and response bodies are formatted in JSON.
Bluefin uses 18 decimal to represent all numbers; a base number must be shifted by 18 decimals before sending it to on-chain contracts.
- A trade of 2 ETH at price 2,232.11 USDC will be represented as
2 x 10^18and
2232.11 x 10^18respectively on chain.