Repository navigation
docs: add Tempo MPP sign-in and top-ups to the agent payment guide - #155
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
docs/build/api/x402.md(keeping the/docs/build/api/x402URL intact) to document both HTTP payment rails for agents: x402 (USDC on Base) and MPP on Tempo (USDC.e on Tempo mainnet).Payment-Authorizationheader, pull settlement mode, and sign-in endpoints.POST /v2/x402/top-up?amountUsd=N, including verifiedtempo requestCLI examples (authenticated with--bearerand anonymous), the200response body,Payment-Receiptheader, balance visibility timing, and400/402/409/503retry semantics.POST /v1/auth/mpp, including the zero-amount402challenge, verifiedtempo requestcommand, single-use challenges, and the access key security and on-chain publication warning.llms.txtheaders indocs/llms_txt_override.md,docs/build/llms_txt_include_head.md,docs/build_with_ai/llms_txt_include_head.md,docs/build_with_ai/overview.md,docs/build/api/overview.md,docs/build/balance.md,docs/build/registration.md, anddocs/build/overview.md.How facts were checked
https://api.fluence.dev:POST /v2/x402/top-up?amountUsd=10returns402with both an x402 challenge (PAYMENT-REQUIRED) and a Tempo MPP challenge (WWW-Authenticate: PaymentwithchainId: 4217,supportedModes: ["pull"],header="Payment-Authorization", USDC.e0x20c000000000000000000000b9537d11c60e8b50).POST /v2/x402/top-up?amountUsd=1500returns402with only the Tempo MPP challenge.tempo requestand observed the200response body,Payment-Receiptheader, and balance credit inGET /v3/account/balancesandGET /v3/top-ups.POST /v1/auth/mppreturns a zero-amount402challenge (chainId: 4217,realm="api.fluence.dev") and returns200with{accessToken, refreshToken, userData}when retried withtempo request --network mainnet --max-spend 0.401on pending unpublished key, full-account sign-in scope).npm run gate(typecheck and production build, includingllms.txtand.mdgeneration) with zero errors.Not verified
TEMPO_PRIVATE_KEYand on-chain access key checks).