Skip to main content
Glama
README.md
<p align="center">
  <a href="https://ryntra.io"><img src="docs/ryntra.png" alt="Ryntra" width="320"></a>
</p>

# Ryntra Solana Evidence Kit

[![verify](https://github.com/ryntra-io/ryntra-solana-evidence/actions/workflows/ci.yml/badge.svg)](https://github.com/ryntra-io/ryntra-solana-evidence/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

Read-only TypeScript tools for Token-2022 assets on Solana: see what a mint
lets its issuer do, check a transfer against your own policy and verify a
receipt offline — with no wallet and no key. An SDK, a local MCP server and a
CLI.

The kit is part of [Ryntra](https://ryntra.io), an AI trading terminal on
Solana: *say it, your agent does the rest*. The product's source is published
to read at [ryntra-io/ryntra-solana](https://github.com/ryntra-io/ryntra-solana).

[SDK](packages/solana-evidence-sdk/README.md) ·
[MCP server](packages/solana-evidence-mcp/README.md) ·
[CLI](examples/solana-evidence-cli/README.md) ·
[Changelog](CHANGELOG.md) ·
[Ryntra docs](https://ryntra.io/docs) ·
[Developers](https://ryntra.io/developers)

<a name="try-it-in-30-seconds"></a>

## Quick start

Node.js 22.18 or later, no wallet and no API key. Read NVIDIA's xStock (NVDAx)
straight from Solana mainnet through a public RPC:

```bash
git clone https://github.com/ryntra-io/ryntra-solana-evidence.git
cd ryntra-solana-evidence
npm ci
npm run cli -- inspect Xsc9qvGR1efVDFGLrVsmkzv3qi45LTBjeUKSPmx9qEh
```

![What the CLI prints for NVDAx: a Token-2022 mint with eight extensions, among them a permanent delegate, frozen new accounts and a scaled display amount](docs/screenshots/try-it-nvdax.png)

Every `!` is a power that can change the outcome of a transfer: here the
issuer's delegate can move or burn any holder's tokens, new accounts can start
frozen, the token can be paused, and the balance a wallet shows is the raw
amount times a multiplier the issuer sets. Add `--json` for the
machine-readable passport. A public RPC can be slow or rate-limited; the
[connection options](packages/solana-evidence-sdk/README.md#connection) point
the kit at your own provider.

## What is inside

| Path | What it does | Network |
|---|---|---|
| [`packages/solana-evidence-sdk`](packages/solana-evidence-sdk/README.md) | `inspectSolanaMint`, `preflightSolanaAction`, `verifySolanaReceipt`: a mint's asset passport, an exact transfer preview against your policy, a receipt checked offline | read-only RPC |
| [`packages/solana-evidence-mcp`](packages/solana-evidence-mcp/README.md) | The same tools as a local stdio MCP server, with an editable example policy | read-only RPC |
| [`examples/solana-evidence-cli`](examples/solana-evidence-cli/README.md) | `inspect`, `preflight` and `verify` from a terminal | read-only RPC |
| [`packages/tokenized-stocks`](packages/tokenized-stocks/README.md) | The model of a tokenized stock: instrument, unit basis, Token-2022 transfer fee, issuer lifecycle, reference-price session | none |
| [`packages/trading-plans`](packages/trading-plans/README.md) | Deterministic position sizing and decimal input read exactly as typed | none |
| [`packages/evidence`](packages/evidence/README.md) | Onchain observations with their provenance and a condition judge where an unknown is never a pass | provider APIs, your key |
| [`examples/stock-flows`](examples/stock-flows/README.md) | Token flows by wallet group, read through Nansen | Nansen API, your key |
| [`docs/solana/schemas`](docs/solana/schemas) | JSON Schemas of the asset passport, owner policy, policy verdict and transfer preflight | — |

## Connect an agent

Register the MCP server as a local stdio server in your client:

```json
{
  "mcpServers": {
    "ryntra-solana-evidence": {
      "command": "node",
      "args": ["/path/to/ryntra-solana-evidence/packages/solana-evidence-mcp/src/stdio.ts"]
    }
  }
}
```

It exposes `inspect_solana_mint`, `preflight_solana_action`,
`verify_solana_receipt` and `read_example_owner_policy`. The RPC endpoint is
yours to set (`RYNTRA_SOLANA_RPC_MAINNET`); public endpoints are the default.

## Verify

```bash
npm run verify
```

Lint, type checking, the network-free tests of every package and the boundary
checks. [GitHub Actions](https://github.com/ryntra-io/ryntra-solana-evidence/actions)
runs the same command on `main` and on pull requests.

## Scope and limits

- No private keys, signing, transaction building, simulation or sending.
  The only RPC method the kit calls is `getAccountInfo`; the model packages
  make no network call at all.
- A preflight is a structural calculation, not a simulation or a promise of
  execution. `NO_KNOWN_BLOCKER` means no known blocker under the policy you
  supplied; it is not a safety judgement or financial advice.
- A receipt check covers the supplied artifact. It does not fetch the
  transaction or prove settlement on chain, and a valid signature is not
  issuer trust — pass `trustedPublicKeys` when your integration requires one.
- Source-distributed software, not a published npm package or a hosted
  service.

## License

[Apache-2.0](LICENSE) · [Notice](NOTICE) · [Contributing](CONTRIBUTING.md) ·
[Security policy](SECURITY.md)

[ryntra.io](https://ryntra.io) · [@Ryntra_io on X](https://x.com/Ryntra_io) ·
[hello@ryntra.io](mailto:hello@ryntra.io)

Selected developer interfaces and evidence tooling are open source. The Ryntra
product remains proprietary.