# Inkwell Finance Docs ## Docs - [CLAUDE](https://docs.inkwell.finance/CLAUDE.md) - [Get agent behavioral profile](https://docs.inkwell.finance/api-reference/agent-identity/get-agent-behavioral-profile.md): Returns 30-day behavioral analytics including tool usage breakdown, risk awareness score, and query patterns. - [List your agents](https://docs.inkwell.finance/api-reference/agent-identity/list-your-agents.md): Returns all agent keys for the authenticated user. - [Revoke an agent key](https://docs.inkwell.finance/api-reference/agent-identity/revoke-an-agent-key.md) - [Rotate an agent's API key](https://docs.inkwell.finance/api-reference/agent-identity/rotate-an-agents-api-key.md): Generates a new API key and invalidates the old one. - [Self-register for an API key](https://docs.inkwell.finance/api-reference/agent-identity/self-register-for-an-api-key.md): Register an agent and receive a free-tier API key. Requires email verification. Rate limited to 3 registrations/hour and 10/day per IP. - [Verify email address](https://docs.inkwell.finance/api-reference/agent-identity/verify-email-address.md): Activates an API key after email verification. - [Authentication](https://docs.inkwell.finance/api-reference/authentication.md): How to authenticate with the Inkwell Agent API. - [Build stake transaction](https://docs.inkwell.finance/api-reference/ika-staking-agent/build-stake-transaction.md): Returns Move call parameters for staking IKA tokens with a specific validator. The caller signs and submits the transaction. - [Build unstake transaction](https://docs.inkwell.finance/api-reference/ika-staking-agent/build-unstake-transaction.md): Returns Move call parameters for unstaking. The staked IKA enters a withdrawal period (1 epoch) before it can be claimed. - [Build withdraw transaction](https://docs.inkwell.finance/api-reference/ika-staking-agent/build-withdraw-transaction.md): Returns Move call parameters for withdrawing IKA that has completed the unstaking cooldown period. - [Compute optimal allocation](https://docs.inkwell.finance/api-reference/ika-staking-agent/compute-optimal-allocation.md): Given an amount of IKA tokens, computes the optimal stake distribution across validators to maximize risk-adjusted APY. - [Compute rebalance plan](https://docs.inkwell.finance/api-reference/ika-staking-agent/compute-rebalance-plan.md): Given current staking positions, computes the optimal rebalance steps (unstake from underperformers, stake to better validators). **Requires builder or pro tier.** - [Get agent tier and rate limits](https://docs.inkwell.finance/api-reference/ika-staking-agent/get-agent-tier-and-rate-limits.md): Returns the authenticated agent's current tier and rate limit configuration. - [Get delegators for a validator](https://docs.inkwell.finance/api-reference/ika-staking-agent/get-delegators-for-a-validator.md): Returns the list of delegators (stakers) for a specific validator, including their staked amounts. - [Health check](https://docs.inkwell.finance/api-reference/ika-staking-agent/health-check.md): Returns service health status. No authentication required. - [Network metadata](https://docs.inkwell.finance/api-reference/ika-staking-agent/network-metadata.md): Returns IKA mainnet configuration including coin types, system object IDs, epoch duration, and minimum stake amounts. - [Scored validators](https://docs.inkwell.finance/api-reference/ika-staking-agent/scored-validators.md): Returns validators scored by APY, uptime, and commission. Results are filtered by your agent tier: - **free**: top 10 validators - **builder**: top 25 - **pro**: all validators - [All validators](https://docs.inkwell.finance/api-reference/ika-staking-public/all-validators.md): Returns the full validator set with staking info, withdrawing/claimable amounts. Supports hash-based 304 responses for efficient polling. - [APY history](https://docs.inkwell.finance/api-reference/ika-staking-public/apy-history.md): Returns historical APY data for specified validators. Supports incremental updates via `since_epoch` parameter (returns 304 if no new data). - [Current epoch](https://docs.inkwell.finance/api-reference/ika-staking-public/current-epoch.md): Returns the current IKA epoch number and metadata. - [Historical exchange rates](https://docs.inkwell.finance/api-reference/ika-staking-public/historical-exchange-rates.md): Returns exchange rate history for a validator over an epoch range. - [IKA token price](https://docs.inkwell.finance/api-reference/ika-staking-public/ika-token-price.md) - [Public delegators list](https://docs.inkwell.finance/api-reference/ika-staking-public/public-delegators-list.md) - [Public health check](https://docs.inkwell.finance/api-reference/ika-staking-public/public-health-check.md) - [API Overview](https://docs.inkwell.finance/api-reference/overview.md): Build AI agents that interact with IKA staking and Leviathan protocol services. - [Agent Skill Installer](https://docs.inkwell.finance/api-reference/skill-installer.md): Install the Inkwell staking API as a skill in Claude Code, MCP clients, or any AI agent. - [CCTP Colosseum Hackathon Submission](https://docs.inkwell.finance/cctp/colosseum-hackathon.md): Summary of Inkwell CCTP submission to the Solana Colosseum hackathon. - [Inkwell CCTP Demo](https://docs.inkwell.finance/cctp/demo.md): Multi-Chain RWA Issuance Orchestrator via Ika 2PC-MPC on Sui - [Inkwell CCTP Overview](https://docs.inkwell.finance/cctp/overview.md): Multi-Chain RWA Issuance Orchestrator via Ika 2PC-MPC on Sui - [Inkwell Cross Chain Transfer Protocol RFP Proposal](https://docs.inkwell.finance/cctp/proposal.md): Multi-Chain RWA Issuance Orchestrator via Ika 2PC-MPC on Sui - [Architecture](https://docs.inkwell.finance/dagon/architecture/index.md): How Dagon's matching engine operates on ciphertexts it cannot decrypt. - [Matching mechanism](https://docs.inkwell.finance/dagon/architecture/matching-mechanism.md): How Dagon finds a clearing price through ciphertext alone. Walrasian tâtonnement, evaluated entirely on encrypted values. - [SIMD packing](https://docs.inkwell.finance/dagon/architecture/simd-packing.md): How Dagon packs a batch of participants into a compact FHE layout that evaluates every curve in parallel at the cost of one. - [A block trade, three ways](https://docs.inkwell.finance/dagon/comparisons/block-trade.md): A $7M sell across a lit CEX, an OTC desk, and Dagon. Price impact, leakage, and counterparty visibility compared row by row. - [Under compelled process](https://docs.inkwell.finance/dagon/comparisons/compelled-process.md): A court issues a production order on the same trade. What each venue type can comply with — and how two-party composition changes the answer. - [Comparisons](https://docs.inkwell.finance/dagon/comparisons/index.md): How Dagon compares to lit CEX and OTC venues on leakage, front-running, and compelled process. - [Batch clearing](https://docs.inkwell.finance/dagon/concepts/batch-clearing.md): One epoch, one price, both sides. The mechanism behind Dagon's matching, and why batching is a feature — not a workaround. - [Confidential matching](https://docs.inkwell.finance/dagon/concepts/confidential-matching.md): What 'matching on ciphertext' actually means, and where the privacy boundary sits. - [Life of an order](https://docs.inkwell.finance/dagon/concepts/life-of-an-order.md): Submit, pool, match, clear, settle, disclose. Six beats in text. - [Selective disclosure by design](https://docs.inkwell.finance/dagon/concepts/selective-disclosure.md): The positive privacy claim. Protected in normal operation; disclosable under compelled process. Not a mixer, not a panopticon. - [Two-party composition](https://docs.inkwell.finance/dagon/concepts/two-party-composition.md): Identity is split across an operator and a credential issuer. Neither alone can name a trader. The issuer holds PII; Dagon holds none of it. - [Is Dagon decentralized?](https://docs.inkwell.finance/dagon/faq/decentralized-or-not.md): Partially. 'Decentralized' is a gradient, not a binary. Here's where Dagon sits on each axis. - [Is this a mixer?](https://docs.inkwell.finance/dagon/faq/is-this-a-mixer.md): No. Dagon preserves the deposit↔withdrawal link by design — money in equals money out, the flow is legible. What's hidden is the order content during matching, not the flow of funds. - [Is there a minimum trade size?](https://docs.inkwell.finance/dagon/faq/minimum-size.md): Yes — the schedule primitive is cents-quantized with a $0.01 floor and a ~$42.9M per-schedule ceiling. Out-of-scope retail is excluded by design. - [What happens under subpoena?](https://docs.inkwell.finance/dagon/faq/what-happens-under-subpoena.md): A court compels both the operator and the credential issuer. Joined, they resolve one user's activity. Everything else in the batch stays private. Pre-alpha Dagon produces a narrower set of records than the production posture. - [Why FHE, not ZK + MPC?](https://docs.inkwell.finance/dagon/faq/why-fhe-not-zk.md): Each primitive solves a different part of the confidential-matching problem. Dagon uses FHE where matching dominates and can layer ZK for identity where it helps. - [Introduction](https://docs.inkwell.finance/dagon/introduction.md): A confidential matching venue on Solana. Orders stay encrypted through matching; identity is split across two independent parties; flow is legible by design. - [Objections](https://docs.inkwell.finance/dagon/objections/index.md): The strongest critiques of Dagon, grouped and answered. If your objection isn't here, tell us. - [Market objections](https://docs.inkwell.finance/dagon/objections/market.md): Timing vs. Arcium/Umbra, TAM, positioning risk, kill criteria. Why we believe this still works. - [Regulatory objections](https://docs.inkwell.finance/dagon/objections/regulatory.md): SEC, OFAC, MAS, MiCA, FINMA, VARA. Classification, compliance surface, unresolved items. - [Technical objections](https://docs.inkwell.finance/dagon/objections/technical.md): MEV surface, metadata leakage, FHE pragmatism, timing attacks, committee liveness. What's strong, what's weak, what's open. - [Benchmarks](https://docs.inkwell.finance/dagon/performance/benchmarks.md): Headline measured wall-clock for Dagon's match engine on a datacenter GPU, with the verification discipline behind every cited number. - [Performance](https://docs.inkwell.finance/dagon/performance/index.md): Measured match-compute wall-clock across CPU, consumer GPU, and H100 — with correctness verified on every tagged number. Headline: 7.77 s for an N=32 match cycle on H100, every pair decrypted and asserted. - [Methodology](https://docs.inkwell.finance/dagon/performance/methodology.md): The four status tags behind every Dagon benchmark number, and the rules for citing each one. - [Scaling dashboard](https://docs.inkwell.finance/dagon/performance/scaling-dashboard.md): Interactive latency and throughput model anchored to the headline measured numbers. - [SIMD amortization](https://docs.inkwell.finance/dagon/performance/simd-amortization.md): Why packing many independent matches into the same FHE ring is nearly free — and what that means for market-scale throughput. - [Why CKKS fails at scale](https://docs.inkwell.finance/dagon/performance/why-ckks-fails.md): What the 257 s H100 parity failure actually means, the absolute noise floor in CKKS bootstrap chains, and why programmable-bootstrap is the correctness-preserving path. - [What Dagon is not](https://docs.inkwell.finance/dagon/what-dagon-is-not.md): Positive-claim boundary setting. If the category imports an assumption that doesn't apply here, we name it. - [How It Works](https://docs.inkwell.finance/ika-staking/how-it-works.md): The staking flow from deposit to rewards. - [Liquid IKA (LIKA)](https://docs.inkwell.finance/ika-staking/liquid-ika.md): LIKA is a liquid staking token for IKA — stake IKA, receive LIKA, and stay liquid while earning rewards. - [IKA Staking](https://docs.inkwell.finance/ika-staking/overview.md): Stake IKA tokens with optimized validator allocation powered by Inkwell's scoring engine. - [Validator Scoring](https://docs.inkwell.finance/ika-staking/validator-scoring.md): How Inkwell scores and ranks IKA validators. - [Design Philosophy](https://docs.inkwell.finance/inkwell/design-philosophy.md): We aim to be as decentralized as possible given what the ecosystem can trustlessly support. Where we fall short, we name it and commit to migrate. - [Roadmap](https://docs.inkwell.finance/inkwell/roadmap.md): Revenue Marketplace development roadmap and milestone tracking. - [Security & Trust Model](https://docs.inkwell.finance/inkwell/security-and-trust.md): How Inkwell thinks about security, trust, and risk across its protocols. - [Team](https://docs.inkwell.finance/inkwell/team.md): Meet the team building the Revenue Marketplace — the universal credit layer for on-chain revenue. - [Traction](https://docs.inkwell.finance/inkwell/traction.md): Revenue Marketplace validation, partnerships, and milestone achievements. - [What Is Inkwell Finance?](https://docs.inkwell.finance/inkwell/what-are-we.md): Revenue-backed credit infrastructure for DeFi. No custodians, no token collateral, no securities. - [Borrowing](https://docs.inkwell.finance/leviathan/credit-line/borrow.md): How to apply for a revenue-backed credit line, draw down funds, and manage your loan on Leviathan. - [Credit Reports](https://docs.inkwell.finance/leviathan/credit-line/credit-reports.md): Understand your on-chain credit score, what influences it, and how to improve your standing on Leviathan. - [Credit Scoring](https://docs.inkwell.finance/leviathan/credit-line/credit-scoring.md): How Leviathan assesses borrower creditworthiness with on-chain scores, ML models, and oracle integration. - [Loan Lifecycle](https://docs.inkwell.finance/leviathan/credit-line/loan-lifecycle.md): How Leviathan loans move from application through funding, active deployment, and completion or default. - [Credit Line Overview](https://docs.inkwell.finance/leviathan/credit-line/overview.md): Self-serve, revenue-backed borrowing facility powered by on-chain credit scoring, pooled lending, and automated repayment across Solana, Sui, and EVM. - [Pooled Lending](https://docs.inkwell.finance/leviathan/credit-line/pooled-lending.md): How lenders deposit capital into Leviathan pools, earn yield through LP tokens, and how pool accounting works. - [Revenue Enforcement](https://docs.inkwell.finance/leviathan/credit-line/revenue-enforcement.md): How Leviathan captures borrower revenue and enforces automated loan repayment through on-chain RevenueSplitter contracts. - [Getting Started with the SDK](https://docs.inkwell.finance/leviathan/credit-line/sdk-getting-started.md): Install and start using @leviathan/sdk to interact with the Leviathan protocol from TypeScript. - [SDK Overview](https://docs.inkwell.finance/leviathan/credit-line/sdk-overview.md): The @leviathan/sdk provides unified TypeScript bindings for interacting with the Leviathan protocol across Solana and Sui. - [Session Keys](https://docs.inkwell.finance/leviathan/credit-line/session-keys.md): How Leviathan uses scoped, ephemeral session keys to enable delegated execution within policy bounds. - [Supplying Liquidity](https://docs.inkwell.finance/leviathan/credit-line/supply.md): How to deposit capital into Leviathan lending pools, earn yield through LP tokens, and manage your supply positions. - [Embedded Architecture](https://docs.inkwell.finance/leviathan/embedded/architecture.md): On-chain modules, SDK components, and data flows that power Leviathan's Embedded Lending product. - [Integration Guide](https://docs.inkwell.finance/leviathan/embedded/integration-guide.md): Technical guide for integrating Leviathan Embedded Lending into your protocol using the SDK. - [Embedded Lending](https://docs.inkwell.finance/leviathan/embedded/overview.md): Integrate Leviathan's credit infrastructure directly into your protocol — users get leverage without leaving your app. - [Protocol Onboarding](https://docs.inkwell.finance/leviathan/embedded/protocol-onboarding.md): How to become a Leviathan Embedded integration partner — from application through go-live. - [How It Works](https://docs.inkwell.finance/leviathan/prime-brokerage/how-it-works.md): Account setup, capital deployment, risk management, and revenue capture in Leviathan Prime Brokerage. - [Prime Brokerage](https://docs.inkwell.finance/leviathan/prime-brokerage/overview.md): Direct-access margin accounts for professional traders and funds — multi-protocol capital deployment with policy-gated dWallets. - [Guide for Borrowers](https://docs.inkwell.finance/leviathan/revenue-marketplace/borrowers.md): How to get funding through Inkwell Revenue Marketplace - [Leviathan Revenue Marketplace FAQ](https://docs.inkwell.finance/leviathan/revenue-marketplace/faq.md): Frequently asked questions about Leviathan by Inkwell Finance - The Universal Credit Layer for On-Chain Revenue - [Leviathan by Inkwell Finance - Institutional Overview](https://docs.inkwell.finance/leviathan/revenue-marketplace/institutional.md): The Universal Credit Layer for ALL On-Chain Revenue - Market opportunity, competitive positioning, and strategic moat for institutional investors - [Guide for Lenders](https://docs.inkwell.finance/leviathan/revenue-marketplace/lenders.md): How to fund deals and earn returns through Inkwell Revenue Marketplace - [Leviathan by Inkwell Finance - Revenue Marketplace Overview](https://docs.inkwell.finance/leviathan/revenue-marketplace/overview.md): The Universal Credit Layer for ALL On-Chain Revenue - Private credit yields from any chain, with non-custodial enforcement - [Security & Audits](https://docs.inkwell.finance/leviathan/revenue-marketplace/security.md): Revenue Marketplace security model, audit status, and third-party validation. - [Inkwell P2P Lending Demo](https://docs.inkwell.finance/p2p/demo.md): Non-custodial zero-trust cross-chain P2P lending via Ika 2PC-MPC on Sui - [Inkwell P2P Lending Overview](https://docs.inkwell.finance/p2p/overview.md): Non-custodial zero-trust cross-chain P2P lending via Ika 2PC-MPC on Sui - [Leviathan by Inkwell Finance - RFP Proposal](https://docs.inkwell.finance/revenue-marketplace/proposal.md): Proposal for Leviathan: The Universal Credit Layer for ALL On-Chain Revenue, coordinated on Sui - [Inkwell P2P Lending Protocol RFP Proposal](https://docs.inkwell.finance/rfp/proposal.md): Non-custodial zero-trust cross-chain P2P lending via Ika 2PC-MPC on Sui - [Synthase](https://docs.inkwell.finance/synthase/overview.md): A systematic basis-yield strategy across perpetual futures venues. Delta-neutral by construction. ## OpenAPI Specs - [leviathan](https://docs.inkwell.finance/openapi/leviathan.yaml) ## Optional - [Community](https://discord.gg/ggGfKnDwXQ)