SolKnife Confidential Transfer API

The Confidential Transfer API from SolKnife — 10 operation(s) for confidential transfer.

GitHub OpenAPI

Operations 10

GET /api/confidential-transfer/state Read confidential-transfer state for an owner and mint #
GET /api/confidential-transfer/orphans/list List a wallet's orphan ZK Proof context-state accounts #
POST /api/confidential-transfer/build Generate an unsigned Configure transaction #
POST /api/confidential-transfer/deposit/build Generate an unsigned Deposit transaction #
POST /api/confidential-transfer/apply-pending/build Generate an unsigned ApplyPending transaction #
POST /api/confidential-transfer/empty-and-close/build Generate an unsigned Empty and Close transaction #
POST /api/confidential-transfer/withdraw/build Generate the unsigned Withdraw transaction saga #
POST /api/confidential-transfer/transfer/build Generate the unsigned Transfer transaction saga #
POST /api/confidential-transfer/orphans/build Generate unsigned transactions to reclaim orphan ZK rent #
POST /api/confidential-transfer/submit Submit a signed confidential-transfer transaction or saga #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/solknife-xyz:solknife-xyz-confidential-transfer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

solknife-xyz-confidential-transfer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SolKnife Confidential Transfer 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: Confidential Transfer
paths:
  /api/confidential-transfer/state:
    get:
      operationId: ct_state
      summary: Read confidential-transfer state for an owner and mint
      description: Read CT state for owner + mint (mint extension, account configured, balance ciphertexts).
      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: 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.
      - 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.
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/orphans/list:
    get:
      operationId: ct_orphans_list
      summary: List a wallet's orphan ZK Proof context-state accounts
      description: List a wallet's orphan ZK Proof context-state accounts.
      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: 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:
      - Confidential Transfer
  /api/confidential-transfer/build:
    post:
      operationId: ct_configure_build
      summary: Generate an unsigned Configure transaction
      description: Build the Configure tx. Needs worker-generated PubkeyValidity proof + zero AES ciphertext.
      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:
                owner:
                  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.
                pubkeyValidityProof:
                  type: string
                  minLength: 128
                  maxLength: 160
                  description: Base64 of the 96-byte pubkey-validity proof from your ZK worker.
                decryptableZeroBalance:
                  type: string
                  minLength: 46
                  maxLength: 60
                  description: Base64 of the 36-byte AES-encrypted zero balance your worker computed.
              required:
              - owner
              - mint
              - pubkeyValidityProof
              - decryptableZeroBalance
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/deposit/build:
    post:
      operationId: ct_deposit_build
      summary: Generate an unsigned Deposit transaction
      description: 'Build the Deposit tx: move a public balance to confidential pending.'
      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:
                owner:
                  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.
                amount:
                  type: string
                  pattern: ^\d+$
                  description: Amount in base units as a decimal string (not a float). For a 6-decimal mint, "1000000" is 1 token.
                decimals:
                  type: integer
                  minimum: 0
                  maximum: 9
                  description: The mint's decimals. Must match the mint exactly or the transfer fails on-chain.
              required:
              - owner
              - mint
              - amount
              - decimals
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/apply-pending/build:
    post:
      operationId: ct_apply_pending_build
      summary: Generate an unsigned ApplyPending transaction
      description: Build the ApplyPending tx. Needs worker-computed new AES decryptable + counter.
      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:
                owner:
                  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.
                expectedPendingCounter:
                  type: string
                  pattern: ^\d+$
                newDecryptableAvailable:
                  type: string
                  minLength: 46
                  maxLength: 60
                  description: Base64 of the 36-byte AES-encrypted new available balance your worker computed.
              required:
              - owner
              - mint
              - expectedPendingCounter
              - newDecryptableAvailable
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/empty-and-close/build:
    post:
      operationId: ct_empty_and_close_build
      summary: Generate an unsigned Empty and Close transaction
      description: Build the Empty+Close tx. Needs worker-generated zero-ciphertext proof.
      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:
                owner:
                  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.
                zeroCiphertextProof:
                  type: string
                  minLength: 128
                  maxLength: 160
                  description: Base64 of the 96-byte zero-ciphertext proof from your ZK worker.
              required:
              - owner
              - mint
              - zeroCiphertextProof
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/withdraw/build:
    post:
      operationId: ct_withdraw_build
      summary: Generate the unsigned Withdraw transaction saga
      description: Build the 5-tx Withdraw saga. Needs equality + range U64 proofs + new AES decryptable.
      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:
                owner:
                  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.
                amount:
                  type: string
                  pattern: ^\d+$
                  description: Amount in base units as a decimal string (not a float). For a 6-decimal mint, "1000000" is 1 token.
                decimals:
                  type: integer
                  minimum: 0
                  maximum: 9
                  description: The mint's decimals. Must match the mint exactly.
                equalityContextAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                rangeContextAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                equalityProof:
                  type: string
                  minLength: 420
                  maxLength: 440
                  description: Base64 of the ciphertext-commitment equality proof from your ZK worker.
                rangeProof:
                  type: string
                  minLength: 1240
                  maxLength: 1260
                  description: Base64 of the range proof from your ZK worker.
                newDecryptableAvailable:
                  type: string
                  minLength: 46
                  maxLength: 60
                  description: Base64 of the 36-byte AES-encrypted new available balance your worker computed.
              required:
              - owner
              - mint
              - amount
              - decimals
              - equalityContextAccount
              - rangeContextAccount
              - equalityProof
              - rangeProof
              - newDecryptableAvailable
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/transfer/build:
    post:
      operationId: ct_transfer_build
      summary: Generate the unsigned Transfer transaction saga
      description: Build the 5-tx Transfer saga. Needs equality + 3HV + range U128 proofs + auditor ciphertexts.
      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:
                owner:
                  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.
                destinationTokenAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                equalityContextAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                validityContextAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                rangeContextAccount:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                equalityProof:
                  type: string
                  minLength: 420
                  maxLength: 440
                  description: Base64 of the ciphertext-commitment equality proof from your ZK worker.
                validityProof:
                  type: string
                  minLength: 720
                  maxLength: 740
                  description: Base64 of the batched ciphertext-validity proof from your ZK worker.
                rangeProof:
                  type: string
                  minLength: 1320
                  maxLength: 1340
                  description: Base64 of the range proof from your ZK worker.
                newSourceDecryptableAvailable:
                  type: string
                  minLength: 46
                  maxLength: 60
                  description: Base64 of the 36-byte AES-encrypted post-transfer source balance your worker computed.
                auditorCiphertextLo:
                  type: string
                  minLength: 80
                  maxLength: 96
                  description: Base64 of the low 32 bytes of the auditor ElGamal ciphertext.
                auditorCiphertextHi:
                  type: string
                  minLength: 80
                  maxLength: 96
                  description: Base64 of the high 32 bytes of the auditor ElGamal ciphertext.
              required:
              - owner
              - mint
              - destinationTokenAccount
              - equalityContextAccount
              - validityContextAccount
              - rangeContextAccount
              - equalityProof
              - validityProof
              - rangeProof
              - newSourceDecryptableAvailable
              - auditorCiphertextLo
              - auditorCiphertextHi
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/orphans/build:
    post:
      operationId: ct_orphans_build
      summary: Generate unsigned transactions to reclaim orphan ZK rent
      description: Build chunked CloseContextState tx(s) to reclaim orphan ZK ctx rent.
      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:
                owner:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: A Solana address in base58, 32-44 chars.
                addresses:
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                    description: A Solana address in base58, 32-44 chars.
              required:
              - owner
              - addresses
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      tags:
      - Confidential Transfer
  /api/confidential-transfer/submit:
    post:
      operationId: ct_submit
      summary: Submit a signed confidential-transfer transaction or saga
      description: Submit any signed CT tx or saga. Op discriminator routes to verifier + sequential submitter.
      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:
                op:
                  type: string
                  enum:
                  - configure
                  - deposit
                  - apply-pending
                  - empty-and-close
                  - withdraw
                  - transfer
                  - reclaim-orphans
                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.
                signedTransactions:
                  minItems: 1
                  maxItems: 20
                  type: array
                  items:
                    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.
                  description: The signed base64 transactions from /build, in the order /build returned them.
                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:
              - op
              - lastValidBlockHeight
      tags:
      - Confidential Transfer