Synthetix

/getprice

Get the exchange amount in Protocol Tokens for entered Pegged Tokens.

GET https://api.expand.network/synthetic/getprice

Query Parameters

Name
Type
Description

syntheticId

String

Refer to the Synthetics IDs page for details.

amount*

String

Amount in Synths.

https://api.expand.network/synthetic/getprice?amount=58798

/depositpeggedtoken

Deposit pegged token.

POST https://api.expand.network/synthetic/depositpeggedtoken

Request Body

Name
Type
Description

syntheticId

String

Refer to the Synthetics IDs page for details.

amount*

String

Amount of pegged token.

from*

String

Address of the sender of the token.

gas

String

Maximum gas limit provided by the sender, for the transaction.

gasPriority

String

low, medium, or high.

ofacCheck

Boolean

if true,provides insights of the contract and tokens involved in the transaction. By Default, false Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet

{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",      
    "amount": "100000000000000000",
    "gas": "300000",
    "syntheticId": "6000"
}

With gasPriority:

{
    "from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
    "amount": "100000",
    "gas": "300000",
    "syntheticId": "6000",
    "gasPriority": "medium"
}

With ofacCheck:

{
    "from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
    "amount": "100000",
    "gas": "300000",
    "syntheticId": "6000",
    "gasPriority": "medium",
    "ofacCheck": true
}

/withdrawpeggedtoken

Withdraw pegged token.

POST https://api.expand.network/synthetic/withdrawpeggedtoken

Request Body

Name
Type
Description

syntheticId

String

Refer to the Synthetics IDs page for details.

from*

String

Address of the owner of the token.

gas

String

Maximum gas to be approved for the transaction.

gasPriority

String

low, medium, or high.

ofacCheck

Boolean

if true,provides insights of the contract and tokens involved in the transaction. By Default, false Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet

{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "300000",
    "syntheticId": "6000"
}

With gasPriority:

{
    "from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
    "gas": "300000",
    "syntheticId": "6000",
    "gasPriority": "medium"
}

With ofacCheck:

{
    "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
    "gas": "300000",
    "syntheticId": "6000",
    "ofacCheck": true
}

Last updated