Shader
API

DocsReference28 of 35 · 63 min read

API

Every route of the Shader API, with its authentication, inputs, outputs and schemas.

The API speaks JSON over HTTPS. Amounts are decimal strings of base units: credits in credit base units (1,000 per credit, one per USDC atom), tokens in their mint's atoms. Times are UTC ISO 8601. Response objects can gain fields in later versions, so a client should ignore keys it does not know; request bodies are strict and refuse unknown keys.

The typed client in @shader/contract calls every route below and parses each response with the same schemas.

#Authentication

A person signs in with their wallet (Sign-In With Solana) and gets a session. In a browser the session can live in a cookie; any other client sends it as Authorization: Bearer <session token>. An agent sends its agent token the same way, Authorization: Bearer <agent token>, and acts for its key's wallet within the key's caps. Agent keys and limits covers how a token is made.

  1. Ask for a nonce

    GET /auth/nonce returns the sign-in message fields in input and a nonceToken.

  2. Sign the message

    The wallet signs the Sign-In With Solana message built from input.

  3. Verify

    POST /auth/verify with the wallet's public key, the signed message, the signature and the nonceToken. The answer carries token, the bearer session token. Without nonceToken the session is set as a cookie instead.

#Transactions

Routes that end in /build return a BuiltTransaction: a v0 transaction built by the server for the caller's wallet to sign. The wallet signs it and either sends it itself or hands it back to POST /transactions/submit to be relayed; GET /transactions/{id} then follows it to confirmation.

#Formats

Written asIs
A
A
base64Standard base64.
base unitsAn unsigned integer as a decimal string, such as "40000" for 40 credits.
u64 stringBase units that fit an unsigned 64-bit integer.
u64 string above 0A u64 string greater than zero.
UTC timestampISO 8601 in UTC, such as "2026-11-28T12:00:00.000Z".

#Service

Status, configuration and the public numbers.

#GET /health

Service status.

Auth: none.

Response 200: Health.

#GET /config

Product configuration: credit value, settle interval, launch headroom, payment assets, the SHDR token, generation prices and the program id. Clients read prices from here.

Auth: none.

Response 200: ProductConfig.

#GET /dashboard

The GPU list, the latest receipts across all wallets, and the burn and Earn totals.

Auth: none.

Response 200: Dashboard.

#GET /catalog/gpus

Every GPU model with its price per second, price per hour and free machines.

Auth: none.

Response 200: GpuCatalog.

#GET /receipts/public

Receipts across all wallets, newest first.

Auth: none.

ParameterInTypeMeaning
cursor (optional)querycursorOpaque cursor from page.nextCursor.
limit (optional)queryintegerPage size, 1 to 100, default 24.
agentKey (optional)queryAOnly lines this agent key spent.
kind (optional)queryone of "deposit", "rental_settle", "generation", "x402"Only lines of this kind.

Response 200: ReceiptPage.

#Sign-in

Sign-In With Solana sessions for wallets.

#GET /auth/nonce

Starts a sign-in: the message fields to sign and a nonce token.

Auth: none.

Response 200: SignInRequest.

Errors: RATE_LIMITED.

#POST /auth/verify

Checks the signed sign-in message and opens a session.

Auth: none.

Request body: SignInProof.

Response 200: SignInSession.

Errors: UNAUTHORIZED, AUTH_NONCE_EXPIRED, AUTH_SIGNATURE_INVALID.

#GET /auth/session

The current session's wallet and expiry.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Response 200: SignInSession.

Errors: UNAUTHORIZED, SESSION_EXPIRED.

#POST /auth/logout

Ends the session. Answers 204.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

#GET /me

Who the request acts as: the wallet, and the agent key when an agent token is used.

Auth: a session or an agent token.

Response 200: Caller.

Errors: UNAUTHORIZED, AGENT_TOKEN_INVALID, AGENT_TOKEN_REVOKED.

#Rentals

Launch, read and stop GPU instances.

#POST /instances/quote

Quotes the cheapest machine of a model available now: its rate, locked if you launch with the quote before it expires, and the headroom a launch needs.

Auth: a session or an agent token.

Request body: InstanceQuoteRequest.

Response 200: InstanceQuote.

Errors: GPU_UNAVAILABLE, NOT_FOUND.

#GET /instances

The caller's instances, newest first.

Auth: a session or an agent token.

ParameterInTypeMeaning
cursor (optional)querycursorOpaque cursor from page.nextCursor.
limit (optional)queryintegerPage size, 1 to 100, default 24.

Response 200: InstancePage.

#POST /instances

Launches a GPU. The balance must hold the launch headroom. With an agent token, the key's per-request cap must also cover the longest rental an agent may run at this rate. Answers 201 with the instance in provisioning.

Auth: a session or an agent token.

Request body: InstanceLaunchRequest.

Response 201: InstanceDetail.

Errors: UNAUTHORIZED, AGENT_TOKEN_INVALID, AGENT_TOKEN_REVOKED, AGENT_KEY_REVOKED, AGENT_CAP_EXCEEDED, AGENT_DAILY_CAP_EXCEEDED, GPU_SOLD_OUT, CREDITS_TOO_LOW, VALIDATION_ERROR, UPSTREAM_UNAVAILABLE.

#GET /instances/{id}

One instance with its meter, SSH and Jupyter details, last settlement and final receipt.

Auth: a session or an agent token.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Response 200: InstanceDetail.

Errors: NOT_FOUND.

#POST /instances/{id}/stop

Stops the instance. The seconds since the last settlement are settled once more.

Auth: a session or an agent token.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Request body: InstanceStopRequest.

Response 200: StopInstanceResponse.

Errors: NOT_FOUND, INSTANCE_NOT_STOPPABLE.

#Meter

Routes the meter agent inside each rented machine calls, with its per-rental launch token. Metering and settlement explains it.

#POST /instances/{id}/meter

Registers the rental's meter key and GPU UUID, signed by that key. Accepted once.

Auth: the rental's meter launch token, Authorization: Bearer shdrmeter_…, which works for this rental's registration and ticks only.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Request body: MeterRegistrationRequest.

Response 200: MeterRegistrationResponse.

Errors: METER_ALREADY_REGISTERED, UNAUTHORIZED, VALIDATION_ERROR, NOT_FOUND.

#POST /instances/{id}/ticks

Posts a batch of signed ticks. Stored with the rental; billing does not use them yet.

Auth: the rental's meter launch token, Authorization: Bearer shdrmeter_…, which works for this rental's registration and ticks only.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Request body: MeterTicksRequest.

Response 200: MeterTicksResponse.

Errors: UNAUTHORIZED, VALIDATION_ERROR, NOT_FOUND.

#Meter ticks

The signed ticks of a rental, public by rental id. Verify a rental's ticks checks them.

#GET /instances/{id}/ticks

A rental's signed ticks, by minute, with each closed minute's digest. Paged with from and limit (1 to 60 minutes, default 10).

Auth: none.

ParameterInTypeMeaning
idpathstringThe rental id.
from (optional)queryintegerFirst minute to return.
limit (optional)queryintegerMinutes per page, 1 to 60, default 10.

Response 200: MeterTicksPage.

Errors: NOT_FOUND, VALIDATION_ERROR.

#Generation

Estimate, create and read generation jobs.

#POST /jobs/estimate

What a generation will cost, without starting it.

Auth: a session or an agent token.

Request body: GenerationRequest.

Response 200: GenerationEstimate.

Errors: UNAUTHORIZED, AGENT_TOKEN_INVALID, AGENT_TOKEN_REVOKED, AGENT_KEY_REVOKED, AGENT_CAP_EXCEEDED, AGENT_DAILY_CAP_EXCEEDED, CREDITS_TOO_LOW, CONFIGURATION_REQUIRED, VALIDATION_ERROR.

#POST /jobs

Starts a generation. Answers 201 with the job; it settles once, when the file is ready.

Auth: a session or an agent token.

Request body: GenerationRequest.

Response 201: Job.

Errors: UNAUTHORIZED, AGENT_TOKEN_INVALID, AGENT_TOKEN_REVOKED, AGENT_KEY_REVOKED, AGENT_CAP_EXCEEDED, AGENT_DAILY_CAP_EXCEEDED, CREDITS_TOO_LOW, CONFIGURATION_REQUIRED, VALIDATION_ERROR.

#GET /jobs

The caller's generation jobs, newest first.

Auth: a session or an agent token.

ParameterInTypeMeaning
cursor (optional)querycursorOpaque cursor from page.nextCursor.
limit (optional)queryintegerPage size, 1 to 100, default 24.

Response 200: JobPage.

#GET /jobs/{id}

One job with its progress, file and receipt.

Auth: a session or an agent token.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Response 200: Job.

Errors: NOT_FOUND.

#Credits

Balance, quotes and deposit transactions.

#GET /credits/balance

The credit balance in its two parts, with its dollar value.

Auth: a session or an agent token.

Response 200: CreditBalance.

#GET /credits/holdings

Supported payment assets the wallet holds, for picking what to pay with.

Auth: a session or an agent token.

Response 200: WalletHoldings.

#POST /credits/quote

Quotes a deposit: how many credits an amount of an asset will add, and until when.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: DepositQuoteRequest.

Response 200: DepositQuote.

Errors: QUOTE_ASSET_UNSUPPORTED, ASSET_NOT_LIVE, UPSTREAM_UNAVAILABLE.

#POST /credits/deposit/build

Builds the deposit transaction for a quote. For SOL and xStocks it holds the Jupiter swap and deposit_usdc; for SHDR the server co-signs after the wallet.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: BuildDepositRequest.

Response 200: BuiltTransaction.

Errors: QUOTE_EXPIRED.

#Transactions

Hand back a signed transaction and follow it.

#POST /transactions/submit

Hands back a signed transaction to relay, or the signature of one the wallet sent, and returns its status.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: SubmitTransactionRequest.

Response 200: TransactionStatus.

Errors: WALLET_REJECTED, SIMULATION_FAILED, CHAIN_REFUSED, TRANSACTION_EXPIRED, IDEMPOTENCY_CONFLICT.

#GET /transactions/{id}

The status of a built transaction. On a confirmed create_agent_key it carries the agent token, once.

Auth: a session or an agent token.

ParameterInTypeMeaning
idpathstringInstance, job or transaction id.

Response 200: TransactionStatus.

Errors: TRANSACTION_NOT_FOUND.

#Receipts

Every charge and deposit, from the indexed Receipt and deposit events.

#GET /receipts

The caller's receipts, newest first, filtered by agent key or kind.

Auth: a session or an agent token.

ParameterInTypeMeaning
cursor (optional)querycursorOpaque cursor from page.nextCursor.
limit (optional)queryintegerPage size, 1 to 100, default 24.
agentKey (optional)queryAOnly lines this agent key spent.
kind (optional)queryone of "deposit", "rental_settle", "generation", "x402"Only lines of this kind.

Response 200: ReceiptPage.

#GET /receipts/{signature}

One settlement or deposit with every line and the raw event.

Auth: a session or an agent token.

ParameterInTypeMeaning
signaturepathATransaction signature.

Response 200: ReceiptDetail.

Errors: NOT_FOUND.

#Agent keys

Agent keys and what an agent needs to connect.

#GET /agents

The wallet's agent keys with what each spent today, and the integration details.

Auth: a session or an agent token.

Response 200: AgentList.

#POST /agents/build

Builds the create_agent_key transaction. Once it confirms, GET /transactions/{id} returns the agent token once.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: CreateAgentKeyRequest.

Response 200: BuildAgentKeyResponse.

#POST /agents/{address}/update/build

Builds the update_agent_key transaction.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

ParameterInTypeMeaning
addresspathAAgent key address.

Request body: UpdateAgentKeyRequest.

Response 200: BuildAgentKeyActionResponse.

Errors: AGENT_KEY_REVOKED.

#POST /agents/{address}/revoke/build

Builds the revoke_agent_key transaction.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

ParameterInTypeMeaning
addresspathAAgent key address.

Request body: ClaimRequest.

Response 200: BuildAgentKeyActionResponse.

Errors: AGENT_KEY_REVOKED.

#Earn

Stake, withdraw and claim.

#GET /earn

The wallet's stake, accrued and claimable NVDAx, the next drop time and the pool totals.

Auth: a session or an agent token.

Response 200: EarnSummary.

#POST /earn/stake/build

Builds the stake transaction.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: StakeRequest.

Response 200: EarnBuildResponse.

Errors: ASSET_NOT_LIVE.

#POST /earn/unstake/build

Builds the unstake transaction.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: UnstakeRequest.

Response 200: EarnBuildResponse.

Errors: ASSET_NOT_LIVE.

#POST /earn/claim/build

Builds the claim transaction.

Auth: a wallet session. These routes build a transaction for the wallet to sign, so an agent token gets UNAUTHORIZED.

Request body: ClaimRequest.

Response 200: EarnBuildResponse.

Errors: ASSET_NOT_LIVE.

#x402

Generation paid per request in USDC, with no account. x402 walks through a request.

#POST /x402/generate/image

Generates images, paid in USDC per request.

Auth: none; payment goes in the PAYMENT-SIGNATURE header.

ParameterInTypeMeaning
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: ImageGenerationRequest.

Response 200: X402GenerationResponse.

Errors: PAYMENT_REQUIRED, PAYMENT_INVALID, PAYMENT_SETTLEMENT_FAILED.

#POST /x402/generate/video

Generates a video, paid in USDC per request.

Auth: none; payment goes in the PAYMENT-SIGNATURE header.

ParameterInTypeMeaning
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: VideoGenerationRequest.

Response 200: X402GenerationResponse.

Errors: PAYMENT_REQUIRED, PAYMENT_INVALID, PAYMENT_SETTLEMENT_FAILED.

#POST /x402/generate/voice

Generates a voice track, paid in USDC per request.

Auth: none; payment goes in the PAYMENT-SIGNATURE header.

ParameterInTypeMeaning
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: VoiceGenerationRequest.

Response 200: X402GenerationResponse.

Errors: PAYMENT_REQUIRED, PAYMENT_INVALID, PAYMENT_SETTLEMENT_FAILED.

#POST /x402/generate/asset3d

Generates a 3D asset, paid in USDC per request.

Auth: none; payment goes in the PAYMENT-SIGNATURE header.

ParameterInTypeMeaning
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: Asset3dGenerationRequest.

Response 200: X402GenerationResponse.

Errors: PAYMENT_REQUIRED, PAYMENT_INVALID, PAYMENT_SETTLEMENT_FAILED.

#POST /x402/rent/{gpuId}

Rents a GPU over x402 with the upto scheme. Without PAYMENT-SIGNATURE it answers 402 with a quote: the ceiling for maxSeconds at the quoted machine's rate, and the quote id in extra.memo. With a signed channel open for that ceiling it co-signs, opens the channel, launches the machine and answers with the instance, the locked rate and a stop token. Stopping and the refund come in the next step of What comes next. A refused payment answers 402 with a fresh quote and error.reason.

Auth: none; payment goes in the PAYMENT-SIGNATURE header.

ParameterInTypeMeaning
gpuIdpathstringCatalog id of the GPU model, such as h100-sxm-80gb.
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: X402RentRequest.

Response 200: X402RentalResponse.

Errors: PAYMENT_REQUIRED, GPU_UNAVAILABLE, NOT_FOUND, VALIDATION_ERROR.

#POST /x402/rent/{instanceId}/extend

Extends a running x402 rental: answers 402 with another upto ceiling for maxSeconds at the rental's locked rate, with a new extension id in extra.memo. Paid from the rental's payer wallet, it opens a further channel on the same machine.

Auth: the rental's stop token, Authorization: Bearer shdrstop_…; payment goes in PAYMENT-SIGNATURE.

ParameterInTypeMeaning
instanceIdpathstringThe rental to extend.
PAYMENT-SIGNATURE (optional)headerPaymentSignatureHeaderBase64 JSON PaymentPayload. Leave it out to get the price in a 402.

Request body: X402RentExtendRequest.

Response 200: X402RentalExtensionResponse.

Errors: UNAUTHORIZED, PAYMENT_REQUIRED, PAYMENT_INVALID, INSTANCE_NOT_EXTENDABLE, EXTENSION_PENDING, NOT_FOUND.

#MCP

The MCP server for agents. MCP server lists its tools.

#POST /mcp

MCP over stateless streamable HTTP. Without a token it answers 401 with WWW-Authenticate.

Auth: an agent token only; wallet sessions are refused.

Request body: McpRequest.

Response 200: McpResponse.

#Files

Generated files.

#GET /files/{key}

A generated file, served with its stored MIME type. The key comes from a job's result.url.

Auth: none.

ParameterInTypeMeaning
keypathstringOpaque file key from the job's file URL.

#Live events

One Server-Sent Events stream for everything that changes.

#GET /events

Opens the live event stream. Send Last-Event-ID to resume after a disconnect.

Auth: a session or an agent token.

Response 200: SseEvent.

#Live events

GET /events streams SseEvent values. The meter on a screen counts seconds itself from startedAt and the rate; the stream carries state changes and settlements.

TypeSent when
instance.changedAn instance changed state.
meter.tickA running instance's seconds and credits so far.
instance.settledA rental settlement landed.
job.progressA job's progress moved.
job.completedA job finished, done or failed.
receipt.appendedA new receipt for the caller.
deposit.creditedA deposit landed in the balance.
earn.dropThe hourly NVDAx drop reached the Earn pool.
burn.hourlyThe hourly burn ran.
resyncThe stream lost events; read the state again.

#Schemas

#McpRequest

FieldTypeMeaning
jsonrpc"2.0""2.0".
id (optional)string or numberIdentifier.
methodstringMCP method, such as initialize, tools/list or tools/call.
params (optional)object (free form)Method parameters; for tools/call, name and arguments.

#McpResponse

FieldTypeMeaning
jsonrpc"2.0""2.0".
id (optional)string or number or nullIdentifier.
result (optional)any JSONThe method's result.
error (optional)any JSONWhy payment is required.

#FileContent

string.

#Health

FieldTypeMeaning
statusstringready, waiting or fixture.

#ProductConfig

FieldTypeMeaning
contractVersionstringVersion of @shader/contract the server speaks.
creditValueUsddecimal stringDollar value of one credit.
creditBaseUnitsPerCreditu64 string above 0Base units in one credit.
settleIntervalSecondsintegerSeconds between rental settlements.
launchHeadroomBaseUnitsu64 string above 0Credits a launch needs in the balance, base units.
feeShareBpsintegerProtocol fee share of used USDC-backed credits, basis points.
clusterstringSolana cluster the API runs against.
programIdA or nullThe shader program id.
explorerBaseURLBase URL of the block explorer links.
paymentAssetsarray of objectAssets credits can be bought with.
paymentAssets[].mintA or nullMint address, or null before it exists.
paymentAssets[].symbolstringTicker.
paymentAssets[].namestringName.
paymentAssets[].decimalsintegerDecimals of the mint.
paymentAssets[].tokenProgramA or nullToken program of the USDC mint.
paymentAssets[].depositMethodstringdirect for USDC, jupiter for a swap to USDC, attested for SHDR.
paymentAssets[].enabledbooleanWhether it can be deposited now.
paymentAssets[].native (optional)booleanTrue for SOL, which is wrapped only for its swap.
shdrobjectThe SHDR token: mint and venue are null until they exist.
shdr.mintA or nullMint address, or null before it exists.
shdr.venueURL or nullWhere SHDR trades, or null before it exists.
shdr.symbolstringTicker.
shdr.namestringName.
generationPricingobjectGeneration prices, base units.
generationPricing.imageCreditsBaseUnitsu64 string above 0Price of one image, base units.
generationPricing.videoCreditsBaseUnitsPerOutputSecondu64 string above 0Price of one output second of video, base units.
generationPricing.voiceCreditsBaseUnitsPerCharacteru64 string above 0Price of one character of voice, base units.
generationPricing.asset3dCreditsBaseUnitsu64 string above 0Price of one 3D asset, base units.
gpuPricing (optional)array of GpuThe live GPU catalog with its price ranges, the same as GET /catalog/gpus.
agentRentalMaxSeconds (optional)integerLongest run an agent rental is admitted for: a launch with an agent token needs a per-request cap of at least the rate times this.
meterGraceSeconds (optional)integerSeconds a metered rental may go without a signed tick before it is stopped.

#Dashboard

FieldTypeMeaning
gpusarray of GpuGPU models with their prices and free machines.
recentReceiptsarray of objectLatest receipts across all wallets.
recentReceipts[].signatureATransaction signature.
recentReceipts[].lineIndexintegerPosition of the line in its transaction, from 0.
recentReceipts[].occurredAtUTC timestampWhen it landed.
recentReceipts[].kindstringKind.
recentReceipts[].jobIdstring or nullThe rental or generation it charges, or null for a deposit.
recentReceipts[].labelstringName shown for it.
recentReceipts[].unitsu64 stringHow many of unit.
recentReceipts[].unitsDisplaydecimal stringunits as a decimal for display.
recentReceipts[].unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
recentReceipts[].creditsBaseUnitsbase unitsCredits, base units.
recentReceipts[].usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
recentReceipts[].shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
recentReceipts[].rateBaseUnitsPerSecond (optional)u64 string above 0Price per second, base units.
recentReceipts[].refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
recentReceipts[].channelId (optional)AThe payment channel account.
recentReceipts[].channelPosition (optional)integerFor an x402 rental close, which channel of the rental this is, from 1.
recentReceipts[].channelCount (optional)integerFor an x402 rental close, how many channels the rental had.
recentReceipts[].unmetered (optional)booleanTrue when the rental had no meter key, so its seconds came from the server meter.
recentReceipts[].meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
recentReceipts[].minute (optional)integerMinute index.
recentReceipts[].signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
recentReceipts[].digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
recentReceipts[].ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
recentReceipts[].walletAThe wallet.
recentReceipts[].agentKeyobject or nullThe agent key involved, or null for the wallet itself.
recentReceipts[].agentKey.addressAAddress.
recentReceipts[].agentKey.labelstringName shown for it.
recentReceipts[].explorerUrlURLThe transaction on the block explorer.
totalsobjectBurn and Earn totals.
totals.shdrBurnedBaseUnitsbase unitsSHDR burned so far, atoms.
totals.shdrBurnedLastHourBaseUnitsbase unitsSHDR burned in the last hour, atoms.
totals.totalStakedBaseUnitsbase unitsSHDR staked in the pool, atoms.
totals.nvdaxDistributedBaseUnitsbase unitsNVDAx added to the pool so far, atoms.
asOfUTC timestampWhen the data was read.

#Gpu

FieldTypeMeaning
ididentifierIdentifier.
displayNamestringModel name, with its memory.
memoryGbintegerGPU memory, GB.
creditsPerSecondBaseUnitsu64 string above 0 or nullLowest live rate now, base units per second, or null when no machine can be priced. The same as fromCreditsPerSecondBaseUnits.
usdPerHourdecimal string or nullLowest live rate now in dollars an hour, or null. The same as fromUsdPerHour.
availableCountintegerMachines of this model offered now.
fromCreditsPerSecondBaseUnits (optional)u64 string above 0 or nullLowest live rate now, base units per second, or null.
maxCreditsPerSecondBaseUnits (optional)u64 string above 0 or nullHighest live rate now, base units per second, or null.
fromUsdPerHour (optional)decimal string or nullLowest live rate now, dollars an hour, or null.
maxUsdPerHour (optional)decimal string or nullHighest live rate now, dollars an hour, or null.

#GpuCatalog

FieldTypeMeaning
gpusarray of GpuGPU models with their prices and free machines.
asOfUTC timestampWhen the data was read.

#SignInRequest

FieldTypeMeaning
inputobjectFields of the Sign-In With Solana message to sign.
input.domainstringHost the sign-in is for.
input.statementstringThe sentence the wallet shows.
input.uriURLOrigin the sign-in is for.
input.versionstringMessage version.
input.chainIdstringChain the sign-in is for.
input.noncestringA number the payer chooses so each channel is new.
input.issuedAtUTC timestampWhen the message was issued.
input.expirationTimeUTC timestampWhen the message stops being accepted.
nonceToken (optional)stringToken proving the nonce was issued by this server.

#SignInProof

FieldTypeMeaning
publicKeyAThe wallet's address.
signedMessageX402UptoSettlementResponseHeaderThe exact message the wallet signed, base64.
signaturebase64 signatureThe wallet's ed25519 signature of signedMessage, base64.
nonceToken (optional)stringToken proving the nonce was issued by this server.

#SignInSession

FieldTypeMeaning
walletAThe wallet.
expiresAtUTC timestampWhen it expires.
token (optional)stringBearer session token, when nonceToken was sent to /auth/verify.

#Caller

FieldTypeMeaning
walletAThe wallet.
authKindstringsession for a wallet session, agent for an agent token.
agentKeyobject or nullThe agent key the token belongs to, or null for a wallet session.
agentKey.addressAAddress.
agentKey.labelstringName shown for it.

#SseEvent

One Server-Sent Event of GET /events.

FieldTypeMeaning
idstringIdentifier.
typestringEvent type, from the table above.
timestampUTC timestampWhen the event happened.
dataany JSONThe event's payload; its shape depends on type.

#InstancePage

FieldTypeMeaning
itemsarray of objectThe page of results, newest first.
items[].idstringIdentifier.
items[].walletAThe wallet.
items[].gpuGpuThe GPU model.
items[].statestringCurrent state.
items[].createdAtUTC timestampWhen it was created.
items[].startedAtUTC timestamp or nullWhen it started running, or null.
items[].stoppedAtUTC timestamp or nullWhen it stopped, or null.
items[].secondsRunu64 stringSeconds the instance has run.
items[].creditsSoFarBaseUnitsbase unitsCredits the rental has cost so far, base units.
items[].rateBaseUnitsPerSecondu64 string above 0Price per second, base units.
items[].lastSettlementobject or nullThe most recent settlement of this rental, or null before the first.
items[].lastSettlement.signatureATransaction signature.
items[].lastSettlement.occurredAtUTC timestampWhen it landed.
items[].lastSettlement.creditsBaseUnitsbase unitsCredits, base units.
items[].lastSettlement.lineIndexintegerPosition of the line in its transaction, from 0.
items[].lastSettlement.meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
items[].lastSettlement.minute (optional)integerMinute index.
items[].lastSettlement.signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
items[].lastSettlement.digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
items[].lastSettlement.ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
items[].payment (optional)object or object or objectHow the rental is paid: credits, or x402 with its channel, ceiling, maxSeconds, open signature and explorer link.
items[].payment.mode"credits"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
items[].payment.mode"x402"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
items[].payment.channelIdAThe payment channel account.
items[].payment.ceilingBaseUnitsu64 string above 0The escrowed ceiling, USDC atoms.
items[].payment.maxSecondsintegerLongest the rental may run, in seconds. Defaults to 3600 and is capped at agentRentalMaxSeconds.
items[].payment.openSignatureASignature of the channel open transaction.
items[].payment.explorerUrlURLThe transaction on the block explorer.
items[].payment.chargedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms charged when the channel closed.
items[].payment.refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
items[].payment.sealSignature (optional)ASignature of the settle_and_seal transaction.
items[].payment.distributeSignature (optional)ASignature of the distribute transaction.
items[].payment.closedAt (optional)UTC timestampWhen the channel closed.
items[].payment.channels (optional)array of InstanceX402ChannelEvery payment channel of an x402 rental, in order: its ceiling, signatures, seconds run, charge, refund and state.
items[].payment.modestringrelay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
items[].metered (optional)booleanWhether the rental has a registered meter key; its seconds are then the signed seconds.
items[].signedSeconds (optional)u64 string or nullSeconds signed by the meter so far, or null when unmetered.
items[].unsealedSeconds (optional)stringSigned seconds in minutes whose meter never sent a seal; they are not charged.
items[].stopReason (optional)string or nullWhy the rental stopped: user, credits_exhausted, ceiling, channel_expired, agent_cap, settlement_refused, provisioning_failed, meter_stopped_signing or meter_did_not_start; null while it runs.
pageobjectPaging: nextCursor and hasMore.
page.nextCursorstring or nullCursor for the next page, or null.
page.hasMorebooleanWhether more pages follow.
asOfUTC timestampWhen the data was read.

#InstanceQuoteRequest

FieldTypeMeaning
gpuidentifierThe GPU model.

#InstanceQuote

FieldTypeMeaning
quoteIdstringQuote to launch from.
gpuGpuThe GPU model.
rateBaseUnitsPerSecondu64 string above 0The quoted machine's rate, base units per second, locked for the rental if you launch before expiresAt.
usdPerHourdecimal stringThe quoted rate in dollars an hour.
expiresAtUTC timestampWhen it expires.
launchHeadroomBaseUnitsu64 string above 0Credits a launch needs in the balance, base units.

#InstanceLaunchRequest

FieldTypeMeaning
gpuIdidentifierCatalog id of the GPU model, such as h100-sxm-80gb.
quoteId (optional)stringQuote to launch from.
sshPublicKey (optional)stringYour SSH public key. Without one, a password is generated and shown only to you.
idempotencyKey (optional)stringA key of your choice; repeating a request with the same key returns the first result instead of acting twice.

#InstanceDetail

FieldTypeMeaning
idstringIdentifier.
walletAThe wallet.
gpuGpuThe GPU model.
statestringprovisioning, running, settling, stopping, stopped or failed.
createdAtUTC timestampWhen it was created.
startedAtUTC timestamp or nullWhen it started running, or null.
stoppedAtUTC timestamp or nullWhen it stopped, or null.
secondsRunu64 stringSeconds the instance has run.
creditsSoFarBaseUnitsbase unitsCredits the rental has cost so far, base units.
rateBaseUnitsPerSecondu64 string above 0Price per second, base units.
lastSettlementobject or nullThe most recent settlement of this rental, or null before the first.
lastSettlement.signatureATransaction signature.
lastSettlement.occurredAtUTC timestampWhen it landed.
lastSettlement.creditsBaseUnitsbase unitsCredits, base units.
lastSettlement.lineIndexintegerPosition of the line in its transaction, from 0.
lastSettlement.meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
lastSettlement.minute (optional)integerMinute index.
lastSettlement.signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
lastSettlement.digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
lastSettlement.ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
payment (optional)object or object or objectHow the rental is paid: credits, or x402 with its channel, ceiling, maxSeconds, open signature and explorer link.
payment.mode"credits"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
payment.mode"x402"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
payment.channelIdAThe payment channel account.
payment.ceilingBaseUnitsu64 string above 0The escrowed ceiling, USDC atoms.
payment.maxSecondsintegerLongest the rental may run, in seconds. Defaults to 3600 and is capped at agentRentalMaxSeconds.
payment.openSignatureASignature of the channel open transaction.
payment.explorerUrlURLThe transaction on the block explorer.
payment.chargedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms charged when the channel closed.
payment.refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
payment.sealSignature (optional)ASignature of the settle_and_seal transaction.
payment.distributeSignature (optional)ASignature of the distribute transaction.
payment.closedAt (optional)UTC timestampWhen the channel closed.
payment.channels (optional)array of InstanceX402ChannelEvery payment channel of an x402 rental, in order: its ceiling, signatures, seconds run, charge, refund and state.
payment.modestringrelay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
metered (optional)booleanWhether the rental has a registered meter key; its seconds are then the signed seconds.
signedSeconds (optional)u64 string or nullSeconds signed by the meter so far, or null when unmetered.
unsealedSeconds (optional)stringSigned seconds in minutes whose meter never sent a seal; they are not charged.
stopReason (optional)string or nullWhy the rental stopped: user, credits_exhausted, ceiling, channel_expired, agent_cap, settlement_refused, provisioning_failed, meter_stopped_signing or meter_did_not_start; null while it runs.
sshobject or nullSSH host, port, user and full command, while running.
ssh.hoststringSSH host.
ssh.portintegerSSH port.
ssh.userstringSSH user.
ssh.commandstringThe full SSH command.
ssh.passwordstring or nullGenerated password when no key was given, shown only to the owner; otherwise null.
jupyterobject or nullJupyter URL and token, while running.
jupyter.urlURLURL.
jupyter.tokenstringBearer session token, when nonceToken was sent to /auth/verify.
finalReceiptobject or nullThe receipt of the settlement at stop, once it lands.
finalReceipt.signatureATransaction signature.
finalReceipt.lineIndexintegerPosition of the line in its transaction, from 0.
finalReceipt.occurredAtUTC timestampWhen it landed.
finalReceipt.kindstringKind.
finalReceipt.jobIdstring or nullThe rental or generation it charges, or null for a deposit.
finalReceipt.labelstringName shown for it.
finalReceipt.unitsu64 stringHow many of unit.
finalReceipt.unitsDisplaydecimal stringunits as a decimal for display.
finalReceipt.unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
finalReceipt.creditsBaseUnitsbase unitsCredits, base units.
finalReceipt.usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
finalReceipt.shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
finalReceipt.rateBaseUnitsPerSecond (optional)u64 string above 0Price per second, base units.
finalReceipt.refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
finalReceipt.channelId (optional)AThe payment channel account.
finalReceipt.channelPosition (optional)integerFor an x402 rental close, which channel of the rental this is, from 1.
finalReceipt.channelCount (optional)integerFor an x402 rental close, how many channels the rental had.
finalReceipt.unmetered (optional)booleanTrue when the rental had no meter key, so its seconds came from the server meter.
finalReceipt.meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
finalReceipt.minute (optional)integerMinute index.
finalReceipt.signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
finalReceipt.digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
finalReceipt.ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
finalReceipt.walletAThe wallet.
finalReceipt.agentKeyobject or nullThe agent key involved, or null for the wallet itself.
finalReceipt.agentKey.addressAAddress.
finalReceipt.agentKey.labelstringName shown for it.
finalReceipt.explorerUrlURLThe transaction on the block explorer.
failurestring or nullWhy it failed, or null.
creditsRefundedbooleanTrue when a launch failed before running, so nothing was charged.
meterKey (optional)A or nullThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
gpuUuid (optional)string or nullThe GPU's UUID as nvidia-smi reports it inside the machine; null until the meter agent registers.

#MeterRegistrationRequest

FieldTypeMeaning
publicKeyAThe meter key, base58.
gpuUuidstringThe GPU's UUID as nvidia-smi reports it inside the machine; null until the meter agent registers.
signaturestringThe meter key's Ed25519 signature over the registration message.

#MeterRegistrationResponse

FieldTypeMeaning
registeredtruetrue once the meter is registered.

#MeterTicksRequest

FieldTypeMeaning
ticks (optional)array of objectSigned ticks, one per second, in a batch.
ticks[].secondintegerSeconds since registration, from 0.
ticks[].signaturestringThe meter key's Ed25519 signature over the tick message.
seals (optional)array of objectMinute seals, one per closed minute, each signed by the meter key.
seals[].minuteintegerThe minute sealed.
seals[].countintegerSigned seconds in that minute.
seals[].digeststringThe minute digest, lowercase hex.
seals[].signaturestringThe meter key's Ed25519 signature over the seal message.

#MeterTicksResponse

FieldTypeMeaning
acceptedintegerTicks accepted from the batch.
refused (optional)integerTicks refused from the batch: a bad signature, a repeated or out-of-order second, or a second ahead of time.
storedSeconds (optional)array of integerSeconds of the batch stored.
sealedMinutes (optional)array of integerMinutes whose seal was accepted.
refusedSeals (optional)integerSeals refused from the batch.

#MeterTicksPage

FieldTypeMeaning
jobIdstringThe rental id.
meterKeyA or nullThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
gpuUuidstring or nullThe GPU's UUID as nvidia-smi reports it inside the machine; null until the meter agent registers.
tickVersionstringThe tick message version, shader-meter-tick/v1.
minuteVersionstringThe minute digest version, shader-meter-minute/v1.
sealVersion (optional)stringThe seal message version, shader-meter-seal/v1.
minutesarray of objectThe rental's minutes, from from.
minutes[].minuteintegerMinute index m, from 0 at registration.
minutes[].firstSecondintegerFirst second of the minute, 60 × m.
minutes[].ticksarray of objectThe minute's signed ticks, in second order.
minutes[].ticks[].secondintegerSeconds since registration.
minutes[].ticks[].signaturestringEd25519 signature over the tick message, padded base64.
minutes[].countintegerTicks in the minute.
minutes[].gapsarray of objectRuns of seconds in the minute with no tick; they are not charged.
minutes[].gaps[].fromSecondintegerFirst second of the gap.
minutes[].gaps[].toSecondintegerLast second of the gap.
minutes[].digeststring or nullSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
minutes[].seal (optional)object or nullThe closed minute's seal: minute, count, digest and the meter key's signature, or null if the meter never sealed it.
minutes[].seal.minuteintegerThe minute sealed.
minutes[].seal.countintegerSigned seconds sealed.
minutes[].seal.digeststringThe minute digest sealed.
minutes[].seal.signaturestringEd25519 signature over the seal message, padded base64.
minutes[].openbooleanTrue while the minute is still being written.
nextMinuteinteger or nullThe from for the next page, or null.

#InstanceStopRequest

FieldTypeMeaning
idempotencyKey (optional)stringA key of your choice; repeating a request with the same key returns the first result instead of acting twice.

#StopInstanceResponse

FieldTypeMeaning
instanceInstanceDetailThe instance after the stop request.

#JobPage

FieldTypeMeaning
itemsarray of JobThe page of results, newest first.
pageobjectPaging: nextCursor and hasMore.
page.nextCursorstring or nullCursor for the next page, or null.
page.hasMorebooleanWhether more pages follow.
asOfUTC timestampWhen the data was read.

#GenerationRequest

One of the four kinds, chosen by kind.

When kind is "image":

FieldTypeMeaning
kind"image"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.width (optional)integerImage width, 256 to 2048.
options.height (optional)integerImage height, 256 to 2048.
options.count (optional)integerImages to make, 1 to 4.
options.format (optional)one of "png", "webp"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

When kind is "video":

FieldTypeMeaning
kind"video"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.outputSecondsintegerVideo length, 1 to 60 seconds.
options.aspectRatio (optional)one of "16:9", "9:16", "1:1"16:9, 9:16 or 1:1.
options.format (optional)one of "mp4", "webm"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

When kind is "voice":

FieldTypeMeaning
kind"voice"Kind.
textstringText to speak.
optionsobjectOptions of the kind.
options.voice (optional)stringVoice to speak with.
options.format (optional)one of "mp3", "wav"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

When kind is "asset3d":

FieldTypeMeaning
kind"asset3d"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.format (optional)one of "glb", "usdz"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.
options.style (optional)stringStyle of the 3D asset.

#ImageGenerationRequest

FieldTypeMeaning
kind"image"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.width (optional)integerImage width, 256 to 2048.
options.height (optional)integerImage height, 256 to 2048.
options.count (optional)integerImages to make, 1 to 4.
options.format (optional)one of "png", "webp"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

#VideoGenerationRequest

FieldTypeMeaning
kind"video"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.outputSecondsintegerVideo length, 1 to 60 seconds.
options.aspectRatio (optional)one of "16:9", "9:16", "1:1"16:9, 9:16 or 1:1.
options.format (optional)one of "mp4", "webm"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

#VoiceGenerationRequest

FieldTypeMeaning
kind"voice"Kind.
textstringText to speak.
optionsobjectOptions of the kind.
options.voice (optional)stringVoice to speak with.
options.format (optional)one of "mp3", "wav"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.

#Asset3dGenerationRequest

FieldTypeMeaning
kind"asset3d"Kind.
promptstringWhat to generate.
optionsobjectOptions of the kind.
options.format (optional)one of "glb", "usdz"File format: png or webp for images, mp4 or webm for video, mp3 or wav for voice, glb or usdz for 3D.
options.style (optional)stringStyle of the 3D asset.

#GenerationEstimate

FieldTypeMeaning
kindstringimage, video, voice or asset3d.
unitsu64 stringHow many of unit.
unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
creditsBaseUnitsu64 string above 0Credits the job will cost, base units.
pricingRulestringThe price rule in words.

#Job

FieldTypeMeaning
idstringIdentifier.
walletAThe wallet.
kindstringimage, video, voice or asset3d.
statestringqueued, running, done (with result and receipt) or failed (with failure, nothing charged).
createdAtUTC timestampWhen it was created.
startedAtUTC timestamp or nullWhen it started running, or null.
completedAtUTC timestamp or nullWhen the job finished, or null.
progressnumberProgress from 0 to 1.
estimateGenerationEstimateThe estimate the job was created with.
chargedCreditsBaseUnitsbase unitsCredits charged so far; 0 until the job settles, and 0 for a failed job.
resultobject or nullThe method's result.
result.urlURLURL.
result.mimeTypestringFile type.
result.sizeBytesu64 stringFile size, bytes.
results (optional)array of objectEvery generated file, when a job makes more than one.
results[].urlURLURL.
results[].mimeTypestringFile type.
results[].sizeBytesu64 stringFile size, bytes.
paymentMode (optional)stringcredits when the job spends the credit account, x402 when it was paid per request.
settlementStatus (optional)stringpending, settled, not_charged (a failed credit-funded job) or refund_review (a failed paid job whose payment is held for a refund).
refundRequired (optional)booleanTrue when a paid x402 job failed after its payment landed.
receiptobject or nullThe receipt of the job's settlement, once it lands.
receipt.signatureATransaction signature.
receipt.lineIndexintegerPosition of the line in its transaction, from 0.
receipt.occurredAtUTC timestampWhen it landed.
receipt.kindstringimage, video, voice or asset3d.
receipt.jobIdstring or nullThe rental or generation it charges, or null for a deposit.
receipt.labelstringName shown for it.
receipt.unitsu64 stringHow many of unit.
receipt.unitsDisplaydecimal stringunits as a decimal for display.
receipt.unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
receipt.creditsBaseUnitsbase unitsCredits, base units.
receipt.usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
receipt.shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
receipt.rateBaseUnitsPerSecond (optional)u64 string above 0Price per second, base units.
receipt.refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
receipt.channelId (optional)AThe payment channel account.
receipt.channelPosition (optional)integerFor an x402 rental close, which channel of the rental this is, from 1.
receipt.channelCount (optional)integerFor an x402 rental close, how many channels the rental had.
receipt.unmetered (optional)booleanTrue when the rental had no meter key, so its seconds came from the server meter.
receipt.meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
receipt.minute (optional)integerMinute index.
receipt.signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
receipt.digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
receipt.ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
receipt.walletAThe wallet.
receipt.agentKeyobject or nullThe agent key involved, or null for the wallet itself.
receipt.agentKey.addressAAddress.
receipt.agentKey.labelstringName shown for it.
receipt.explorerUrlURLThe transaction on the block explorer.
failurestring or nullWhy it failed, or null.

#CreditBalance

FieldTypeMeaning
totalBaseUnitsbase unitsAll credits, base units.
usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
usdValuedecimal stringValue in dollars.

#WalletHoldings

FieldTypeMeaning
walletAThe wallet.
holdingsarray of objectSupported assets the wallet holds.
holdings[].assetobjectThe payment asset.
holdings[].asset.mintA or nullMint address, or null before it exists.
holdings[].asset.symbolstringTicker.
holdings[].asset.namestringName.
holdings[].asset.decimalsintegerDecimals of the mint.
holdings[].asset.tokenProgramA or nullToken program of the USDC mint.
holdings[].asset.depositMethodstringdirect for USDC, jupiter for a swap to USDC, attested for SHDR.
holdings[].asset.enabledbooleanWhether it can be deposited now.
holdings[].asset.native (optional)booleanTrue for SOL, which is wrapped only for its swap.
holdings[].amountBaseUnitsbase unitsAmount in the asset's atoms.
holdings[].usdValuedecimal stringValue in dollars.
holdings[].amountDisplay (optional)decimal stringThe amount as a decimal.
holdings[].uiMultiplier (optional)decimal stringThe mint's Token-2022 display multiplier, if any.
holdings[].usdValueAvailable (optional)booleanWhether a dollar value could be read.
holdings[].totalAmountBaseUnits (optional)base unitsAll the wallet holds of the asset, atoms.
holdings[].reservedBaseUnits (optional)base unitsAtoms kept back, such as the SOL left for fees.
asOfUTC timestampWhen the data was read.

#DepositQuoteRequest

FieldTypeMeaning
assetMintAMint of the asset to deposit.
amountBaseUnitsu64 string above 0Amount in the asset's atoms.

#DepositQuote

FieldTypeMeaning
idstringIdentifier.
assetobjectThe payment asset.
asset.mintA or nullMint address, or null before it exists.
asset.symbolstringTicker.
asset.namestringName.
asset.decimalsintegerDecimals of the mint.
asset.tokenProgramA or nullToken program of the USDC mint.
asset.depositMethodstringdirect for USDC, jupiter for a swap to USDC, attested for SHDR.
asset.enabledbooleanWhether it can be deposited now.
asset.native (optional)booleanTrue for SOL, which is wrapped only for its swap.
amountBaseUnitsu64 string above 0Amount in the asset's atoms.
creditsBaseUnitsu64 string above 0Credits the deposit will add, base units.
routeSummarystringHow the asset becomes USDC, in words.
expiresAtUTC timestampWhen it expires.
requiresPriceSignerbooleanTrue for SHDR: the server co-signs the deposit after the wallet.

#BuildDepositRequest

FieldTypeMeaning
quoteIdstringQuote to launch from.

#BuiltTransaction

FieldTypeMeaning
idstringIdentifier.
transactionBase64X402UptoSettlementResponseHeaderThe unsigned v0 transaction, base64.
blockhashstringBlockhash the transaction was built on.
lastValidBlockHeightintegerBlock height after which the transaction can no longer land.
cosignedbooleanWhether the server already added its own signature (the price signer, on a SHDR deposit).

#SubmitTransactionRequest

When mode is "relay":

FieldTypeMeaning
mode"relay"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
buildIdstringId of the BuiltTransaction.
signedTransactionBase64X402UptoSettlementResponseHeaderThe wallet-signed transaction, base64.
idempotencyKeystringA key of your choice; repeating a request with the same key returns the first result instead of acting twice.

When mode is "wallet-sent":

FieldTypeMeaning
mode"wallet-sent"relay to have the API send the signed transaction, wallet-sent when the wallet already sent it.
buildIdstringId of the BuiltTransaction.
signatureASignature of the transaction the wallet sent.
idempotencyKeystringA key of your choice; repeating a request with the same key returns the first result instead of acting twice.

#TransactionStatus

FieldTypeMeaning
idstringIdentifier.
statusstringsubmitted, unconfirmed, confirmed, finalized, failed or expired.
signature (optional)ATransaction signature.
error (optional)objectWhy the transaction failed, with the stage it failed at.
error.stagestringWhere it failed: build, wallet, simulation, send or confirmation.
error.messagestringA sentence to show a person.
error.nextStep (optional)stringWhat to do next.
error.retryablebooleanWhether trying again unchanged can succeed.
error.program (optional)objectThe program that failed, with its error code and name.
error.program.addressAAddress.
error.program.codeinteger or nullProgram error code.
error.program.namestring or nullName.
oneTimeAgentToken (optional)stringThe agent token, present once, on the confirmed create_agent_key transaction. Store it; it is never shown again.

#ReceiptPage

FieldTypeMeaning
itemsarray of objectThe page of results, newest first.
items[].signatureATransaction signature.
items[].lineIndexintegerPosition of the line in its transaction, from 0.
items[].occurredAtUTC timestampWhen it landed.
items[].kindstringKind.
items[].jobIdstring or nullThe rental or generation it charges, or null for a deposit.
items[].labelstringName shown for it.
items[].unitsu64 stringHow many of unit.
items[].unitsDisplaydecimal stringunits as a decimal for display.
items[].unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
items[].creditsBaseUnitsbase unitsCredits, base units.
items[].usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
items[].shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
items[].rateBaseUnitsPerSecond (optional)u64 string above 0Price per second, base units.
items[].refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
items[].channelId (optional)AThe payment channel account.
items[].channelPosition (optional)integerFor an x402 rental close, which channel of the rental this is, from 1.
items[].channelCount (optional)integerFor an x402 rental close, how many channels the rental had.
items[].unmetered (optional)booleanTrue when the rental had no meter key, so its seconds came from the server meter.
items[].meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
items[].minute (optional)integerMinute index.
items[].signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
items[].digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
items[].ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
items[].walletAThe wallet.
items[].agentKeyobject or nullThe agent key involved, or null for the wallet itself.
items[].agentKey.addressAAddress.
items[].agentKey.labelstringName shown for it.
items[].explorerUrlURLThe transaction on the block explorer.
pageobjectPaging: nextCursor and hasMore.
page.nextCursorstring or nullCursor for the next page, or null.
page.hasMorebooleanWhether more pages follow.
asOfUTC timestampWhen the data was read.

#ReceiptQuery

The query of GET /receipts and GET /receipts/public.

FieldTypeMeaning
cursor (optional)cursorOpaque cursor from page.nextCursor.
limitintegerPage size, 1 to 100.
agentKey (optional)AThe agent key involved, or null for the wallet itself.
kind (optional)one of "deposit", "rental_settle", "generation", "x402"Kind.

#ReceiptDetail

FieldTypeMeaning
signatureATransaction signature.
walletAThe wallet.
slotu64 stringSlot the transaction landed in.
blockTimeUTC timestampBlock time of the transaction.
explorerUrlURLThe transaction on the block explorer.
linesarray of objectOne entry per settlement line, in lineIndex order.
lines[].lineIndexintegerPosition of the line in its transaction, from 0.
lines[].kindstringKind.
lines[].jobIdstring or nullThe rental or generation it charges, or null for a deposit.
lines[].labelstringName shown for it.
lines[].unitsu64 stringHow many of unit.
lines[].unitsDisplaydecimal stringunits as a decimal for display.
lines[].unitstringWhat units counts: seconds, images, output seconds, characters, assets, or the deposit asset.
lines[].creditsBaseUnitsbase unitsCredits, base units.
lines[].usdcBackedBaseUnitsbase unitsUSDC-backed part, base units.
lines[].shdrBackedBaseUnitsbase unitsSHDR-backed part, base units.
lines[].rateBaseUnitsPerSecond (optional)u64 string above 0Price per second, base units.
lines[].refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
lines[].channelId (optional)AThe payment channel account.
lines[].channelPosition (optional)integerFor an x402 rental close, which channel of the rental this is, from 1.
lines[].channelCount (optional)integerFor an x402 rental close, how many channels the rental had.
lines[].unmetered (optional)booleanTrue when the rental had no meter key, so its seconds came from the server meter.
lines[].meterKey (optional)AThe meter agent's public key for this rental, base58, the same as /etc/shader/meter.pub inside the machine; null until the agent registers.
lines[].minute (optional)integerMinute index.
lines[].signedCount (optional)integerFor a metered rental line, the signed seconds in its sealed minute.
lines[].digest (optional)stringSHA-256 of the minute digest message, lowercase hex, or null while the minute is open.
lines[].ticksUrl (optional)URLFor a metered rental line, the public ticks of its minute.
lines[].agentKeyobject or nullThe agent key involved, or null for the wallet itself.
lines[].agentKey.addressAAddress.
lines[].agentKey.labelstringName shown for it.
rawEventany JSONThe decoded program event, as indexed.

#AgentList

FieldTypeMeaning
agentsarray of objectThe caller's agent keys.
agents[].addressAAddress.
agents[].labelstringName shown for it.
agents[].perRequestCapBaseUnitsu64 string above 0Per-request cap, base units.
agents[].perDayCapBaseUnitsu64 string above 0Per-day cap, base units.
agents[].spentTodayBaseUnitsbase unitsCredits charged to the key in the current UTC day, base units.
agents[].dayWindowStartedAtUTC timestampStart of the key's current UTC day.
agents[].revokedbooleanWhether the key is revoked.
integrationobjectWhat an agent needs to connect: the MCP endpoint and config, the x402 routes, the skill and CLI install lines.
integration.mcpEndpointURLThe MCP server URL.
integration.mcpConfigSnippetstringA client configuration with a placeholder token.
integration.x402Endpointsarray of objectThe x402 routes with their price rules.
integration.x402Endpoints[].pathstringRoute path.
integration.x402Endpoints[].kindstringKind.
integration.x402Endpoints[].pricingRulestringThe price rule in words.
integration.skillInstallCommandstringHow to install the coding-agent skill.
integration.cliInstallCommandstringHow to install the CLI.
integration.x402CliRentCommand (optional)stringThe CLI command that rents over x402 from a wallet.
integration.x402McpConfigSnippet (optional)stringAn MCP client configuration with no token, for the x402 tools.

#CreateAgentKeyRequest

FieldTypeMeaning
labelstringName shown for it.
perRequestCapBaseUnitsu64 string above 0Per-request cap, base units.
perDayCapBaseUnitsu64 string above 0Per-day cap, base units.

#BuildAgentKeyResponse

FieldTypeMeaning
agentKeyobjectThe key as it will exist once the transaction confirms.
agentKey.addressAAddress.
agentKey.labelstringName shown for it.
agentKey.perRequestCapBaseUnitsu64 string above 0Per-request cap, base units.
agentKey.perDayCapBaseUnitsu64 string above 0Per-day cap, base units.
agentKey.spentTodayBaseUnitsbase unitsCredits charged to the key in the current UTC day, base units.
agentKey.dayWindowStartedAtUTC timestampStart of the key's current UTC day.
agentKey.revokedbooleanWhether the key is revoked.
buildBuiltTransactionThe transaction to sign.

#UpdateAgentKeyRequest

FieldTypeMeaning
perRequestCapBaseUnits (optional)u64 string above 0Per-request cap, base units.
perDayCapBaseUnits (optional)u64 string above 0Per-day cap, base units.

#BuildAgentKeyActionResponse

FieldTypeMeaning
buildBuiltTransactionThe transaction to sign.

#EarnSummary

FieldTypeMeaning
tokenLivebooleanFalse until the SHDR mint exists; Earn actions wait for it.
shdrMintA or nullSHDR mint, or null before launch.
nvdaxMintANVDAx mint.
stakeBaseUnitsbase unitsSHDR staked, atoms.
nvdaxAccruedBaseUnitsbase unitsNVDAx accrued by the stake, atoms.
nvdaxClaimableBaseUnitsbase unitsNVDAx claimable now, atoms.
nextDropAtUTC timestampWhen the next hourly NVDAx drop lands.
poolobjectPool totals.
pool.totalStakedBaseUnitsbase unitsSHDR staked in the pool, atoms.
pool.nvdaxDistributedBaseUnitsbase unitsNVDAx added to the pool so far, atoms.
pool.shdrBurnedBaseUnitsbase unitsSHDR burned so far, atoms.
pool.shdrBurnedLastHourBaseUnitsbase unitsSHDR burned in the last hour, atoms.
pool.nvdaxTotalFundedBaseUnits (optional)base unitsNVDAx ever funded into the pool, atoms.
pool.nvdaxUndistributedBaseUnits (optional)base unitsNVDAx waiting to be shared out, atoms.
pool.nvdaxTotalClaimedBaseUnits (optional)base unitsNVDAx this wallet has claimed so far, atoms.
pool.nvdaxTotalFundedDisplay (optional)decimal stringnvdaxTotalFundedBaseUnits as a decimal.
state (optional)stringtoken-not-live, no-shdr, ready, staked or claimable.
nvdaxPendingBaseUnits (optional)base unitsNVDAx accrued and not yet claimed, atoms.
nvdaxTotalClaimedBaseUnits (optional)base unitsNVDAx this wallet has claimed so far, atoms.
nvdaxPendingDisplay (optional)decimal stringnvdaxPendingBaseUnits as a decimal amount.
nvdaxAccruedDisplay (optional)decimal stringnvdaxAccruedBaseUnits as a decimal amount.
nvdaxClaimableDisplay (optional)decimal stringnvdaxClaimableBaseUnits as a decimal amount.
nvdaxTotalClaimedDisplay (optional)decimal stringnvdaxTotalClaimedBaseUnits as a decimal amount.
nvdaxUiMultiplier (optional)decimal stringNVDAx's Token-2022 display multiplier, applied to the display amounts.
nvdaxDecimals (optional)integerDecimals of the NVDAx mint.
stakeDisplay (optional)decimal stringstakeBaseUnits as a decimal SHDR amount.

#StakeRequest

FieldTypeMeaning
amountBaseUnitsu64 string above 0Amount in the asset's atoms.

#UnstakeRequest

FieldTypeMeaning
amountBaseUnitsu64 string above 0Amount in the asset's atoms.

#ClaimRequest

#EarnBuildResponse

FieldTypeMeaning
buildBuiltTransactionThe transaction to sign.

#PaymentRequired

FieldTypeMeaning
x402Version2x402 protocol version: 2.
error (optional)stringWhy payment is required.
resourceobjectThe resource being paid for.
resource.urlURLURL.
resource.description (optional)stringWhat the resource is.
resource.mimeType (optional)stringFile type.
resource.serviceName (optional)stringService name.
resource.tags (optional)array of stringTags.
resource.iconUrl (optional)URLIcon URL.
acceptsarray of objectWays the resource can be paid for, one requirement each.
accepts[].schemestringx402 scheme: exact for generation, upto for rentals.
accepts[].networkstringCAIP-2 network id of the chain.
accepts[].amountu64 string above 0Atoms to pay; for upto, the ceiling.
accepts[].assetAThe payment asset.
accepts[].payToAOwner of the treasury token account.
accepts[].maxTimeoutSecondsintegerSeconds the payment stays valid.
accepts[].extra (optional)object (free form)Scheme details, such as the fee payer.
extensions (optional)object (free form)x402 extensions; empty.

#PaymentPayload

FieldTypeMeaning
x402Version2x402 protocol version: 2.
resource (optional)objectThe resource being paid for.
resource.urlURLURL.
resource.description (optional)stringWhat the resource is.
resource.mimeType (optional)stringFile type.
resource.serviceName (optional)stringService name.
resource.tags (optional)array of stringTags.
resource.iconUrl (optional)URLIcon URL.
acceptedobjectTicks accepted from the batch.
accepted.schemestringx402 scheme: exact for generation, upto for rentals.
accepted.networkstringCAIP-2 network id of the chain.
accepted.amountu64 string above 0Atoms to pay; for upto, the ceiling.
accepted.assetAThe payment asset.
accepted.payToAOwner of the treasury token account.
accepted.maxTimeoutSecondsintegerSeconds the payment stays valid.
accepted.extra (optional)object (free form)Scheme details, such as the fee payer.
payloadany JSONThe signed payment, for the chosen scheme.
extensions (optional)object (free form)x402 extensions; empty.

#PaymentResponse

FieldTypeMeaning
successbooleanWhether the payment settled.
transaction (optional)stringSignature of the settlement transaction.
network (optional)stringCAIP-2 network id of the chain.
payer (optional)AWallet that paid.

#PaymentRequiredHeader

The PAYMENT-REQUIRED header: a base64 JSON PaymentRequired.

#PaymentSignatureHeader

The PAYMENT-SIGNATURE header: a base64 JSON PaymentPayload.

#PaymentResponseHeader

The PAYMENT-RESPONSE header: a base64 JSON PaymentResponse.

#X402GenerationResponse

FieldTypeMeaning
jobJobThe generation job.

#X402RentRequest

FieldTypeMeaning
maxSeconds (optional)integerLongest the rental may run, in seconds. Defaults to 3600 and is capped at agentRentalMaxSeconds.
sshPublicKey (optional)stringYour SSH public key. Without one, a password is generated and shown only to you.

#X402RentExtendRequest

FieldTypeMeaning
maxSeconds (optional)integerLongest the rental may run, in seconds. Defaults to 3600 and is capped at agentRentalMaxSeconds.

#X402RentalExtensionResponse

FieldTypeMeaning
instanceInstanceDetailThe instance after the stop request.

#InstanceX402Channel

FieldTypeMeaning
channelIdAThe payment channel account.
ceilingBaseUnitsu64 string above 0The escrowed ceiling, USDC atoms.
maxSecondsintegerLongest the rental may run, in seconds. Defaults to 3600 and is capped at agentRentalMaxSeconds.
openSignatureASignature of the channel open transaction.
explorerUrlURLThe transaction on the block explorer.
chargedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms charged when the channel closed.
refundedBaseUnits (optional)base unitsFor an x402 rental, the USDC atoms returned to the payer when the channel closed.
sealSignature (optional)ASignature of the settle_and_seal transaction.
distributeSignature (optional)ASignature of the distribute transaction.
closedAt (optional)UTC timestampWhen the channel closed.
positionintegerOrder of the channel in the rental, from 1.
secondsRunu64 stringSeconds charged against this channel.
stateone of "open", "in_use", "closed"open (not used yet), in_use or closed.

#X402UptoExtra

FieldTypeMeaning
feePayerAThe sponsor that pays the transaction fee.
receiverAuthorizerAThe key that will sign the settlement voucher for the seconds used.
withdrawDelayintegerSeconds before the payer can withdraw an unsettled channel; equal to maxTimeoutSeconds.
tokenProgramAToken program of the USDC mint.
memo (optional)stringThe quote id. The signed open transaction must carry exactly one Memo instruction with this value.

#X402UptoRequirements

FieldTypeMeaning
scheme"upto""upto": the payer escrows a ceiling and is charged the seconds used.
networkstringCAIP-2 network id of the chain.
amountu64 string above 0The ceiling in USDC atoms: the GPU's rate in base units per second times maxSeconds.
assetAThe payment asset.
payToAOwner of the treasury token account, the same as for generation.
maxTimeoutSecondsintegermaxSeconds plus 300 seconds.
extraX402UptoExtraThe fee payer, the receiver authorizer, the withdraw delay and the token program.

#X402UptoPayload

FieldTypeMeaning
fromAThe paying wallet.
maxAmountu64 string above 0The ceiling the payer authorizes, USDC atoms; equal to the requirement's amount.
expiresAtintegerUnix time the authorization expires.
validAfterintegerUnix time the authorization becomes valid.
nonceu64 stringA number the payer chooses so each channel is new.
openSlotintegerThe slot the open transaction was built at.
channelIdAThe payment channel account.
depositu64 string above 0USDC atoms the open escrows; equal to the ceiling.
authorizedSignerAThe key allowed to sign the payer's side of the channel.
openTransactionbase64The payer-signed open transaction, base64. The server adds the fee payer's signature.

#X402RentalPaymentPayload

FieldTypeMeaning
x402Version2x402 protocol version: 2.
resource (optional)objectThe resource being paid for.
resource.urlURLURL.
resource.description (optional)stringWhat the resource is.
resource.mimeType (optional)stringFile type.
resource.serviceName (optional)stringService name.
resource.tags (optional)array of stringTags.
resource.iconUrl (optional)URLIcon URL.
acceptedX402UptoRequirementsTicks accepted from the batch.
payloadX402UptoPayloadThe signed payment, for the chosen scheme.
extensions (optional)object (free form)x402 extensions; empty.

#X402RentalPaymentRequired

FieldTypeMeaning
x402Version2x402 protocol version: 2.
error (optional)stringWhy payment is required.
resourceobjectThe resource being paid for.
resource.urlURLURL.
resource.description (optional)stringWhat the resource is.
resource.mimeType (optional)stringFile type.
resource.serviceName (optional)stringService name.
resource.tags (optional)array of stringTags.
resource.iconUrl (optional)URLIcon URL.
acceptsarray of unknownWays the resource can be paid for, one requirement each.
extensions (optional)object (free form)x402 extensions; empty.

#X402RentalResponse

FieldTypeMeaning
instanceInstanceDetailThe instance after the stop request.
stopTokenstringToken to stop this rental, shdrstop_…, shown once.
lockedRateBaseUnitsPerSecond (optional)u64 string above 0The rate locked for this rental, base units per second.

#X402UptoSettlementResponse

FieldTypeMeaning
successbooleanWhether the payment settled.
errorReason (optional)stringWhy a settlement failed, in x402 terms.
payer (optional)AWallet that paid.
transactionASignature of the settlement transaction.
networkstringCAIP-2 network id of the chain.
amountbase unitsAtoms charged by this response: "0" when the channel opens, since charging comes at stop.

#X402UptoSettlementResponseHeader

base64.