Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: SolKnife Mint Supply API
description: 'Non-custodial Solana toolkit. Every UI action is reachable over JSON HTTP: the server builds unsigned transactions, the caller signs, the server submits. Also available as an MCP server at /api/mcp.'
version: 1.0.0
contact:
email: admin@solknife.xyz
x-guidance: 'Every write is a two-step, non-custodial flow: POST to a /build endpoint to get an unsigned base64 VersionedTransaction, sign it with your own key, then POST the signed tx to the matching /execute endpoint. The server never holds your keys. Reads are plain GETs. Paid endpoints answer 402 with an x402 v2 challenge: pay the `exact` entry in USDC and retry with the PAYMENT-SIGNATURE header.'
servers:
- url: https://solknife.xyz
tags:
- name: Mint Supply
paths:
/api/mint-supply/mint:
get:
operationId: mint_supply_read
summary: Read a mint's authority state for mint-to
description: Read a mint's authority state for mint-to.
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
'402':
description: Payment Required — see the x402 challenge in the body and the PAYMENT-REQUIRED header.
parameters:
- name: mint
in: query
required: true
schema:
type: string
pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
description: A Solana address in base58, 32-44 chars.
- name: owner
in: query
required: true
schema:
type: string
pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
description: A Solana address in base58, 32-44 chars.
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
tags:
- Mint Supply
/api/mint-supply/build:
post:
operationId: mint_supply_build
summary: Generate an unsigned mint-to transaction
description: Build an unsigned mint-to tx.
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
'402':
description: Payment Required — see the x402 challenge in the body and the PAYMENT-REQUIRED header.
requestBody:
required: true
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
payer:
type: string
pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
description: A Solana address in base58, 32-44 chars.
mint:
type: string
pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
description: A Solana address in base58, 32-44 chars.
recipient:
type: string
pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
description: A Solana address in base58, 32-44 chars.
amount:
type: string
minLength: 1
maxLength: 40
description: Amount to mint, in base units (not decimal). Multiply by 10^decimals yourself.
required:
- payer
- mint
- recipient
- amount
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
tags:
- Mint Supply
/api/mint-supply/execute:
post:
operationId: mint_supply_execute
summary: Submit the signed mint-to tx
description: Submit the signed mint-to tx.
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
requestBody:
required: true
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
signedTransaction:
type: string
minLength: 1
maxLength: 2500
description: The base64 VersionedTransaction returned by the matching /build call, signed with your key. Do not submit it yourself; this endpoint submits it.
lastValidBlockHeight:
type: integer
exclusiveMinimum: 0
maximum: 10000000000
description: The `lastValidBlockHeight` returned alongside the unsigned tx by /build. Past this block height the tx can no longer land.
required:
- signedTransaction
- lastValidBlockHeight
tags:
- Mint Supply