The agent pays with a fetch
Its key spends its remit and nothing else of the owner’s. When a server answers 402, the SDK pays from the remit and sends the request again.
import { createRemit } from '@remit/sdk'
const remit = createRemit() // reads REMIT_AGENT_KEY
const res = await remit.fetch('https://api.lumen.example/search?q=solana')