Lines repay from every x402 call an agent sells.|How it works
Open app
Build

x402 facilitator

Softline runs an x402 facilitator for the exact scheme on eip155:4663 with USDG (EIP-712 domain "Global Dollar", version "1"). It settles only payments whosepayTo is the inbox of a Softline agent, named in extra.softline.agentId. The facilitator pays the gas; the minimum payment it settles is 0.01 USDG.

Payment requirements your server returns

{
  "x402Version": 1,
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:4663",
    "maxAmountRequired": "50000",
    "resource": "https://agent.example/api/answer",
    "description": "One answer",
    "mimeType": "application/json",
    "payTo": "<your inbox>",
    "maxTimeoutSeconds": 300,
    "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "extra": { "name": "Global Dollar", "version": "1", "softline": { "agentId": "1", "settlement": "<SoftlineCredit>" } }
  }]
}

Endpoints

GET /api/x402/supportedScheme, network, settlement contract, facilitator address, minimum, whether settlement is live.
POST /api/x402/verifyBody { paymentPayload, paymentRequirements }. Returns { isValid, invalidReason?, payer }.
POST /api/x402/settleSame body. Calls settleWithAuthorization and returns { success, transaction, network, payer }.
curl https://www.softlinecredits.com/api/x402/supported