Repository navigation
Nightly keyless x402 acceptance from a fresh wallet - #3
Merged
Merged
Conversation
acceptance:x402 needs a wallet that never authorized a delegate, and the nightly wallet authorizes the API's for acceptance:pool. scripts/fresh-wallet.ts runs an npm script with a wallet made for that run: the funder sends it LIGHTCHAIN_FUND_WEI, and afterwards, pass or fail, it withdraws its prepaid balance and sends everything back. acceptance.yml runs it after pool, from the same secret. The x402 payment cap defaults to 0.05 LCAI, in acceptance-x402.ts and in the README example: testnet charges 0.02 a job, past the old 0.01 default.
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.
scripts/fresh-wallet.ts(npm run acceptance:x402:fresh): runsacceptance:x402with a wallet made for that run.FUNDER_PRIVATE_KEYfunds it, and afterwards, pass or fail, it withdraws its prepaid balance and sends everything back.acceptance:x402needs a wallet that never authorized a delegate, and the nightly wallet authorizes the API's foracceptance:pool.acceptance.yml: anx402job afterpool, from the sameTESTNET_WALLET_PRIVATE_KEY, with its log as an artifact.acceptance-x402.tsand in the README example. Testnet charges 0.02 a job, past the old 0.01 default..gitignoregainsnode_modules/.Testnet run on 2026-10-10 (x402 went live there today):
0xab835ecb….