Skip to main content
GET
/
credit
/
accounts
/
{account}
/
lock
curl --request GET \
  --url 'https://api.sprinter.tech/credit/accounts/{account}/lock'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}
curl --request GET \
  --url 'https://api.sprinter.tech/credit/accounts/{account}/lock'
{
  "calls": [
    {
      "chain": "8453",
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "data": "0x095ea7b3000000000000000000000000abcdef1234567890abcdef1234567890abcdef12",
      "value": "0"
    },
    {
      "chain": "8453",
      "to": "0x1234567890abcdef1234567890abcdef12345678",
      "data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000005f5e100",
      "value": "0"
    }
  ]
}

Path Parameters

account
string
required

Account that holds the asset and will execute calls

Query Parameters

amount
string
required

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

asset
string
required

Asset address in eth format - either underlying asset (USDC) or earn position (gtUSDCp)

earn
string

Earn strategy to wrap asset before depositing. If omitted, asset is deposited directly without wrapping.

Response

List of contract calls to execute locking of collateral

calls
object[]
required