ramp-kit

v0.1.9
io.github.armandocodecr/ramp-kit Checked 2 days ago Published 3 months ago

LATAM fiat ramps on Stellar for AI agents: live quotes, sandbox orders, PIX/SPEI simulation, docs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_documentation

LATAM Ramp Kit documentation. Topics: overview (what it is and solves), quickstart (code to integrate), sandbox-setup (Etherfuse/Manteca test credentials), environments (testnet/mainnet step-by-step + where credentials go: backend proxy vs frontend env vars vs no-backend SEP route), architecture (lifecycle, provider mapping, Stellar specifics), production (path to mainnet), troubleshooting (verified error fixes). Start here.

ParameterTypeDescription
topic *stringDocumentation topic to read

list_providers

List configured ramp providers with their capabilities (countries, fiat currencies, settlement networks, Stellar-native flag) and whether live credentials are present.

list_assets

List tradable assets for a provider on a network. Asset identifiers are environment-specific — always use these, never hardcode.

ParameterTypeDescription
currencystringFiat currency hint, e.g. brl
networkstringNetwork, default stellar
providerstringProvider name or "auto" (default)

get_quote

Get a live ramp quote (fiat→crypto or crypto→fiat). Returns target amount, rate, fees and expiry. The quote id can be passed to create_order before it expires.

ParameterTypeDescription
assetIdentifier *stringFrom list_assets
direction *string
fiatCurrency *stringe.g. BRL, MXN
sourceAmount *stringDecimal string, fiat for onramp
networkstringDefault stellar
payoutBankAccountstringOfframp shorthand: the user's fiat payout bank account in local format (CBU, CLABE, IBAN, PIX key…). Required for Manteca offramps. For countries needing extra fields (bankCode, accountType…), use…
payoutDestinationobjectOfframp payout destination with provider-specific extras (bankCode, accountType, network…), passed through as-is. Overrides payoutBankAccount.
providerstring
walletAddressstringDestination Stellar address

compare_quotes

Fan the same quote request out to every eligible provider and compare live rates (multi-anchor comparison).

ParameterTypeDescription
assetIdentifier *string
direction *string
fiatCurrency *string
sourceAmount *string
networkstring
payoutBankAccountstringOfframp shorthand: fiat payout bank account (CBU/CLABE/IBAN/PIX key)
payoutDestinationobjectOfframp payout destination with provider-specific extras; overrides payoutBankAccount
walletAddressstring

create_order

Turn a live quote (from get_quote/compare_quotes) into an order. Returns the normalized order with deposit instructions (PIX charge or SPEI CLABE). Manteca offramps require payoutBankAccount to have been passed at quote time. Sandbox/mock only through this server unless RAMPKIT_ENV=production.

ParameterTypeDescription
quoteId *stringQuote id returned by get_quote
bankAccountIdstringEtherfuse fiat-leg bank account (defaults to first compliant)

get_order

Fetch the current normalized state of an order (created → awaiting_deposit → processing → settled | failed | cancelled).

ParameterTypeDescription
orderId *string
providerstring

simulate_deposit

SANDBOX ONLY: simulate the incoming fiat transfer for an order, as if the user paid. Refuses to run in production. Works for Etherfuse, Mock and Manteca (Manteca: instant rails PIX/BRL and SPEI/MXN settle sandbox onramps WITHOUT simulation — use this for bank-transfer rails like CLP; needs MANTECA_LEGAL_ENTITY env; BANK_ACCOUNT_NF means the (legalEntity, currency) pair has no provisioned sandbox account).

ParameterTypeDescription
orderId *string
providerstring

check_manteca_user

Validate a Manteca userAnyId (internal id, numberId or externalId) and report onboarding status. Use when quotes fail with USER_NF / 'User not found' — the id must belong to an onboarded user of YOUR Manteca account. Requires MANTECA_API_KEY.

ParameterTypeDescription
userAnyId *stringId, numberId or externalId to validate

onboard_manteca_user

Create (onboard) a Manteca user — the mandatory prerequisite for any Manteca quote/order. The exchange fixes the user's ONE settlement currency (e.g. BRAZIL → BRL); to pay out in several countries, onboard one user per country. Sandbox onboarding auto-completes to ACTIVE in seconds (the sandbox dashboard has no onboarding UI — this API is the only path). CAVEATS: if the person already exists, Manteca returns 200 with the EXISTING user and a causedConflict flag — use the returned ids, not your externalId; Brazil validates legalId against a real-person registry (use the docs' test CPF 40…

ParameterTypeDescription
email *string
exchange *stringCountry exchange, e.g. BRAZIL, ARGENTINA, COLOMBIA
externalId *stringYour stable id for this user
legalId *stringLocal legal id: CPF (BR), DNI (AR), CURP/RFC (MX)…
personalDataobjectPer-country KYC fields (sex, phoneNumber, address.street…); diagnose_onboarding reports what's missing

diagnose_onboarding

Full 'why is this user stuck in ONBOARDING?' diagnosis for a Manteca user: the missing per-country KYC FIELDS plus the onboarding TASK map (e.g. IDENTITY_VALIDATION = ID images pending — a user with zero missing fields can still be blocked by a task; Argentina always requires images). Requires MANTECA_API_KEY.

ParameterTypeDescription
userAnyId *string

get_wallet_state

Inspect a Stellar wallet: does the account exist, XLM balance, asset balances, and claimable balances waiting to be claimed (sponsored onramp deliveries).

ParameterTypeDescription
publicKey *stringStellar public key (G…)
assetIdentifierstringOptional "CODE:ISSUER" to check a specific trustline