Skip to main content
GET
/
credit
/
v2
/
accounts
/
{account}
/
assets
/
{asset}
/
draw
curl --request GET \
  --url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/draw?amount=1000000&receiver=0xRECEIVER'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0xa9059cbb000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}
The asset parameter is the credit asset symbol — currently supported values are usdc and eure. A 0.50% origination fee is deducted from each draw. See Fees for details.
curl --request GET \
  --url 'https://api.sprinter.tech/credit/v2/accounts/0xUSER/assets/usdc/draw?amount=1000000&receiver=0xRECEIVER'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0xa9059cbb000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}
Machine-readable API spec: OpenAPI JSON | Swagger UI

Path Parameters

account
string
required

User account address (borrower)

asset
string
required

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

Query Parameters

amount
string
required

Amount to borrow (in wei)

receiver
string
required

Address to receive the borrowed funds

Response

List of contract calls to execute drawing credit

calls
object[]
required