integrate-estimate

integrate-estimate is a skill for Claude Code, Codex from solana-foundation/solana-developer-platform. It costs 47 tokens per session (961 once invoked), scanned A, original, MIT.

A skill for adding live rate estimates to a payment system that exchanges fiat money, such as euros, and crypto assets, such as USDC.

In plain words
What is it for?
Use it to implement on-ramp estimates, which convert fiat to crypto, and off-ramp estimates, which convert crypto to fiat, for a payment provider.
Why use it?
It provides a rate preview without creating a transaction, saving the system from doing database, wallet, counterparty, or identity checks too early.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/solana-foundation/solana-developer-platform/integrate-estimate
Any agent
npx skills add solana-foundation/solana-developer-platform --skill integrate-estimate
Clone the repo
git clone --depth 1 https://github.com/solana-foundation/solana-developer-platform

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integrate-estimate

README.md
[![agentmods](https://agentmods.dev/badge/skills/solana-foundation/solana-developer-platform/integrate-estimate.svg)](https://agentmods.dev/skills/solana-foundation/solana-developer-platform/integrate-estimate)
Your own site
<a href="https://agentmods.dev/skills/solana-foundation/solana-developer-platform/integrate-estimate"><img src="https://agentmods.dev/badge/skills/solana-foundation/solana-developer-platform/integrate-estimate.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00961
Opus 5 $0.00023 $0.00481
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured yesterday against content hash 446affa214eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

integrate-estimate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/integrate-estimate/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrate estimate

An estimate is a rate preview: "how much USDC for 100 EUR?" It hits the provider's live rate API and nothing else — no counterparty, no wallet, no DB. That makes it the first capability to build: if estimateOnramp works, your register-provider config reader and credentials are correct.

Choose the closest implementation in packages/sdp-payments/src/ramps/providers/ — GET- and POST-based estimate APIs, hosted-provider quote APIs, minor-unit conversion, and single-direction support are all represented.

Contract

Both methods are required on RampProvider (packages/sdp-payments/src/ramps/types.ts), even when one direction is unsupported:

estimateOnramp(ctx: RampRuntimeContext, input: RampEstimateOnrampInput): Promise<PaymentRampEstimate>
estimateOfframp(ctx: RampRuntimeContext, input: RampEstimateOfframpInput): Promise<PaymentRampEstimate>

Inputs (packages/sdp-payments/src/ramps/types.ts):

  • onramp: { assetRail: CryptoRailId, fiatCurrency: RampFiatCurrency, fiatAmount: string }
  • offramp: { assetRail: CryptoRailId, fiatCurrency: RampFiatCurrency, cryptoAmount: string }

Output PaymentRampEstimate (@sdp/types, packages/sdp-types/src/payments.ts):

{
  provider; direction: "onramp" | "offramp";
  fiatCurrency; assetRail; fiatAmount; cryptoAmount; exchangeRate;  // all strings
  fees: { currency; total; network?; provider? };
  minFiatAmount?; maxFiatAmount?; expiresAt?;
}

How to build it

ctx is { env, mode } — read your config with the mode-keyed reader from register-provider, then HTTP only. Convert the asset rail with getCryptoRailAssetLabel from @sdp/types/payment-rails; convert minor units with parseDecimalAmount / formatDecimalAmount from @sdp/solana/amount.

A common shape: GET the corridor's exchange rate once to learn decimals, again with the amount to get the quote, then map into PaymentRampEstimate.

Fail loud

A non-positive receiving amount is not a 0 estimate — it's a broken corridor. Throw, don't return zero:

Read the full file on GitHub · 71 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -4 lines 446affa214eb
  2. 6d ago First seen · 75 lines · 47 tokens per session scan A 93687691dbea

Subscribe to this mod's changes

integrate-estimate is a skill published in the GitHub repository solana-foundation/solana-developer-platform (51 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 961 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.