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 Arweave 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: Arweave
paths:
/api/arweave/upload:
post:
operationId: arweave_upload_relay
summary: Upload a base64 file to Arweave via a funded Irys account
description: 'Agent relay: upload a base64-encoded file to Arweave via SolKnife''s funded Irys account. Needs an x402 payment per call; a SIWS session does not cover it.'
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:
fileBase64:
type: string
minLength: 1
description: Base64 of the file bytes. Max 2 MiB decoded.
contentType:
type: string
enum:
- image/png
- image/jpeg
- image/gif
- image/webp
- application/json
required:
- fileBase64
- contentType
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
tags:
- Arweave