Documentation Index
Fetch the complete documentation index at: https://docs.x402x.ai/llms.txt
Use this file to discover all available pages before exploring further.
TokenDetectionResult
interface TokenDetectionResult {
address: string;
supportedMethods: ("eip3009" | "permit" | "permit2" | "permit2-witness")[];
details: { hasEIP3009: boolean; hasPermit: boolean; hasPermit2Approval: boolean };
name: string;
version: string;
}
initialize 返回
TokenDetectionResult[] // 返回每个 token 的检测结果
Settle 检测返回(收款地址)
interface SettleDetectionResult {
/** 是否支持 settleWithPermit (0x02ccc23e) */
supportsSettleWithPermit: boolean;
/** 是否支持 settleWithERC3009 (0x1fe200d9) */
supportsSettleWithERC3009: boolean;
/** 是否支持 settleWithPermit2 (0xa7fcafbb) */
supportsSettleWithPermit2: boolean;
}
以上检测用于验证 EIP-7702 收款地址是否实现 x402x 结算扩展方法,便于在上线前自检与运行期健康检查。