141 lines
3.6 KiB
JSON
141 lines
3.6 KiB
JSON
{
|
|
"name": "fastapi",
|
|
"type": "server",
|
|
"language": "python",
|
|
"x402Version": 2,
|
|
"extensions": [
|
|
"bazaar",
|
|
"eip2612GasSponsoring",
|
|
"erc20ApprovalGasSponsoring"
|
|
],
|
|
"schemes": [
|
|
"exact",
|
|
"upto"
|
|
],
|
|
"evm": {
|
|
"assetTransferMethods": [
|
|
"eip3009",
|
|
"permit2"
|
|
]
|
|
},
|
|
"description": "Python FastAPI server with x402 v2 payment middleware",
|
|
"endpoints": [
|
|
{
|
|
"path": "/exact/evm/eip3009",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring EIP-3009 payment",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "exact",
|
|
"assetTransferMethod": "eip3009"
|
|
},
|
|
{
|
|
"path": "/exact/svm",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring SVM (Solana) payment",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "svm"
|
|
},
|
|
{
|
|
"path": "/exact/tvm",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring TVM payment",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "tvm"
|
|
},
|
|
{
|
|
"path": "/exact/evm/permit2-eip2612GasSponsoring",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring Permit2 payment with EIP-2612 gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"extensions": [
|
|
"eip2612GasSponsoring"
|
|
],
|
|
"scheme": "exact",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/exact/evm/permit2-erc20ApprovalGasSponsoring",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring Permit2 payment with ERC-20 approval gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"extensions": [
|
|
"erc20ApprovalGasSponsoring"
|
|
],
|
|
"scheme": "exact",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/upto/evm/permit2",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring upto Permit2 payment (partial settlement)",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "upto",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"permit2Direct": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/upto/evm/permit2-eip2612GasSponsoring",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring upto Permit2 payment with EIP-2612 gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "upto",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/upto/evm/permit2-erc20ApprovalGasSponsoring",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring upto Permit2 payment with ERC-20 approval gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"extensions": [
|
|
"erc20ApprovalGasSponsoring"
|
|
],
|
|
"scheme": "upto",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/health",
|
|
"method": "GET",
|
|
"description": "Health check endpoint",
|
|
"health": true
|
|
},
|
|
{
|
|
"path": "/close",
|
|
"method": "POST",
|
|
"description": "Graceful shutdown endpoint",
|
|
"close": true
|
|
}
|
|
],
|
|
"environment": {
|
|
"required": [],
|
|
"optional": [
|
|
"EVM_PAYEE_ADDRESS",
|
|
"SVM_PAYEE_ADDRESS",
|
|
"TVM_PAYEE_ADDRESS",
|
|
"PORT",
|
|
"FACILITATOR_URL",
|
|
"EVM_PERMIT2_ASSET",
|
|
"TVM_NETWORK"
|
|
]
|
|
}
|
|
}
|