Skip to main content

TypeAlias.X402Service

type X402Service = {
accepts: {
amount: string;
asset: string;
maxTimeoutSeconds: number;
network: string;
payTo: string;
scheme: string;
}[];
authorized: boolean;
blockedByApplication: boolean;
createdAt: string;
description?: string | null;
host: string;
httpMethod?: string | null;
iconUrl?: string | null;
id: string;
networks: string[];
operation?: string | null;
orgRule: "allowed" | "denied" | "covered" | "none";
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;
usage: | {
agents: {
id: string;
label: string;
}[];
amountRef: string;
}
| null;
via?: string | null;
x402Version: number;
};

Type Declaration​

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