Skip to main content

TypeAlias.X402Resource

type X402Resource = {
accepts: {
amount: string;
asset: string;
maxTimeoutSeconds: number;
network: string;
payTo: string;
scheme: string;
}[];
createdAt: string;
description?: string | null;
host: string;
httpMethod?: string | null;
iconUrl?: string | null;
id: string;
networks: string[];
operation?: string | null;
payable: boolean;
priceVariable: boolean;
quality?: | {
l30DaysTotalCalls?: number | null;
l30DaysUniquePayers?: number | null;
lastCalledAt?: string | null;
}
| null;
requestHint?: Record<string, unknown> | null;
resource: string;
serviceName?: string | null;
source: "coinbase" | "orthogonal";
tags: string[];
type: string;
updatedAt: string;
via?: string | null;
x402Version: number;
};

Type Declaration​

NameTypeDefault value
accepts{ amount: string; asset: string; maxTimeoutSeconds: number; network: string; payTo: string; scheme: string; }[]-
createdAtstring-
description?stringnull
hoststring-
httpMethod?stringnull
iconUrl?stringnull
idstring-
networksstring[]-
operation?stringnull
payableboolean-
priceVariableboolean-
quality?{ l30DaysTotalCalls?: number
requestHint?Record<string, unknown>null
resourcestring-
serviceName?stringnull
source"coinbase""orthogonal"
tagsstring[]-
typestring-
updatedAtstring-
via?stringnull
x402Versionnumber-