New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@elisym/eval-adapter-solana

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elisym/eval-adapter-solana

Solana PaymentAdapter for @elisym/eval - run payment evals against the elisym Solana rail

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@elisym/eval-adapter-solana

Solana implementation of the @elisym/eval PaymentAdapter - run payment evals against the elisym Solana rail (devnet by default).

import { createSolanaAdapter } from '@elisym/eval-adapter-solana';

const adapter = await createSolanaAdapter({
  payerSecretKey: process.env.SOLANA_SECRET_KEY!, // base58 64-byte keypair
});

The adapter wraps the published @elisym/sdk rail in the protocol-neutral quote -> pay -> verify shape:

PaymentAdapterelisym Solana rail
getQuoteon-chain protocol config + createPaymentRequest (fee, expiry)
executePaymentbuildTransaction -> sendAndConfirm at confirmed
getPaymentStatuslocal record, then verifyPayment by reference (post-timeout reconciliation)
readLedgersession-scoped transfers + balances of the wallets it touched

Chain-specific failures map to the canonical error codes assertions are written against (insufficient_funds, quote_expired, transaction_rejected, payment_timeout, duplicate_payment); duplicate invoices and idempotency-key replays are blocked before anything reaches the chain.

An x402 payer rail is landing in the elisym stack; it maps onto this same PaymentAdapter surface (402 probe = quote, signed payment = pay, settlement = verify) and can become an execution mode of this adapter without interface changes. v1 supports native SOL only.

Conformance

Default CI runs unit tests with injected fake deps (error mapping, duplicate/idempotency/expiry guards). The full describeAdapterConformance contract suite runs against real devnet in the separate test:live task - never in PR CI:

ELISYM_EVAL_DEVNET_PAYER=<base58 secret key> \
ELISYM_EVAL_DEVNET_PAYEE=<address> \
bun run test:live

The live run skips itself with a warning when the keys are absent or the payer wallet drops below 0.01 SOL.

License

MIT

Keywords

ai-agents

FAQs

Package last updated on 05 Jul 2026

Related posts