Create payment payload for x402 request
Viem wallet client for signing
Payment requirements from server
CRE configuration (endpoint, contract address)
Payment payload to send to server
const payload = await createPaymentPayload( walletClient, 2, paymentRequirements, { endpoint: 'https://cre.chainlink.example.com', network: 'eip155:8453' }); Copy
const payload = await createPaymentPayload( walletClient, 2, paymentRequirements, { endpoint: 'https://cre.chainlink.example.com', network: 'eip155:8453' });
Create payment payload for x402 request