expand.network
  • Overview
  • Getting Started
  • 🔑How do I get my API Key?
  • 📑List of All Endpoints
  • ⚙️SDK
    • Overview
    • Getting Started
  • ⛓️INTEGRATIONS
    • ⚡Blockchains
      • EVM based blockchains
        • Ethereum
        • Binance Smart Chain
        • Avalanche - C
        • Avalanche - P
        • Avalanche - X
        • Polygon
        • Cronos
        • Arbitrum
        • Fantom
        • Optimism
        • Base
        • zkSync Era
        • Mantle
      • Non-EVM based chains
        • Tron
        • Solana
        • Near
        • Algorand
        • Aptos
        • Sui
        • Starknet
        • TON
        • Cosmos Hub
        • Osmosis
        • Stacks
        • Bitcoin
        • Stellar
          • Stellar RWA
        • XRP Ledger
          • XRP Ledger RWA
    • ⚡Bridges
      • Stargate
      • Stargate V2
      • Squid Router
      • Squid Router V2
      • Allbridge Classic
      • Allbridge Core
    • ⚡DEX & DEX Aggregators
      • Uniswap V2
      • Uniswap V3
      • Uniswap X
      • Sushiswap V2
      • PancakeSwap V2
      • PancakeSwap V3
      • Aerodrome
      • Camelot V3
      • Curve V2
      • Balancer V2
      • STON.fi
      • Trader Joe
      • Orca
      • Raydium
      • SDEX
      • Cetus
      • REF Finance
      • Liquidswap
      • Sologenic
      • Alex
      • 0x (Aggregator)
      • 1inch (Aggregator)
      • Kyberswap (Aggregator)
        • Kyberswap ( Limit Order Endpoints )
      • Jupiter (Aggregator)
    • ⚡Derivatives
      • dYdX V4
    • ⚡Fungible Tokens
      • ERC20
      • WETH
    • ⚡Lending Protocols
      • Aave V2
      • Aave V3
      • Compound V2
      • Compound V3
      • Morpho
    • ⚡Yield Aggregators
      • Yearn Finance V2
      • Harvest Finance
      • Pendle
    • ⚡Liquid Staking
      • Chorus One
      • Lido V2
      • Stader
      • Benqi
      • Jito
      • EigenLayer
    • ⚡Non Fungible Tokens
      • ERC721
      • ERC1155
      • Metaplex
    • ⚡Oracles
      • ChainLink
      • WinkLink
      • Pyth Network
      • RedStone
    • ⚡Stablecoins
      • EVM
    • ⚡Synthetics
      • Synthetix
    • ⚡Supported Wallets
      • MPC Wallets
        • DFNS
        • FORDEFI
        • FIREBLOCKS
        • CIRCLE
      • HD Wallets
        • PHANTOM
        • COINBASE
        • TON Wallet
      • Wallet Connect v2
  • How To
    • Execute a Local Swap
    • Execute a Cross Chain Swap
    • Use Limit Orders
    • Lend and Borrow
    • Provision Liquidity
      • Adding Liquidity
      • Removing liquidity
    • Yield Farm
    • Use Our Transaction Decoder
    • Submit an RFQ
    • Subscribe to Events
    • Stream Data (WebSocket)
      • Stream Transaction
      • Stream Trade
      • Stream Gas
      • Stream Ticker Price
    • Source Pricing
    • Track Memecoins
    • Manage Token Approvals
  • Use Cases
    • Trade Reconciliation
    • Portfolio Management
    • Trading Features
    • On-Chain Data: DEX Liquidity Pool Forensics
    • Transaction and Pool Analysis
  • Account Abstraction
    • Overview
      • User Endpoints
      • Paymaster Endpoint
      • Bundler Endpoint
    • ⚙️SDK - Overview
  • Additional Info
    • Error Messages
    • Client-Side Security Essentials
    • Compute Unit Costs
    • API Metadata
    • Audit Certificate
    • Brand Assets
    • FAQs
    • Quicknode Marketplace
      • DEX
      • Lending Protocols
  • ID's
    • Chain IDs
    • Bridge IDs
      • Internal Chain IDs for Bridges
    • DEX IDs
    • Lending Protocol IDs
    • Yield Aggregator ID
    • Liquid Staking IDs
    • Oracle IDs
    • Stablecoin IDs
    • Derivatives IDs
    • Synthetics IDs
  • Mapping
    • Blockchains
    • DEXs
      • Uniswap V2
      • Uniswap V3
      • Sushiswap
      • PancakeSwap
      • Curve
      • Balancer
    • Lending Protocols
      • Aave
      • Compound
  • Protocol Spender
    • Spender list
Powered by GitBook
On this page
  • /getprice
  • /depositpeggedtoken
  • /withdrawpeggedtoken
  1. INTEGRATIONS
  2. Synthetics

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

amount*

String

Amount in Synths.

https://api.expand.network/synthetic/getprice?amount=58798
{
    "status": 200,
    "msg": "success",
    "data": {
        "peggedToProtocolToken": "22177"
    }
}

/depositpeggedtoken

Deposit pegged token.

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

Request Body

Name
Type
Description

syntheticId

String

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"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "value": "0",
        "gas": "300000",
        "data": "0xdc8fa6c2000000000000000000000000000000000000000000000000016345785d8a0000",
        "to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86"
    }
}

With gasPriority:

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

With gasPriority:

{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
        "value": "0",
        "gas": "300000",
        "data": "0xdc8fa6c200000000000000000000000000000000000000000000000000000000000186a0",
        "to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86",
        "gasPrice": "17327449829"
    }
}

With ofacCheck:

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

With ofacCheck:

{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "40000",
        "data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "gasPrice": "499498318",
        "estimationCheck": true,
        "insights": {
            "asset": {
                "issues": [],
                "verdict": {
                    "code": 0,
                    "label": "NO_ISSUES"
                }
            },
            "to": {
                "issues": [],
                "verdict": {
                    "code": 0,
                    "label": "NO_ISSUES"
                }
            }
        },
        "referenceId": "e9bfe6229a844227a92a2f6669aa1da0"
    }
}

/withdrawpeggedtoken

Withdraw pegged token.

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

Request Body

Name
Type
Description

syntheticId

String

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"
}
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
        "value": "0",
        "gas": "300000",
        "data": "0x81b797dc",
        "to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86"
    }
}

With gasPriority:

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

With gasPriority:

{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
        "value": "0",
        "gas": "300000",
        "data": "0x81b797dc",
        "to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86",
        "gasPrice": "16948048970"
    }
}

With ofacCheck:

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

With ofacCheck:

{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
        "to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
        "value": "0",
        "gas": "40000",
        "data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643",
        "gasPrice": "499498318",
        "estimationCheck": true,
        "insights": {
            "asset": {
                "issues": [],
                "verdict": {
                    "code": 0,
                    "label": "NO_ISSUES"
                }
            },
            "to": {
                "issues": [],
                "verdict": {
                    "code": 0,
                    "label": "NO_ISSUES"
                }
            }
        },
        "referenceId": "e9bfe6229a844227a92a2f6669aa1da0"
    }
}
PreviousSyntheticsNextSupported Wallets

Last updated 1 month ago

Refer to the page for details.

Refer to the page for details.

Refer to the page for details.

⛓️
⚡
Synthetics IDs
Synthetics IDs
Synthetics IDs