x402 (AI agents)
A seller's payTo
The seller's vault: a contract address derived from their wallet (CREATE2), deployed on first use, that can only ever pay that wallet (less the P2Flux fee). Use pay_to as payTo and put extra in the route's x402 config. The agent signs a transfer to this address, so no key - P2Flux's included - can send the payment anywhere else. The answer never changes for a wallet: fetch it once.
post/x402/vault
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/x402/vault
- Auth: none required
Request body
Example request
{
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
}Response
Vault
Example response
{
"network": "eip155:8453"
}Changes
No recorded changes to this operation across all 1 revision of this API.