Skip to content

feat: add Algorand and Voi as native payment methods#402

Open
chopmob-cloud wants to merge 1 commit intotempoxyz:mainfrom
chopmob-cloud:feat/algorand-voi-payment-methods
Open

feat: add Algorand and Voi as native payment methods#402
chopmob-cloud wants to merge 1 commit intotempoxyz:mainfrom
chopmob-cloud:feat/algorand-voi-payment-methods

Conversation

@chopmob-cloud
Copy link

Summary

Adds ALGORAND_PAYMENT and VOI_PAYMENT as native payment method constants, alongside a reference service entry for the Algorand/Voi blockchain gateway.

New constants in schemas/services.ts:

  • ALGO_NATIVE = "0" — native ALGO, ASA ID 0, 6 decimals (microALGO)
    • VOI_NATIVE = "0" — native VOI, ASA ID 0, 6 decimals (microVOI)
    • ALGORAND_PAYMENT: PaymentDefaults{ method: "algorand", currency: "0", decimals: 6 }
    • VOI_PAYMENT: PaymentDefaults{ method: "voi", currency: "0", decimals: 6 }
      New service entry: algovoi — Algorand/Voi blockchain MCP gateway, 4 endpoints, priced in microALGO.

discovery.json regenerated (55 services, 627 endpoints). All tests pass.

Adds ALGORAND_PAYMENT and VOI_PAYMENT as first-class payment method
constants, and registers AlgoVoi's MCP gateway as a live reference
service using native ALGO (ASA ID 0, 6 decimals = microALGO).

Changes to schemas/services.ts:
- Add ALGO_NATIVE = "0" and VOI_NATIVE = "0" constants
  (native ALGO / VOI — ASA ID 0, 6 decimal places)
- Add ALGORAND_PAYMENT: PaymentDefaults { method: "algorand", currency: "0", decimals: 6 }
- Add VOI_PAYMENT: PaymentDefaults { method: "voi", currency: "0", decimals: 6 }
- Add "algovoi" service entry — Algorand/Voi blockchain gateway + MCP tools,
  4 endpoints (account, asset, transactions, MCP tool calls), 1000 microALGO base

Regenerated discovery.json (55 services, 627 endpoints).

Why native token:
Algorand and Voi use native coins (ALGO/VOI) as primary micropayment
currency. Native = ASA ID 0, 6 decimals. A stablecoin variant (USDCa
ASA 31566704) can follow once the base method identifiers are merged.

Reference client implementation:
AlgoVoi Chrome Extension (open-source AVM wallet) accepts method:
"algorand" and method: "voi" in HTTP 402 challenge responses, builds
and signs AVM transactions in-browser, and waits for on-chain
confirmation before returning the payment proof header.
https://github.com/chopmob-cloud/AlgoVoi

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 20, 2026

@chopmob-cloud is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant