synthetic

Deposit Pegged Token

🚧 Deprecation notice

This endpoint will be deprecated on 4 November 2026.

Enables users to deposit synthetic pegged tokens into the Synthetix protocol with customizable gas settings and transaction parameters. Upon a successful transaction, the endpoint returns key details including the chain ID, sender and recipient addresses, gas used, and the raw transaction data, ensuring a secure and efficient deposit process.

💡 Compute Unit Value: 130 (Fixed)

post/defi/v1/synthetic/depositpeggedtoken

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/synthetic/depositpeggedtoken
  • Auth
    API key in header X-API-Key

Request body

syntheticId'6000'

The unique ID to specify the synthetic protocol for queries or transactions.

amountstring required

Amount of Synth tokens, specified in the token's smallest denomination (18 decimal wei). Do not send human-readable decimal values. Example: 1 sUSD = "1000000000000000000".

fromstring required

Blockchain address of the sender. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...). This address must hold sufficient balance and will sign the transaction.

gasstring

Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.

gasPrioritystring

Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

enableFeeboolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

Example request

{
  "syntheticId": "6000",
  "amount": "1000000000000000000",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "gas": "100000",
  "gasPriority": "low",
  "enableFee": false
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1",
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "value": "0",
    "gas": "300000",
    "data": "0xdc8fa6c2000000000000000000000000000000000000000000000000016345785d8a0000",
    "to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.