159 lines
4.3 KiB
JSON
159 lines
4.3 KiB
JSON
{
|
|
"name": "gin",
|
|
"type": "server",
|
|
"language": "go",
|
|
"x402Version": 2,
|
|
"extensions": [
|
|
"bazaar",
|
|
"eip2612GasSponsoring",
|
|
"erc20ApprovalGasSponsoring"
|
|
],
|
|
"evm": {
|
|
"assetTransferMethods": [
|
|
"eip3009",
|
|
"permit2"
|
|
]
|
|
},
|
|
"description": "Go Gin 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": "/batch-settlement/evm/eip3009",
|
|
"method": "GET",
|
|
"description": "Protected endpoint exercised by deposit + voucher + recovery voucher + cooperative refund",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "batch-settlement",
|
|
"assetTransferMethod": "eip3009"
|
|
},
|
|
{
|
|
"path": "/batch-settlement/evm/permit2",
|
|
"method": "GET",
|
|
"description": "Batch-settlement Permit2 direct endpoint (pre-approved Permit2)",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "batch-settlement",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"permit2Direct": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/batch-settlement/evm/permit2-eip2612GasSponsoring",
|
|
"method": "GET",
|
|
"description": "Batch-settlement Permit2 endpoint with EIP-2612 gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "batch-settlement",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/batch-settlement/evm/permit2-erc20ApprovalGasSponsoring",
|
|
"method": "GET",
|
|
"description": "Batch-settlement Permit2 endpoint with ERC-20 approval gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"extensions": [
|
|
"erc20ApprovalGasSponsoring"
|
|
],
|
|
"scheme": "batch-settlement",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"coldstart": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/exact/evm/permit2",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring Permit2 payment (standard settle, no gas sponsoring)",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "exact",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"permit2Direct": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/exact/evm/permit2-eip2612GasSponsoring",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring Permit2 payment with EIP-2612 gas sponsoring",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"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 (usage-based settlement)",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "evm",
|
|
"scheme": "upto",
|
|
"assetTransferMethod": "permit2",
|
|
"schemeOptions": {
|
|
"permit2Direct": true
|
|
}
|
|
},
|
|
{
|
|
"path": "/exact/svm",
|
|
"method": "GET",
|
|
"description": "Protected endpoint requiring payment (SVM)",
|
|
"requiresPayment": true,
|
|
"protocolFamily": "svm"
|
|
},
|
|
{
|
|
"path": "/health",
|
|
"method": "GET",
|
|
"description": "Health check endpoint",
|
|
"health": true
|
|
},
|
|
{
|
|
"path": "/close",
|
|
"method": "POST",
|
|
"description": "Graceful shutdown endpoint",
|
|
"close": true
|
|
}
|
|
],
|
|
"environment": {
|
|
"required": [
|
|
"PORT",
|
|
"EVM_PAYEE_ADDRESS",
|
|
"SVM_PAYEE_ADDRESS",
|
|
"FACILITATOR_URL"
|
|
],
|
|
"optional": [
|
|
"EVM_RECEIVER_AUTHORIZER_PRIVATE_KEY"
|
|
]
|
|
}
|
|
}
|