数据与研究

sumsub-resolve-currency

sumsub/agent-skills

Resolve and validate the currency fields Sumsub expects on a transaction — `info.currencyCode`, `info.currencyType`, `info.cryptoParams.cryptoChain` and the `amountInDefaultCurrency` / `defaultCurrencyCode` pair. Reads the catalogue from `GET /resources/kyt/currency?type=crypto|fiat` and resolves a (symbol, chain, contract) triple to exactly one asset, normalising chain aliases and refusing ambiguous input rather than guessing. TRIGGER when the user asks "which currency codes / chains does Sumsub support", "is USDT on TRON supported", "what do I put in cryptoChain", "why is my currency not recognised", "why is amountInDefaultCurrency wrong / missing", or is about to submit a transaction with a token whose symbol exists on several networks. SKIP for building the transaction itself (use `sumsub-create-transaction`), for currency-based scoring rules (use `sumsub-create-kyt-rules`), and for FX rates or historical conversion — Sumsub exposes no rates endpoint.

  • 501 次安装
  • 7 星标
  • 收录于

安装命令

npx skills add https://github.com/sumsub/agent-skills --skill sumsub-resolve-currency

SKILL.md

Sumsub — Resolve currency and chain

One endpoint answers both halves, and the two halves look nothing alike:

type=fiat type=crypto
Flat list of ISO 4217 codes, fetched live Thousands of assets across a hundred-plus chains
No chain, no contract, no ambiguity Over a thousand symbols exist on more than one chain
Resolving = "is it in the list" Resolving = (symbol, chain, [contract]) → exactly one asset

Most of this skill is about the crypto side, because that is where transactions silently go wrong. Fiat is a membership test.

Endpoint

Verb Path Purpose
GET /resources/kyt/currency?type=crypto The crypto catalogue. Static server-side; safe to cache for a session.
GET /resources/kyt/currency?type=fiat Fiat codes, assembled live from the rates provider.