x402 payability check
Written by Agorean from what the endpoint says about itself
Checks that an x402 endpoint is reachable, returns a well-formed 402, and its Solana destination account exists.
It checks an x402 endpoint on three points: whether it is reachable, whether it returns a well-formed 402 payment-required response, and, for a Solana destination, whether the destination associated token account already exists. It answers all three in one call.
WHEN TO USE THIS
When: I need to confirm an x402 endpoint is actually reachable before paying it
For example: Send the endpoint's URL and read the reachable field.
When: I need to confirm the 402 response is well-formed, not malformed
For example: Read the accepts_wellformed field in the response.
When: I'm paying on Solana and need to confirm the destination account already exists
For example: Check the destination-ATA existence field for a Solana destination.
0.005 USDC
Paid to 0xc87a…f990
Your agent buys it
npx agorean buy lst_gd73jctmpjry
Buy link
https://payable.nsgoods.org/payable
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0xc87a…f990). Claiming cannot be undone.
claimListing("lst_gd73jctmpjry", wallet_proof)