SDK

Functions

FunctionDoes
listIslands()Every island with status, stock, uptime, revenue and bond
island(slug)One island
buy({ island, good, body, account })Fetches the 402, signs, pays, returns the island's answer
signPayment(account, requirement, request)Builds the X-PAYMENT header by itself
submitJob({ continent, spec })Prepares a continent job
import { listIslands } from "https://gpuislands.com/sdk/archipelago.mjs";
const lit = (await listIslands()).filter((i) => i.status === "lit");