Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The requirement’s asset, network or recipient is not on the caller’s allow list.
import { PaymentNotAllowedError } from 'x402-avm-js';
export class PaymentNotAllowedError extends X402AvmError { readonly field: 'asset' | 'network' | 'payTo'; readonly value: string; constructor(field: 'asset' | 'network' | 'payTo', value: string) { super(`Refusing to pay: ${field} "${value}" is not in the allowed${field === 'payTo' ? 'PayTo' : field[0].toUpperCase() + field.slice(1) + 's'} list`, 'payment_not_allowed'); this.field = field; this.value = value; } }