Skip to main content
GET
/
credit
/
v2
/
accounts
/
{account}
/
assets
/
{asset}
/
repay
curl --request GET \
  --url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/repay?amount=1000000'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}
The asset parameter is the credit asset symbol — currently supported values are usdc and eure. Repay before the due date to avoid the 15% overdue APR. See Fees for details.
curl --request GET \
  --url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/repay?amount=1000000'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}
Machine-readable API spec: OpenAPI JSON | Swagger UI

Path Parameters

account
string
required

Account (borrower) that will repay the debt

asset
string
required

Credit asset symbol (e.g. usdc, eure)

Query Parameters

amount
string
required

Amount in lowest denomination (e.g., wei for ETH)

Response

List of contract calls to execute repayment

calls
object[]
required