Couldn't generate the PDF for 153 pages, generation stopped at 100.
1 of 100
EVM based blockchains Following are the EVM (Ethereum Virtual Machine) based blockchains integrated with expand.network:-
What is expand.network? All of DeFi in One Unified API
expand.network offers a single unified API for accessing all of DeFi.
expand.network's middleware API allows clients to transact and source on-chain data from over 100 distinct DeFi endpoints, including DEXs, bridges, lending protocols, yield aggregators, oracles, NFTs, and stablecoins.
Simplify blockchain interactions, build efficiently, and access on-chain data with an abstracted connector API.
We currently support the following blockchains:
Blockchain type
Blockchains
Arbitrum, Avalanche, Base, Binance Smart Chain, Cronos, Ethereum, Fantom, Optimism, Polygon, zkSync
Algorand, Aptos, NEAR, Solana, Starknet, Stellar, Sui, TON, Tron
In addition, we currently support the following DeFi protocols:
0x, 1inch, Balancer, Curve, Kyberswap, Pancakeswap, Sushiswap, Trader Joe, Uniswap (V2, V3, X)
Aave V2, Aave V3, Compound V2, Compound V3
Chainlink, Pyth Network, Winklink
Harvest finance, Yearn finance
All transactions are securely signed on your end, so your private key remains with you and never comes to us over API. We do not hold your crypto at any point: your keys, your crypto. Our APIs are a one-stop shop for you to make the enquiries and conduct the transactions as you want.
We provide two high-level categories for the simplicity of developers.
Blockchains - Communicate with the various public blockchains to pull real-time information about blocks, transactions, slots (storage), balance, and many more. This can also be used to sign and send transactions to the chain. For example, if you need to check the transaction for the given transaction hash from Solana as well as the Binance smart chain, you need not learn about two different web3 libraries (Solana and BSC), you can easily do it using our common API endpoint, gettransaction
.
Protocols - There are multiple protocols available on the various chains. expand.network aims to provide interaction with a maximum of them based on various subcategories (Please refer to the section for details). For example, if you need to check the swap price of Token A to Token B on Uniswap V3 and Sushiswap, you need not learn about two different protocols, they can easily do it using our common API, getprice
.
Getting Started Learn how to get an API Key and make your first request with the expand.network API.
🗒️ Follow these steps to start your journey today:
Step 2: 🎉 Make Your First Request
Performing READ operations
To perform read queries, directly target our domain https://api.expand.network/
to hit our API environment. Following are the examples to make read queries:
Example 1: via Postman
Example 2: via cURL from a command line
Copy curl -H "x-api-key: YOUR_API_KEY" https://api.expand.network/chain/getbalance?address=0xe688b84b23f322a994A53dbF8E15FA82CDB71127
Performing WRITE operations
To perform a write transaction, you would require the followings:-
Example code : Send one Wei from an address ending in 2c7
to address ending in 86F
. You need to use your private key to sign the transaction. The return value is the transaction hash (res
).
Copy const rawTransaction = await signTransaction({
from: '0x1BdC0A29f667E2cc74e55531431986838023E2c7',
to: '0x94a5E554DC172A472421291Ae6e6c0e3C150286F',
value: '1',
gas: 50000,
},{
privateKey: YOUR_PRIVATE_KEY',
xApiKey : 'YOUR_API_KEY'
}).then(rawTransaction => sendTransaction({
rawTransaction: rawTransaction.rawTransaction,
xApiKey : 'YOUR_API_KEY'
})).then(res => console.log(res));
Step 1: 🔑Create an API key (For further details, )
expand.network SDK which can be cloned from .
Blockchain We support all major public blockchains
expand.network provides connectivity to various EVM and Non-EVM based chains for both, query (Read) and transaction (Write). So now, the developer does not need to worry about how different blockchains work. The developer will be required to know only the chainID to perform multiple operations on different chains.
For example, if a developer wants to send two transactions, one on the Ethereum mainnet and another on Solana, then they just need to call the sendtransaction API with different chain IDs in the request body.
Following are the common APIs implemented for all the various chains:-
Get the balance or number of the given token in the requested public address.
Get the current gas price from the network.
Get data stored in the given slot.
Get details of a transaction.
Get the RPC of required chain.
Retrieves gas fee spent in a particular range.
Get the historical transaction details for a specific user address.
Available on Ethereum, Binance Smart Chain, Avalanche - P/C/X, Polygon, Fantom, Stellar and TON.
Get the historical transaction details focusing on staking rewards for a specific user address. Available on Avax-P.
Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers. Currently available on Stellar.
Get details for the current latest known ledger of the node. Currently available on Stellar.
Get detailed information about the verified assets or tokens currently associated with a user's wallet address. Available on Ethereum as well as Arbitrum, Avalanche, Base, Binance Smart Chain, Cronos, Fantom, Near, Optimism, Polygon, Stellar and Solana.
Get details of the flashbot blocks.
Get details of the flashbot transactions.
Get details of the specified flashbot bundle.
Implement a trustline between issuer and distributor. Currently available on Stellar.
Create and fund a new account using the public key as the account ID. Currently available on Stellar.
Executes a payment operation to create (or mint) an asset on the Stellar network.
Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account on the Stellar network.
Executes a transaction to burn or delete an asset on the Stellar network.
Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account on the Stellar network.
Sign and send transactions on the chain.
Submit a trial contract invocation to simulate how it would be executed by the network. This endpoint calculates the effective transaction data, required authorizations, and minimal resource fee. It provides a way to test and analyze the potential outcomes of a transaction without actually submitting it to the Stellar network.
genericsmartcontractmethod
Calls read functions of verified smart contracts. Available on ethereum.
Get the decoded transaction for the provided raw transaction. Available on ethereum, binance, avalanche, polygon, cronos, arbitrum, fantom, optimism, solana, stellar and near.
To perform sendtransaction() successfully, the user needs to sign the transaction first.
If the user wants to pass the RPC manually, the user can either use their own RPC or use our provided RPC, by using /getpublicrpc endpoint.
/getpublicrpc
Get the RPC of required chain.
GET
https://api.expand.network/chain/getpublicrpc
Query Parameters
Sample Request
Copy https://api.expand.network/chain/getpublicrpc?chainId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"rpc": "https://api.trongrid.io"
}
}
Following is a sequence diagram for sendTransaction() process in chains:-
Ethereum /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
/getgasfees
Retrieves the total fee spent, current price, adjusted price (in cents), and the transaction list associated with a specified address within a given block range.
GET
https://api.expand.network/chain/getgasfees
Query Parameters
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
/getflashbotblocks
Get details of the flashbot blocks.
GET
https://api.expand.network/chain/getflashbotblocks
Query Parameters
/getflashbottransactions
Get details of the flashbot transactions.
GET
https://api.expand.network/chain/getflashbottransactions
Query Parameters
/getflashbotbundle
Get details of the specified flashbot bundle.
GET
https://api.expand.network/chain/getflashbotbundle
Query Parameters
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Sample Request
With bdnTransaction: true
Sample Response
With bdnTransaction: true
/genericsmartcontractmethod
Executes a read query on a verified smart contract on etherscan. In case of un-verified smart contracts, ABI needs to be provided to proceed accordingly.
POST
https://api.expand.network/chain/genericsmartcontractmethod
Request Body
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
For more details, click .
Refer to the page for details.
Copy https://api.expand.network/chain/getbalance/?address=0x731FDBd6871aD5cD905eE560A84615229eD8197a
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "102907902410719396674"
}
}
Copy https://api.expand.network/chain/getblock?blockNumber=16318231
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 30000000,
"gasUsed": 10645652,
"hash": "0x42862fc7e6cb1ff111d8d0beff9a8f2a50b48e559ac7cffa52206b25dc81c54b",
"miner": "0x1a2b8bd408413179524e3e61FfA1378b7b7688D5",
"nonce": "0x0000000000000000",
"number": 16318231,
"parentHash": "0xa1444dc059e2c60491856cfa89e8cec7237ca6f90852ae1bb6a3aa862ed20f49",
"size": 91769,
"timestamp": 1672652159,
"totalDifficulty": "58750003716598352816469",
"transactions": [
"0x6c7bfb6dee5ed6353c221ab5a9d4930a7107a448055a15c031eed986a4587bdb",
"0x01d0829193b9e6b2b54b6184bfe0105e5e87d09592fc0f9462aec3048893c042",
"0x4f36e3c0af59156b25a8b360883697b447b347ecf80e6ba0e060600269435338",
"0x9fb53973ea89d47399a448bcd23eebd201f78008bdca0a5c37bcdaf9a0460884",
"0x30efeb10e6440aa88adcc53befa213d534d1a08a2121ddfdca6b0937e071e783",
"0x4eb1926f414561562a7c85e0082457d8492dd18dde5970f02910eb689bef7da5"
],
"transactionsRoot": "0xe78b797d004786a0f04009d15abe778ec331d66d1097db79d55f21383b25195e",
"uncles": []
}
}
Copy https://api.expand.network/chain/getgasprice
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "16858407956"
}
}
Copy https://api.expand.network/chain/getstorage?address=0x6839f0eB2a4f323aC616b99BA01547dE592BC965
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x000000000000000000000001c6f53a31de0ed6753f021224905772c706ee71ea"
}
}
Copy https://api.expand.network/chain/gettransaction?transactionHash=0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6",
"transactionStatus": null,
"blockNumber": 16525031,
"timestamp": null,
"from": "0x6887246668a3b87F54DeB3b94Ba47a6f63F32985",
"to": "0x5E4e65926BA27467555EB562121fac00D24E9dD2",
"value": "0",
"transactionFees": "4958711446180935",
"gas": 333435,
"gasPrice": "14871598501",
"input": "0xd0f89344000441a255000039000007000000000000000000000000000000000000060000000063d8b5850000fc26b00000130000000063d8b5940000fc26b000000c0000000063d8b5940000fc26b20000090000000063d8b5a30000fc26b20000060000000063d8b5a30000fc26b30000050000000063d8b5b20000fc26b3789cec7d7754154bf2ffdc4b4e12248364c94972ce92339211908c20194114b90449220a5e1105611024a3e4a004014550b22220224816c9820409bf23fadec2aedcd1e7eefbeeef9cad3f14e633dd5d5ddd5d555d5dd300308275186e08fa7628a1825c28bed21364483ef7988ca0939449ade65bb99b96deb9bacba688ca0c20f77614b087c2178715f059b34d361924448e0f528b845fa51c07fe2291c56199e49d6912de8120a87ac440b743bde339c6bc73897847b3bd893141be61eb43d24187139d4eebb97a355ec606833c2412522363c424c538c2b374f89e3f8d95ab1d9590297834ea7d34e6122700c0f2d76139e6bbd2807dec45f22a2c912a07d9054d446cdde6faf47070c3dbc71e510553d28aad6442cd8cf8f1bdbf351d4b1abec41c63ea68debf6c9f9ab99577ce4b1c5569cc1b8315bf52ff0fc81d027f0c81cb0fc1d49fad106bcc3f6dbf8ee7a915483633359cff59cbdeb8861d77fb5ead278545e9479601a28a19585e87531adbbacb76bd78b6791413cbc5184d8c11cf18465a88064441c6214bd691cf69679f4dbe6b54f25e21e07d733ad1f768355a744d30dd80834b07a89aa25337cca02e12fca01ea465e34eece9d70e55c7e131b56934b9a8de1fa00100396b59725f472ba43416195c42b8c2d8b55d7ef19dc080d7991b9eda8598a2884aa5bbdca5f67bdbbd15bbe896414c84fc6839c9d7d0b43c316577d60182559828887535eb4ce413d98e0215d36ab85055668ec0e8e79b6bcfa944ef1c93ab721cba085ee841e799cf73f62f0fa93fee5a267337a0cdb661dcf7dc5dd971fec8e106374e00e6be0e730d8559a585d2f8c9856a6ac8fd78ad55c1d0cb8bca1bf7368f0cc9dd6a7f5d79cbc65dd9921eeca021a5ecbd09c1f15f25259653940cd3e807e23ce53e975c00d53bf5a82ab1ed2b4b866ac8c3decbc3ef94ebb18370315087fd12bfb100a30303272972cdddb3ac685ec8edb2a2de00a6663ad17bc1204150168b54faceb4c8949164d2214be3e0553912ec8afa918fb802f2be9ad47c84d40030bbf631142bec6228890e22148d400e09b60a0ebaab52bdf266b2313ec7b9cd7ca8b129085119a6bc26a90bc1ae1b0fdbb86ead3d354240f94da4e3717d439f0b31cd3197baf0b9e8f3bdb9baf3a1c683145bb22d8a225310dba197137f4de03e9130b6f990da0b7b864be2f01a7b0445ab18189d4269fa4657c9ddb1449099c5f7ca672917d7c3422305bd574779952c37349a401e6bcced65c1d5a001bc68aeb36e2bf8816519750db91a2baa7a99318f877a0e0130ad75987a8818f6aefa1a7bfff800653ed6f61ea77c2f7311c4f9ce38610fdf2a4ce64dd20bd39835dc2d2040ad8ac13ed4f8ddca1f4a01e64d284292984d13d4761d425e9004652c44c1d6c05e1db2e4097655469a731233b819f9be77b7b91cedc99315aa9b3d1aeb4b403a524e7de51bec69c63e5b1c3e45a5b9b877f331246fd064f0beec0aa3cc00e60174c27574fc50f87dfd5d8162a53120df476bdf5aa05ae7eee5c5bf80617ae76c767c421ba20a2da305e18b529f030080400dc3ad51e3685fff81fdaa94fe41b0bdfa7ee9edabb3de95292a8e6f57c346f21aaf00b03a13383a06160c1b80e3a061fea50620f807705181685b4efea8f1e70c28f16db94594f84eedbbdfc3eb3650e3cd6f50e1e8f07ad438fa60334a9c9a570015fef5151ba29235fa499cb192c54ceb901dc297cd9d8e9d619629378d1f30dabfcc0fdac93b7fa6fe9979766bf1d6e5f64d2ffbe222bce1961c981936f9dc6458ffb806b27cca133b48d8488a3139284afe51b32cef4027b329e6991db1b62ceb4424e90c6f06a91ee16d256b81440af11075ec29b8dbfadc46da2865383c238467dbe102147f4c8eea3e6530eb8249b64059b2292acb9c35e1b825b41c63b6a9e6371809ce3862512fed3462b3a331cacae548549c54b70ab8b7148bb436e9a3b01e568b3ca574d093947c86511b7a7b896b444cacd956bc193631a6381b1270144f3f4f47f618d62ba1f6fed1ead4a81d41b5b78951f1176f9c37b0ce361c61a441f29c8259898b82e11aaf2c4879150d38af25ec08de15ad3be56575bdd564fbe3cb42664eeb4b313d20da486b1337df8aea8c568dbbf100cb44e4b62edbb1f8728e267d5abdbea467350050b2561442d4b7ab0fe05827907852d21d9a774a928209f9dd0cdb48eff7d427e345609c905ee5780c542af9489151a77b5b0eb13da9de602dd29310b5e8b1bbdf4e1b7d4f691acfbfd39ec231a13c9086464ff9153f31f884df07b793e2f2d8799e0c695acce433da21937176b80cfea2209babb9376ffc134d4df32297de6ba4ba156e0f3ad960b9d7b275308bd905f969419189763b79daa8a4f00cf5bbd647d37cbef4ab8ce86d7face66a6a872fba0c1cfad3f3b8bb6b08ffc39e07948e3a08273e8ce838b4867f60393cdb7a9e4b9e8f3c51ea19dbbeb21488f67fc2f3d80c2f79ad9bb206b4b126bb771cd10d597ec940dfba341b88779fa2832e9ec911c4f3b8e41596485ed1e6a65eb719faca45834ebfd16527f393e787025a39bcbae0bfcd2f1503a563e9c6ec7cea65f806748c7336b8f334b74d2df55a5d2b40b91d4c8546c956900d074739a1992229e884ca17768dd755ee168f5b691687433ca5b324920e535e0160aeeb30679ddd298df9901c994c72fdfa350c0eaa07c70c976996c9095f3a9c76ff3a350866279eec6d3bc8e2ac6635e9ba435264e8853435fce7148de4587bf11877f6a5c5f4e620c2eb9713ba7d19fa7de99afba1ba7330847ee15092ef2794a5b5870e2c2f639793ed3013b1cf84f41f27a53218fac8fea2704384cca52fc03381ef14aaea6dfb2ac6c440091eb36046b03ff0505209dae7c974161a5e21b4f628be48e1209331fa37362920ad9de43bdee9cbc1d7a54ee79d50a8b9a26b369726cb259a953e1593d6d1853dfd6d87a9f96d87496287ecf3c89210e8ac6cd4eca0b34efc70d7d9ef85b5f9d71da6c18bc2b1bdcd735719a38d149fed7b49923786a33fcbc19a4efe42d9d5d9c3dbd9cedecad7dbdecbcadbd6ddcbd9cd11a58cf611844702b943841dbc4df82992c716b989b74339c115733dd121406745956833d87a768ee0225da6da71e9774986f0ee339f448cfbe48d924d8ed49ea9ee5d5b220d105c38af78bbfdb98cbc1575010d44036260a4b9e59dcd54efa27ca58ad5f4b1da63a7d9b4b368b95997e0c96de12b63eb95a01bc6fc6a96f58a6a7fd966ca7c3f15b9dccb1e97f7c2ba87269e138e1c7947b203c0dcd6612e21a1ef51fbd43f509d7c54c121332794e36e64803636398ad40acaccdebf27af030953dad084fbead903712e238c5b00729e21e577232cc71c44c4c545854e898bfe18170553447c487cbc882f49f1214f2d2c7901297aa4a6786ead2503be7273844cb77840b9eb2f56f0a864a79a097544afeb0d3c7b9ee7e8f146bc4d32ffe21cf35d4356beef112998c5b788148bf0cf46a462424f6ea46b734e50f84e1d1a49e1f6d23c3df2e8af08f32b1dcfb8ba612e8e2ff9bbf2120553b32af1a22826bc1d3f947ada6fe9de32ba67b676942ae59eaf09d191601b7e1cf04c8a415dbfc5c2f829e5986b3d0522a70555e7ca369c3cc596de51e475383c0effd378a78732acfcc78df75f16d8a6b8f9d651cd03713e1890c0f9f0da8d425495d8f69581500d411b6f95e23ce15bcfefeb816c1789d799e7f9c6ca902d9a1604879a8d0aebf09e642f80a61ecfb8826347ef37882f011633a5c9e6eca58d999f33b6a21459734e5b015a0050b096170a5375fce6e5a92d207f64ea10954a3918c9fb661807e5a5ae16665b79b7c5277d8f83ed672b389b5950768650414e14d488d3f5d678d5cfff49a8f4d6d31aab365b5e17b93b79ef6fd0dcc37c6de689bc0a72c8b861b5cdb779fbb41e71c24cbb8cfd252a85f0cb6445fe34c9511b1eceaafb0090bf961b0213fdc62e2c0959705e939c0d6bb8b8ecf3d6c0cb358368ab8704d6884a2595c9f97dec4019f07f215838280a3e6276b09105b2c48388a85ff5f2b1d4912d0c254f979985a69fcebd1d15dde109aa73b063cb5149e75e0e3c6d19e80f6fbae85e594823d1de45721889e504b3bbf7475426e8df119599193248b36ed3134b40d3af478b9a8b10a88af43c67c5e2d2211d18c8e74ecc09519ed407bbf5e66b4674cff15636245ffd4c90167561827acf156eab571a746f94fa54c4c08f001a0de9797946c7f8945807fc58da12359a1dc7ea1e297a42876b3d7dab64a0de168353fe2a1d1c37902af94aeee86b35841686f9f2e58d2a22b655494d45d23f1770462829cb7f6ddc4fde3ab9d8288ef2409cebb3d1d9abebd16adca82ab1ed2b4b876a087a01f3f8804a3df7d59ed6286aa85262decf6129fba26f196c7adf83c4f37252401026a8e9f1f65cc3a444bca01e7ccb7cc825c8b7465fdb2b8291e0a201c37582073933dfe3366887affe19b789dea46d62aaa5edb23b7eaee5d98ceca3cc1a78f7df16b781c1fe5d711b0b7ec1d469dc61648246c1f44987f846002d0c171d0e4343c7c1c0c2fe6b619bdf8bdb005754ba50e31ac3bf871b27a2c61dc550e3ee71a871af85dfc3bdcfa1c67de0287100401fcdc4245fc9b3291f11b08895351bbac4a8dd9deec8e826a0139514b3ddb430932ff1def643cf8513e93dbeb802a25cea2c7c1f565ceb2f0eb79ee7e57cc1da23e43d2d0d189e723bbd46375da94b8171b9a1f390df338161e93adc90cb47b9c7ebad41ac20e9369f428b54f6b6a2d2e9082b728ff11d411f0774a3d5bcc6d94b7e50fc9192770d2a4a876109362d27d97d227bf2583122adcaa4b695c856b22d99870f347f22b238f09c7b92ccbf6afe4e1a9dc7fc30b96fa059c6b823f31383d29092acc3d6701b9b888e96622bee575326c9fa99af3159cc850aa40274a6d0222b041136455dd8d308b0c9db2192512eaeb88e88e914fe33d302209e8a97e19584da8418b8ba88b3da9243451a19fafecafcd4e1de3bd80b1ace86e5c16daf13f3853e192f8070759fa530b2a999668b1dec7a417f2d39e2a2ce786318f3c9cd66af8c3ef663dfbd7816de5d85f02b2af847a1710881fd458291bed8c493cb8e840e6da3aac5b6afecf5ef72220afa1950cac7bf9cc52a11497e193692f1e88c2b8d3186c85bf12b5377cf9c54110f00f5ecdff122d2df613dd1b233e0f2f33bce8fd481cd1fe29f93dc04966f28907603d8daebd81a21273a77051e400220c15a4d1c50d62aaee92ae5f4d344321312229a514415d6187c76990e821fd41a024047191906002c080d8705a1e1b1209c52ac7dfb644932ae8f8bd82d379484b95cbd9f66cda4f19d32465d1ea0dafbcbe1d139e73b54381fa2bc787dc50ceef3175dc47eba17ef850fde74af70df697899208d16b875df1c7d7cdf594a93ed31ab8075f42f8f08fd2d04d0cf6ca04de97becc57523de3a6f896381e4350a2508a6d50516522cb6bd38c1ac75f426b397ce298db337cc6bee6c070e36b3efc55b99793a72278435dfc7d518cb63d717a0add9edf3d2f83a448564e2dcee772d0ee6ae2999a49b9689edd33082b1affd83940591ddaa878b6fcad1a46264b7ecb320511451c61f6ab0ae6bf9c5ef3cee105fa48de1a2df8b23cc4ef56894878f07c1bb6612d2d4680396b1f7f59f5821654aac1586450a5fa2654cf478918f6bba6ffc08d8dceb55a8d639782ce8ee52857b772db3c62bef931fa6bd605c109ae667a2c7b1f4e31f9e4dbf233cb117af896f6a0863a3650aa0c35bf47757be6c90aab72facf5dc3da3f2858805bc4d320b43697e67f2aa6d7ec85e7c3e6a8037c345fdd5a8a0b2cb69551744ca29d97d1ec8cb4be7565f7469327550dd34b6cc9e3fbf6df37c9fcf35279c63711b5329ce80f47a5f09a25a2ea3b573dfc942fd1d137b1e97cd33e55f44e26633738304cf8d7dd88bdf171cf603193c27788478956e6f25de2824ef91df8b8bb08a241aa7e1b7ba36668ead34ac24aaeba5ee5b5f06ce4a8d59f41f2fd05938cc8976a5a9f6f57dde377f4f10a83ea647ba79c5f9e85d844974d6dcb7c2deb73ec46b3d3e48f3b05ba478d606796c9a1dcff23b4fba1777ef194bbb7e3cf5d95047938f700089acbd95db1a809aa850602c5ed99b28d62f9c2469bd14a57e88557e88320ee6135d87729782e965870a06389cdb51ea1f8264137e14306c58b10825ff4c69e672a87099110c94fd63cdee4789e32764a38201e0ca85525430c6b2721f2a9ca0600c65ffb4cfcba2c2b1241d4d51f27fc8e986092a1c3e8a87727cd1e53f2051e198be4beca87000afe2e0b0c9d70e9893a36eff18eb3594b8271cb587fc37901848b38975dd8168694d35629e98dca1c4e688f74919dcacc88d559c488fa14ca30720262755c138f5542cebeded98cbae84c1080f5ebaecb3a3855d312e0e8c5b47b6be7b708af1bfecc15d2cc89621cbefbcc2547029eded075eb3a3012fe2ff43fda45daaa1aee34cfc6ff0e03e369828bcab2eab26f6b0dae44712126c0a9407311388b7aceec0cb3e0c1a5681d8c79daa672b7a05eb9bbde2a2d664ee84f84bd9ccad2fd2542e1fc130641fb004603ceb30ce10187a28710c7f289aba10528fff73fbd1f3579356371e8365543526c10cb37288ca27f81f32a5ff6c983d94f2c0b01226a662fb1b79ec8378c65879fff53f166f7c2e3998ed71ff93d10000340376b67d65bdbb2f28ba3a7b78d87b8d089888229bfd66ce7cc116c3e7b92e2ce167cc72b422a1db8084f89cbcffe039cb7502ebf4a4e143444588d241fd78d778629dd7cacb4a2dd2ece6774f2c45bb5fc70c0b15589f223718c298b549afefaf6cb6f012034de6066b46edd06f9f4f7ee5caebdb7d224969908eb312d348db93613891a5401e342dadeab96bdd7d6af843f27a2ef5231abb33cbdbf50f52cf79452b4faed963597f9fa04273bf3c41ffc68302b4bcf00a9d934b78d4fff713d459750ee7639bc738706ef86e94aa7e20a66c607dfeb42f7d3e68d50b74edd481748a0dfcd696cdc19fe1c9dede3495e73f5ea5d794269d0c1ff9c2241b4110bf0cc062d7619743c470a04e66581a2d8b63f636feefdbd3c17393bd39b8e44dbd13518b338d14357e77f977050a4550032e0a9a18e31163073a51dce32517a3d5cbbcee9765556b22c42da12981658e97cd5c00e267f228c5b9f96edfed65baa6e1a4acfabcd8c0ff29265b131337a5a918a144ed9f81ce7ba182c781ffd640a7a632fe51bbed83d313056d8bc7fbcd9f8942a519644235041de89449ef6ebb7d67ba337ce553b8b1ae766e88967904e7c6c7ce2147d6f08b774f2a83528519cbca9fc939b1edb05d67e7621a48a355ba636c97e7f08fac0764d1b02f0340ebdaf3100cf5dd487a620202a9d89528df4759dcda247159a93d26703e9cbc3f16516967748b625f14cc6dd2b2c5500e1d9776e36903cbbb1b885ac36393077089732179ace38c055467bf76c7eec1a198dc4b9b669add29ed4f11a5d3db1c93a2273daf6b0d49b4dedcd0443881e4529bb9ce0f4354ca445b598e8e6932dbf849dfa6761944d37f246bcd914fff1a80c7acc3a33076d7337a6b0bb2d14ea134439f37e2f0ad36cf809a3e953ce2ed4844159c253f4117a5cb080000444800800acaa17499010006557f06be5a6b2dca37d06fa248d0663f7d46dc41f260bc719a85f5dd8f532c7f926cfbca8b7ea378d8a6bbbf3dca37fea97f1233625bb6f3271fbca7cc2d9f22dfb8d53da0f22f32843242bf62a44441daa1c6aa558caac2ad07f771f54a221d134a5ef7b69790b654abfa0bd7dc1ba807fd2d638da2e9cb31e39c6b1147c7975a617ac7e24b74d5b6386a97b22c1e9472ed26f1c8fe2dc9e582fe350be9ee8678af9696134887e96ecfe0e826ae10c5e3444e9b276a3c26370661d79e15f7f63733eab9b8c97c7008c1186655bddc2db111b06627dda37af758c09fba37f3bffa94b8bce779c0f0c1db2d3e2ce12bb4134cd722515562db5706b1e3fc19dd5b575ee84b8ed7e472823ce9b9d184d1d8b54cbc538519d552afd1139bfd8fc93c06cdd61c5fcb777c4992e1f62a8dbfcbdb7848c731570e7820b04096e27adad0be1200f2d6728223bf1dba0a6e23b5a653e2626ca2ee71bf727edea4ef75febc3c7737a25269e45111caed25eaac271c4a7aa533bd62a0bf326ec949f973f08164f5cde77257d5902c6779efd911f087c6afdd6788d43301c9eb678e9c705f346fc9e31297ced7b81cf79190d5251307c648dcff889ee90b3580a5bf8ea51342241e2a8d0384528ecf22898989494e9c250c2859b4139ccbe197677ddb750b5185397501aebf8f850567f5d614240d851b45d57cbc8ce76465b14a00448720e2adb07df10e857f7d61df41d64d3d999b66413958dc5e2d3c08a070e05a91edd35fe1af475b27da90c52762f0428ce9a2f6f8e38648e481271ee81c9dce9407e60fc2a2762ed40b1115141d90fcf28f6a50c3bf7118b84b1812281bdf0440acf1c7dd07bfd007c03f0060cba485eaf7276cd8683f7e15fe0880bb02305d3dcc348137e5240316559bb79fb082ad8c6642cceb2d3f1c39f4650a0728e37c205518b604b1638a4119d77df1bc5f9d9fb6435a4720eadf374050f3f307f80f1eed274592f7a6edf10ca7640deef0a472a9ab30e9c8472be61ec4cdd4a23d71eddbe6d7000b4b09f5befcd8bfb036a108d5e48401f0b31910e5a11278f68ded8f640b3fa8061c9d3b72043484abde73b6f5e3b04d7a8184e3579338d9c0aa23bd4eb4720cc377307e38547b273a1ffc80eec1ea01982500d802e0978a364cc4c5f56b87c79407db59c22b8755842b60b7892dddf748e6470d29fc484ffd48c702608d72ba6268c6f8cdfa1ad8a524714912cdf7616cb94aacd99e7baad32c7ca7a690fa08d124acc8f5b0b324c19cdd08e6b787056de194ec533172bacc9b1a896f8a0ae94545e3d358f7e03a1062def708821720a97d956bca7382eed597eab3fc914973beb195fb96d0cf777d57baafc743344e7cd69c58242721aaa698abdbf41b3eb68775ccdf92ee01b45fb38fb8dcf213053f6d7ed412ebb7819998b2f8a6ad7fba85e0778fb5ccbdfa620a9d673d85ecb01ee8df859368e04ff27674e6cd4ce7630a2619d5c9d1150720867ca62995e57355d7ae83a8f0b7647907997d7a11742d5e3a6d29edc3d2d0f33cb3e2493feaeee4f0616b51acf24eaa57a08c036bff76b84ae3394b5cb43ef8cb09bb09b0ebc2fde717f274631e5061e6e70130ae75187bd0f7605ee14f05f3e8b2b20f0ce6a1c7eeb85e9fa93e88e53f83796406c03f05f3be9d567d0fe6319fe567c21c0d0295d34dcf8e5b634b292d10841b324e355a02f3b7a38f9eead2682c48ea9de68de080e3ab46445d888eaf52d44e22e71936369399189e0cf6b1c7f3a68f5497e4e6500ea73badbe3117b1f9fcad18e86c78937496f8848e311f7a94847facc343ceb04f382446a956f346b465e7ac6a414a762c339e63589d75ba86dad57d470c413d1abfaece88e0e6a6a0fe63ce2c2f0020772d5b72d7b7c3bd6f8dfc512a3ba25209c732ab646fa78baf2c56509b4bd8c6b60fa96a631c57363bde3d0315771103cd9fa8125b2e311d4bc5590d0a771d7ae54c137e477a678164357bdcdb21cd100bb45266aa66965eb30f137e3003cf74bbb066b6458f3b78be08bb56e6be62e3a9e9dd6928ffb7ec5386ceb6c18f39fa87d9a6e91c3fb9dc9053c033f3e179b939dbd0b337f1aff8a752c1131a5a6c082af9f36d4130f555be739a0b9d87e38a0407c4a5fa49dec49572dff92335cb85e27fa959d0f4bfd4acdfc2ff979af59f4fcd3a667a35a9fae8ad3471e2bc4eeee205cc4a8373b03af45a58b5bf0eb892f3b00d74a3f16ee52c6f9baf8ec4911690984ded3da1f050f6bab0507159b579e3d48deb00e0b2e68cbfabbdf4b19174ae14448e95dab6127886925ad96db62fb5758f45e05c785b146ecf891005d7789c9757650cb2662b6f5e2e70124d0fcf6bf44876bf1a5ca9c22a21e5924901fae0df0c5cb00d4ba91c32e78dbd9c4fd22458eac6d6fd92a02d8422abcda7be7b57572afe2d26fbca4921ce3cbdf2c053f34200dfb3b8381241983a490ad1dc9c96ae28e5e795bba0160101dc0ee8a78f5450f49991bfd6dc8ea91889b1a82d79527c3d148b82571d002eaf4585c0df7c0b31c0b790be87b323a237db4de1f44df76deafd6210af65c61119e56556470fe4e3108da239b9f31751305291e9c97a0181ff3cab9a7b49e36bd60cd9105ab721a77067cdb22736b64fa44029f955da2ac229dd2c83a126e55a5ed84b6ce9e99711ae27030e1b7daa609e2f0680e76bcd067f6aed9eec25c11783a5684e3d16820c763a256ea61e7044a59d45a8e4d6def6695643bd694cc65eb43b7e7969e955c6cfe07b781a95dc0a4b6537a1ca8b823e2ed3e44f2f7cd66820add13610269320e688fe64cf67c4cb7743ea8a328d6c0e4850979408c2c8c0f929273c2fb78016245c1cef7363d94b216ba64b542b51f100ecd83a8c37786377224cf22133188abb1e87919265dea8a4330f3fdf8635b4d61281ef2e2957fe18a87ca2c614b5efe3e4a8239987bbdd16f466d22dd3451562f4b4d868f76942a82de33efade0a04451d8890f851f04e1c45b9e5b4ed2b751105172d2c0a06e12ebd3078befd7a5284bcd571a189271da4ca3bdb4fefde736a694ded80d31bdebfe64c3fbdb658957ee83c3aa12c639e909edec496d75bc418adc5f7bc7de9f4ff3ff2f6574d521b8bdf8fe71b2bd0a4d872c08b6f8af58e2ac81c9e3b3d452be54c981e037a5677c88df6a2bf97c98ad0b13929b1dceb929aa244f6ea6160bdb0d2111a6cb75d1f307861778a74261df40dc83ffb80bb9b92b9e2137ee5572b2dfb395625123042a07dc0f3c301a9374e0fbff8908293b2fdc663759a3dfd21b3bfa42231e22d7ba254e851f0e29b523a521193be852292e3f2caa43c1c374430959b2c7ccdebfa932959451bbee90ad8f16fbae2f51ba4454fd0875eeb097ece87e4e7ae835dad685196fd880c5eea40ad1f4b94a03689c6bf3ebffa558d1828617d573a4b4e74f146fbb5cf0ff89d39b3ef4ac4526055304c74953560b4098d823e5a576598528f862808a82cbd987cd8a8f34174a8478dff65be7e780ace8bd2770030b3361d4224b11b6cc4a8ec4322d2acc95bd5794f73e7676764241639a72eac29212ac3588e340ced65022ad6f7f3b13cd8e50da396b1149ede608899b4210afa2f874921df6004a4f691b138063fc2f1bc7aade282c0110fceb39f466c2ac5544021c6a22344838304a18f155925c9716f3015da7ef237ab1df670d2346acf3d83061090ad1390846285b5ef2e0d2ae7b7c8e0c9f8f11c40aabeb9ced01924142a3fe95b4811ae1ec356fd1051859f81818d84ca7975dbfb8b07f50d8f00f8b5fccbd74a3c5362c78b8944b043519626b1c586baaf04ea3e1208fef6b986636f4461def686e732c2462cd179a8e94fb679407c858d07152782707df1200ee800d45f32fdf60120e4b7b1066b7aa0d78021c96b6a82c5b2c789850c279a7a1e309c32988b2669c43c8c447f8fdeaa8af84660e1ca91c96b09061bef06acb5152c24deb39c54b63ddacce160d310b52170716efafb7b509febee259cce759cb66355382df0759ca7b05022f86215ec8f6e31c8fd532fbfc7e488beffc8b0fbe33f6e6f22fa56eadbeb44df9eedc9e291fbc7cfdf02df30a2ef9cc2779f7c2d8caefbbde4bf84c6bfe7c621bebf0fc87d1b19f4bd8cfd8388e0fb9adead9ce13b934400d11f0dfff1ca9ebdddd747ebd80fd76112c828b64b9fa4de8d70f2df5fd55dbaf43e86121d5fe63d28e440d8fc805fc94e3f5535cb7f581a6deca5469b55923bfe974f6dcc31767c4155901b45a80bb7f655f0ab4b867aa96d068a01d4247c4090ff3ba1cdab40d5b09684dcb9897b0ad4a04d5315ca903d396620533360d1bc660b0e2ee917d08c34273937143a6d8a5ec9bdc195b568fb248d9c7dc54c6b85b9647edf6aff51d7f7bdf0a30142a92fa83f2f891ccc5c8cf9fbf18f3381e65d3a9e0a8174619f06d1481faf1673d09933e0363f6bac3afa6bcc19d4854a9c74d57a1379d5b9813bb2e5935106392988caba9bf7144bad551d30eb9cc5d76564193b0edb7ca42033f781fbbd338a78f3215be2d2b5d4de2339a64a9395508bfe9726ddaf11dc84c5a9da7fcd044911283230c246ad35c0d9c7af1562135bc5d87bed3d38c4f884ac22b6db90bbe52689da28278644f5047600eef0974fab57ca28d485ae1f3c62302e3a6135de99b575a49677410557e3a04894c36ce7423169182ccd7fe43d58d824b062454723c92d1db24c37e6e952fa9890f06458db837a79139a4adf009d4a28e50ba5bca1846204611ed018505cd6f3cdcaa35edf6bfd3f749edf83daf2738787a57a8695ec22ca58b69e447fce5f72c5d2ca1f182a2ff329e50e56ae84b29bbf3b1ff6e5e20bf384f8e68e0e37c869a53a7d6e1f0e2bab2d193cb8a8eb654b37fb47ebf037070ceb879a592b960cf2581dc9656d8023e6962493e8e98218936783399ed1275e4c87541d78f4f307411c0cc2bf7da881de750170fb21ebeebfec48fdf5eb6c7e16ff0dfab64051bd016d3520acc2ef128455f9aab85157008358eb507e1c40faebcee9c1b4760ef9a389f51ebc22333c745ae36248d612ee59595a27d6090a5be609c307769f9829430219495e55fe9e4afa3aa57f8d20e502413051b03e3473f0d66daa1236d14e0c3fdd317c75d7c90f6cf7d6a96348b51c6aded5cd83a785bbe0572a75deb13bd961350fab92befaa8df8da716c7199f7c7e56cb21a4ed7b4af4d16f97cb9a6fa0ff37e62451a2bd651fc93df8daa99f22dbbeb1e8df6544140cafa86f7a3ce6abf5887aa0f202279bdbd4d0bd8e74f1c2b2b25a3c4ee9f0640cf0824bd880addbf44eb55c3c7dd73d572691311197f4bc17ca06294fb6547013960174e43a7a1c6257dc87825591ef163db7553b6064457d78916f63f34c29dce78c23ff388eab42673931fa09ea0a9d7d2a77ee07b417ff951b25fe3c154441382afa2328710305887b246110df8ec2214c0a1ac4ba4583bcb0642f61a73764538dbe0b782ea6792ec4b9a49db6734cf4f7ec031acafed9f6e3a299c205df1ea5537a57846e35f0ccadf25733f7f7b1777725b8906478e96ddb94fb8b2ffaa9ea4f07d5a0cce7585c3a97f3de075073685fe33f31477e355fe7070435867bead7a63dd742b2bdc2500b7073b919cf28b28c587f8a858a76a2a2dfd5d36310f881d3eb27650b88820e88fed42018072323f9fa1b7887e40e8bd90e6e8f437a087d29f51601f16d2e10cee55ff7d270203943824715b85f97737e293eacda57cdefe358432ba903690600b8adb98662b039fe71ca531130ec77b8a8e1cce178bc9020e3cf88369f0dae08dcecf373060800210a3e48881c7f2c3f379f6741134bc560f6590aa3485bcd74d16e5b524b4867857c161438d9a09596fa9a41fad1c9daabb38c29abe8fc7a7ccfe78f2864781f37738055ee9ef21cdd6d6ddcef6723b73fba35072a722b0abef1bc4f42caf8b421c1ff29d024368029fc6e91ea519ed513c590a7ce4a2d952a200bddfdcbda894b09171ec7bf552a0e371c3a9eb9769c7e9e236c9a4e3930d965f28f13711de9ff8a4b6661ffd94b66d160d8701c2c000d1de3ffe292d9dfbe0416ea92d7449439f5e89849286f2443c7caf0418dbf457930f2db381dd73a2afceb2bb8f424110afad35ffa4e46de10431addd27609ce88bf8ecca9f404a3c1ea941978d7b3e29bda5659b16b1ce5e7ded53dd429baa10418959a120a0c8bb5bd997f935abcfeea1803a545fb8b8b27dc964b8dae257bdd29427b30af62fac995f67afb8a82ea52e0d2bc637c5d8c839c55255c1f7dbbafa4ceb5a2bd1dab742b85980b6ab7824e25907ddc45f349c299a1bb645a7302615be3ce97c92cde0e662eac9bf1945e6c14bb2ee0efc308ffe8d2e6abadb783b02ab852b2d0b4b091ca1b2b64921ef6eca2d992649f47ca3d8a8ca645fbf57b1995b6ae4a5cf6cbb7ce98951cb11b56ec7e26e9d881af2f915237c7c36782101bb199f6ad1757f3cdcc528e417f2e762cd0480cd43dfb19e3e190767d61e0cd47dbc485dd4c79c242cf1e80ed96390df7db274f0680ee19c7695bea8d82cc4f12d6914570247f94959dd26c630ade4e2b561238a1b702a0e1afa3e1187dbb90f3112672b68b72386e6e787223e56392560585de55a31764882a7806e6a4f1bebf41802cc4ce058c930f6315ce73abddee8f8e198fdd977afeabf77d616863ff56141c432ec07cefefc63bfe56b215dace042ed90bd77ce529131a2dab20ea875245fbbcb743dd79873633d53609f26cf44cb0c3ea095514a0fe4602d4673e2cf327f350665bff848ca02278101e2aa40cf67910ffee39f013eda3bcde400c6461cbeff9d83d4da7f5326b49e729feb0586c912a46cc865babe3667076a0483688fd457941cdb8fa75fe66e3796ee0ccdb7698cf97c9e8d9cbb57e479cb5d86459778df9b95d63be81f7b3c67c97985e79a311129f79f7e173a9c4b3cbe9d0c6dc78702390e6c669ebda01d7e2603c95c7bd93f64f9d231b58bd8ce0ac2ee1b912a047dc0d71c5d3da57452bcfa85c54f2ad926a4f2e65bc52f296ccd30e4b66fec6e4f71d2fececeee225185ffde91defbff3efa97ca7835d3fa550a22c1254f30e0d44bcb55f8212d86ff2078882879052aee4e32bad22c10b3c01f5e60fa55367a28d3262222f3063440e08c199418f88e1d4528f6ea2388343e55216e7cdd7bb139d00273f6c1bfeb9c0c636427b00705a7308c54aa1fff32360e6c4b8d74db9b3d81d6a8f4687463717a957bbc7110831302210ff03e3b5a657a75653e6835ed1210c9ebe68d01d499c8ebe16df934094240fa2b97e3ab3e936c5a4eef008bd8c8246919ce9ca6856ef48a47264ce2cedcd24afff170000ffff68d5119f",
"nonce": 532315,
"network": null
}
}
Copy https://api.expand.network/chain/getgasfees?address=0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
Copy {
"status": 200,
"msg": "success",
"data": {
"totalFeesSpent": "0",
"totalCurrentPrice": "0",
"totalAdjustedPrice": "0",
"transactionList": {
"0x02c33d16d164f1e0bb653e913bb7ff99bea9aaaa68ea505a4c87a4ad1174f245": "21000",
"0x09d0f07f6623e4819e5f428f766d74e51718e044421ecd9edeca8fb47e949f45": "22000"
}
}
}
Copy https://api.expand.network/chain/portfolio?chainId=1&address=0x356dB816602c85e2075774bB77D13995c8Bab023&availableOnly=true
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "2394289843194573",
"erc20": [
{
"name": "USDC",
"symbol": "USDC",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"balance": "997568",
"USDPrice": "0.9998809192420955"
},
{
"name": "Dai",
"symbol": "DAI",
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"balance": "1742207021824890025",
"USDPrice": "NA"
}
]
}
}
Copy https://api.expand.network/chain/getusertransactions?address=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&page=509&chainId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "535",
"currentPage": "509",
"transactions":[
{
"block_signed_at": "2023-11-21T12:04:47Z",
"block_height": 18620016,
"block_hash": "0x1e424e1f2037a4a4bb89cc2614f5ebbba61612806f665f9c9c712a08d284c699",
"tx_hash": "0xd57f92e13f0fad7d6a7540f55cc653d584793aea27be935c78df5759845eaad4",
"tx_offset": 119,
"successful": true,
"miner_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
"from_address": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
"from_address_label": null,
"to_address": "0x388c818ca8b9251b393131c08a736a67ccb19297",
"to_address_label": null,
"value": "25407585008794343",
"value_quote": 49.371036777116664,
"pretty_value_quote": "$49.37",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Ether",
"contract_ticker_symbol": "ETH",
"contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"supports_erc": null,
"logo_url": "https://www.datocms-assets.com/86369/1669653891-eth.svg"
},
"gas_offered": 32000,
"gas_spent": 22111,
"gas_price": 26280311476,
"fees_paid": "581083967045836",
"gas_quote": 1.1291398965184127,
"pretty_gas_quote": "$1.13",
"gas_quote_rate": 1943.1613339098476,
"explorers": [
{
"label": null,
"url": "https://etherscan.io/tx/0xd57f92e13f0fad7d6a7540f55cc653d584793aea27be935c78df5759845eaad4"
}
]
}
]
}
}
Copy https://api.expand.network/chain/getflashbotblocks?chainId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"paris": 1,
"blocks": [
{
"block_number": 18974792,
"miner_reward": "17726971662419410",
"fee_recipient_eth_diff": "17726971662419410",
"miner": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"fee_recipient": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"coinbase_transfers": "0",
"eth_sent_to_fee_recipient": "0",
"gas_used": 8039689,
"gas_price": "2204932511",
"effective_priority_fee": "2204932511",
"transactions": [
{
"transaction_hash": "0xa34125f19982fdcd8f8ac012b7924ecf145d9f1c5a5aae060b68e7d0b403c491",
"tx_index": 0,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974792,
"eoa_address": "0x5DB4b98e3deF62f0fce1267Db1d77639C43C3B14",
"to_address": "0x77E06c9eCCf2E797fd462A92B6D7642EF85b0A44",
"gas_used": 106331,
"gas_price": "31119562123",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "3308974160100713",
"fee_recipient_eth_diff": "3308974160100713"
},
{
"transaction_hash": "0x5719b3ee2891cd3d4bdbcf3d5d3b41fb2f68f3e027ee825b84ca4b6b51ddef8d",
"tx_index": 0,
"bundle_type": "mempool",
"bundle_index": 1,
"block_number": 18974792,
"eoa_address": "0xFB12622b729599db9c30469bD36787cA2e9413c3",
"to_address": "0x04d44A44E0be0a692938baeC467F22c4dBDF719b",
"gas_used": 21000,
"gas_price": "17607123388",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "369749591148000",
"fee_recipient_eth_diff": "369749591148000"
}
]
},
{
"block_number": 18974736,
"miner_reward": "24107460683890845",
"fee_recipient_eth_diff": "24107460683890845",
"miner": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"fee_recipient": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"coinbase_transfers": "0",
"eth_sent_to_fee_recipient": "0",
"gas_used": 17311402,
"gas_price": "1392577024",
"effective_priority_fee": "1392577024",
"transactions": [
{
"transaction_hash": "0xa049c8a8ce354fca67277d7218fd4b70c798d6c92d7e2ab5779d644187dfa0bb",
"tx_index": 0,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974736,
"eoa_address": "0x000812de2241aB594aE154060028F70F39DAE000",
"to_address": "0x00fa0B420C3119F473c2463104FB9d4E91E445af",
"gas_used": 21000,
"gas_price": "26962839990",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "566219639790000",
"fee_recipient_eth_diff": "566219639790000"
},
{
"transaction_hash": "0x09486a4e90887c631f3dbb2f33a4c0d700f7079e48eba48580f4d74ade51f5fc",
"tx_index": 1,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974736,
"eoa_address": "0x00fa0B420C3119F473c2463104FB9d4E91E445af",
"to_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"gas_used": 47018,
"gas_price": "26962839990",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "1267738810649820",
"fee_recipient_eth_diff": "1267738810649820"
}
]
}
],
"latest_block_number": 18974792
}
}
Copy https://api.expand.network/chain/getflashbottransactions?chainId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"transaction_hash": "0xbcf55b7e9488135c12f3e70bd2a191cc19913475de6937f54cb9843865416391",
"tx_index": 0,
"bundle_index": 21,
"block_number": 18975317,
"eao_address": "0x2aC74Bd02EE017fa05629432Dd3728720c455032",
"to_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"gas_used": 30428,
"gas_price": "10000002",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "304280060856",
"fee_recipient_eth_diff": "304280060856"
},
{
"transaction_hash": "0xd441a44e2adf57f0d53e027d4441cdfee8653cd7f259ec0c90b60ea144b31d32",
"tx_index": 0,
"bundle_index": 20,
"block_number": 18975317,
"eao_address": "0x758aC3DC8FB6F939adf42bB83e717f94619052f5",
"to_address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"gas_used": 118712,
"gas_price": "11300000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "1341445600000",
"fee_recipient_eth_diff": "1341445600000"
},
{
"transaction_hash": "0x02cbeb153f91225abcdad3cd4d39d457b5e13f3fb1191f26c73c328c50f54071",
"tx_index": 0,
"bundle_index": 19,
"block_number": 18975317,
"eao_address": "0x4a25D28d10B02BCF13a16068F56d167D8F96d093",
"to_address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"gas_used": 181502,
"gas_price": "12500000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "2268775000000",
"fee_recipient_eth_diff": "2268775000000"
},
{
"transaction_hash": "0x2b89ed3dbfe8946229468f33e31ed447631c192906344b7c62b6e927a7a5a512",
"tx_index": 12,
"bundle_index": 18,
"block_number": 18975317,
"eao_address": "0x4960DC043DDc244A02192898B3e2F1730194F0ac",
"to_address": "0xf2B2420CEff184EEc76B3de15bd90C5734e45449",
"gas_used": 21000,
"gas_price": "10000001",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "210000021000",
"fee_recipient_eth_diff": "210000021000"
}
],
"latest_block_number": 18975317
}
}
Copy https://api.expand.network/chain/getflashbotbundle?bundleHash=0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"transaction_hash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a",
"tx_index": 0,
"bundle_index": 3,
"block_number": 9091437,
"eao_address": "0x8D460B72eaF3d63830E16C22d1Fc6908D0834Abe",
"to_address": "0x8D460B72eaF3d63830E16C22d1Fc6908D0834Abe",
"gas_used": 21000,
"gas_price": "1000000000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "21000000000000",
"fee_recipient_eth_diff": "21000000000000"
}
]
}
}
Copy {
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
Copy {
"chainId": "1",
"rawTransaction": "0xf8672385070e93c2cf8261a8946fb447ae94f5180254d436a693907a1f57696900830186a08026a0544037b4bd1f139c5d5cbc926d239f4eff34ecc428872e9ba576d6b921254c15a014e0e56c6b2d752d03e059098d69b59b26063a8767bcd1cfc00fc0e9e7ab8365",
"bdnTransaction": true
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"txHash": "65f59305a9e6f684c8e680dce60c613484a72c61c844be5666e21fccd8a2a53f"
}
}
Copy {
"chainId":"1",
"rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
"mevProtection": true
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"txHash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a"
}
}
Copy {
"contractAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"methodName": "getAmountsIn",
"parameters": [
"4515444785",
[
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
]
]
}
Copy {
"status": 200,
"msg": "success",
"data": {
"getAmountsIn": [
"2425265",
"4515444785"
]
}
}
Copy {
"chainId" : "1",
"rawTransaction":"0xf865808509c9919d87830a4a1194a67e9b68c41b0f26184d64c26e0b2b81466e5994018025a07542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015a005f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x09c9919d87"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a4a11"
},
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0x01"
},
"data": "0x",
"chainId": 1,
"v": 37,
"r": "0x7542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015",
"s": "0x05f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049",
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"hash": "0x5c3ef8d1720f481a6dbeb58f4d6cb404f9e2b6f31ba52ba5c8df48142b9e2ad3",
"type": null
},
"assetChanges": {
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0x01"
}
}
}
}
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Remote procedural call URL.
The block number or block hash.
Remote procedural call URL.
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Remote procedural call URL.
Remote procedural call URL.
Starting block of the range by default it is latestblock-100
Last block of the range
by default it is latest block
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Remote procedural call URL.
The public address of the user.
The page number that the user wants to fetch.
The transaction sorting order.
asc or desc.
By default, desc.
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
If true, then txn goes through the bdn route, which speeds up the transaction process.
By default, false.
If true, then txn goes through flashbots.
Remote procedural call URL.
Address of the Contract to perform read operation on.
Parameters to the read function
Abi of the smart contract
Name of the read function to be called
BlockNumber to perform read query on. by Default latestBlock
The raw transaction to be given for decoding.
Binance Smart chain /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x685B1ded8013785d6623CC18D214320b6Bb64759&chainId=56
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "89692123976040652"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?chainId=56&blockNumber=30265549
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "2",
"gasLimit": 140000000,
"gasUsed": 11317448,
"hash": "0x584630b7b93f2279d6a0d37da69a12647511df50b49cf3351837abad7d4af015",
"miner": "0x685B1ded8013785d6623CC18D214320b6Bb64759",
"nonce": "0x0000000000000000",
"number": 25255572,
"parentHash": "0x6f0ed227631616c7bda0b47a814d2b469adc72e38d67386f7e7ebe022b0f18ab",
"size": 33054,
"timestamp": 1675147620,
"totalDifficulty": "50196335",
"transactions": [
"0x1da5b0d1f450f75b3f6a3b5965380c98aef573a93a4f1ed59fa35b7dc3b52156",
"0x198bfeacb68713e6a7bde94306a20a91ddbe59ecef68f2cc9d7721006f546d7c",
"0x8e10681572d5fc47e5fa6b30c81ffd816e0ad9eea685fb80c648f1ba50edfdf3",
"0xedec3ddc5243f5a0928d20ffa1d92ca923d96ca93745587088340caf69435781",
"0x36f77d611d197ae5ab05a6cdd93ce2058b81b0448dd3f1f5b61d0808f80f634e",
"0x745a521ed39f66dcc6604b25025ee84dd3b00b780e930bd8c00d113e89b220ad",
"0xdd33878102eb13c04e2dcafc9cf46cfecb322645eb90543caba9c7798deabc40",
"0xc857b18d735fa32d93f980a365127b9190c27a3452113ecfdc186817bd4498b7"
],
"transactionsRoot": "0x8b64f0c547fd39882944ed9896b70997e8be6b0e599430ef1800193d65892b5d",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=56
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "5000000000"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=56&address=0xb22069baEf86655460F56CD73d7EC999B5DA6B73
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000004373275b113f2e45cb45ae9eab1e6d3ef1ca185c"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=56&transactionHash=0x5834a0ef28b7f58044d183e2ceb140365c5e5329d6364ca8f5ad8d29d7838715
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0x8a374e4a90b4c7d029ebf522477114e4149e936b8875e702bd380b0bcbe2b013",
"transactionStatus": null,
"blockNumber": 25255642,
"timestamp": null,
"from": "0xfc41Ccf23B75B936a15CB2DD8034feB41e6677e3",
"to": "0xb22069baEf86655460F56CD73d7EC999B5DA6B73",
"value": "0",
"transactionFees": "2500000000000000",
"gas": 500000,
"gasPrice": "5000000000",
"input": "0x095ea7b300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": 0,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=56&address=0x9ef9f4360c606c7AB4db26b016007d3ad0aB86a0&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "100000000000000000",
"evmTokens": [
{
"name": "Pelican Trust (Save The Pelicans)",
"symbol": "PTRST",
"decimals": "9",
"address": "0x2a3a5011d4a43e3966ac061762d476bcb54289c2",
"balance": "1000000015646852",
"assetType": "ERC20",
"USDPrice": "566.4003103654223"
},
{
"name": "AI Avail",
"symbol": "AI-A",
"decimals": "6",
"address": "0xd048b4c23af828e5be412505a51a8dd7b37782dd",
"balance": "23000000000",
"assetType": "ERC20",
"USDPrice": "0.7034536653118537"
},
{
"name": "eCash",
"symbol": "XEC",
"decimals": "6",
"address": "0x5f7a1a4dafd0718caee1184caa4862543f75edb1",
"balance": "29000000000000",
"assetType": "ERC20",
"USDPrice": "0.000061525764023246"
},
{
"name": "Minereum BSC",
"symbol": "MNEB",
"decimals": "8",
"address": "0xd22202d23fe7de9e3dbe11a2a88f42f4cb9507cf",
"balance": "15000000000000",
"assetType": "ERC20",
"USDPrice": "0.002957114417754845"
},
{
"name": "Volt Token",
"symbol": "VLT",
"decimals": "9",
"address": "0x3f413df715251814d2ce25dcf74c8e94f3b40b67",
"balance": "2188732955437000000000",
"assetType": "ERC20",
"USDPrice": "9.97635e-13"
},
{
"name": "RGDC Token",
"symbol": "RGDC",
"decimals": "18",
"address": "0x64434605adac8f5441029133fd12c4289fc8b4a8",
"balance": "1000000000000000000",
"assetType": "ERC20",
"USDPrice": "0.03271055525971668"
},
{
"name": "superspreader.info",
"symbol": "SPRD",
"decimals": "18",
"address": "0xd4e4d228eafb1ca8897c7e9cc9992fe3a0b8693c",
"balance": "8802832521443043712",
"assetType": "ERC20",
"USDPrice": "0.000008618710042535"
},
{
"name": "AIR",
"symbol": "AIR",
"decimals": "18",
"address": "0xd8a2ae43fd061d24acd538e3866ffc2c05151b53",
"balance": "10000000000000000000000",
"assetType": "ERC20",
"USDPrice": "7.5981e-14"
},
{
"name": "BLESS",
"symbol": "GOD",
"decimals": "0",
"address": "0x81a7571fabb0e1e3a6a2d815f054d503dc649f42",
"balance": "255",
"assetType": "ERC20",
"USDPrice": null
},
{
"name": "My Get Rich Token",
"symbol": "MGRT",
"decimals": "18",
"address": "0x71753d0586ea6b979dfccbb492a45e611e0e0ad6",
"balance": "120000576000000000000000",
"assetType": "ERC20",
"USDPrice": null
},
{
"name": "! Kuroro.gg",
"symbol": "KURO [www.kuroro.gg]",
"decimals": "18",
"address": "0x31217006cb5515f0f5358a00b83847861c0d27c6",
"balance": "1391842000000000000000000",
"assetType": "ERC20",
"USDPrice": null
},
{
"name": "Airdrop at 3000usdc.us 🎁",
"symbol": "Airdrop at [3000usdc.us]",
"decimals": "0",
"address": "0xac08ac192dff5d0865806c3700006849162f5d34",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "1"
},
{
"name": "Airdrop at 3000usdc.us 🎁",
"symbol": "Airdrop at [3000usdc.us]",
"decimals": "0",
"address": "0x3a193b2a0b2eeee6e0c1cdc05c4a75bc4efb8845",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "1"
},
{
"name": "SHA256 Miner",
"symbol": "SHA256Miner",
"decimals": "0",
"address": "0x322d1f74defab8700ddafc3b3369186f03c81a92",
"balance": "1",
"assetType": "ERC721",
"tokenId": "1249"
},
{
"name": "SHA256 Miner",
"symbol": "SHA256Miner",
"decimals": "0",
"address": "0x07e8d4b6f3f849d919f172150108d24ac7e548f2",
"balance": "1",
"assetType": "ERC721",
"tokenId": "1253"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Remote procedural call URL.
The public address of the user.
The page number that the user wants to fetch.
The transaction sorting order.
asc or desc.
By default, desc.
Sample Request
Copy https://api.expand.network/chain/getusertransactions?address=0xee226379dB83CfFC681495730c11fDDE79BA4c0C&page=1420&sortOrder=asc&chainId=56
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "1453",
"currentPage": "1420",
"transactions": [
{
"block_signed_at": "2023-11-21T05:49:15Z",
"block_height": 33678471,
"block_hash": "0xd6cddc805be39b84bef1926f391abfcb51890a119dde01d5508b90a5e8a0b441",
"tx_hash": "0xe956b223bdf04f977251db110e1b540b6214c5a960eee22e7f9b049d581a4bc9",
"tx_offset": 130,
"successful": true,
"miner_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
"from_address": "0xee226379db83cffc681495730c11fdde79ba4c0c",
"from_address_label": null,
"to_address": "0x0000000000000000000000000000000000001000",
"to_address_label": null,
"value": "55907510455990511",
"value_quote": 12.715772291108797,
"pretty_value_quote": "$12.72",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Binance Coin",
"contract_ticker_symbol": "BNB",
"contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"supports_erc": null,
"logo_url": "https://www.datocms-assets.com/86369/1670003808-binance-smart-chain-icon-white.svg"
},
"gas_offered": 9223372036854776000,
"gas_spent": 34135,
"gas_price": 0,
"fees_paid": "0",
"gas_quote": 0,
"pretty_gas_quote": "$0.00",
"gas_quote_rate": 227.4430069841591,
"explorers": [
{
"label": null,
"url": "https://bscscan.com/tx/0xe956b223bdf04f977251db110e1b540b6214c5a960eee22e7f9b049d581a4bc9"
}
]
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "56",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "56",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "56",
"rawTransaction": "0xf86a80843b9aca00830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a51000808193a0d10d1098d97c6ee39ef89aeccfce05e5c736da024f5a6d9973fb0cfffd585e95a006117e1c44a882403df404cd8509c5bc7f8bd0f9425d306c46c6642d0ebb3f82"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
},
"data": "0x",
"chainId": 56,
"v": 147,
"r": "0xd10d1098d97c6ee39ef89aeccfce05e5c736da024f5a6d9973fb0cfffd585e95",
"s": "0x06117e1c44a882403df404cd8509c5bc7f8bd0f9425d306c46c6642d0ebb3f82",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"hash": "0xc646c843f859ad3478ff4ce9d31a17917b474b99d7c5ba81491197af4006dbf6",
"type": null
},
"assetChanges": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
}
}
}
}
Avalanche - X /getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Avalanche - C /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
Avalanche - P /gethistoricalrewards
Get the historical transaction details focusing on staking rewards for a specific user address.
GET
https://api.expand.network/chain/gethistoricalrewards
Query Parameters
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Copy https://api.expand.network/chain/getusertransactions?chainSymbol=X-AVAX&address=avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"txHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
"chainFormat": "linear",
"blockHash": "hLFoBAsNpSvURSzgrd2DoB2f5Zr9zRt9jtfPcDtu7Hr8esRr8",
"txType": "ExportTx",
"timestamp": 1701683089,
"sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"destinationChain": "11111111111111111111111111111111LpoYY",
"memo": "0x",
"consumedUtxos": [
{
"addresses": [
"avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
],
"utxoId": "2dKqf9Hu82YryDU92qztDpQgxhkMfZBXEzBifMwxUsirce8LC4",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "959500419"
},
"utxoType": "transfer",
"outputIndex": "1",
"timestamp": 1701683089,
"creationTxHash": "xu3EKKVrFsNZBZNM3XQHwy5Hk9w8PYtuxuvmgdverGzAMXVSK",
"consumingTxHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
"consumingTxTimestamp": 1701683089,
"locktime": 0,
"threshold": 1,
"createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"credentials": [
{
"publicKey": "A6rT2g4cHByzSOLz+Mrx+ONJCEbmfioBs8wmia9yy/yQ",
"signature": "gR36XcB+V4tglUGlw5gdm7Ega14VPDZW29lSyo6HZNV9A8CaOTVxhz8gIDOGS+dsFnZ0Tc/ZMmMTxzjUrwKbjQE"
}
]
}
],
"emittedUtxos": [
{
"addresses": [
"avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
],
"utxoId": "HXQN6KqpXerAEtYu2yThUcyRcaYcLfRgemftQYZk9ntGUfKEm",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "958500419"
},
"utxoType": "transfer",
"outputIndex": "0",
"timestamp": 1701683089,
"creationTxHash": "2n83BAtdJtoy879aXZUy7eaeHqzj3xnVqiqUaHwGgBszchtRaz",
"consumingTxHash": "sq17XDAKyUo7PbCXgRLjG1bntT5fnBZResbDbpSTkKdn1juCf",
"consumingTxTimestamp": 1701683096,
"locktime": 0,
"threshold": 1,
"createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"credentials": [
{
"publicKey": "A6rT2g4cHByzSOLz+Mrx+ONJCEbmfioBs8wmia9yy/yQ",
"signature": "C7A8FaG+WLn+f6aMUdhzEcQHi8fFiBF7+fOw/PDwcOsvInV9DlFuUEkCkuUDSFBJjZQlmHqWjEHuNEv8HczMNQA"
}
]
}
],
"amountUnlocked": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "959500419"
}
],
"amountCreated": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "958500419"
}
],
"blockNumber": 201271
}
],
"nextPageToken": "a3fb08da-29df-460c-9125-f574364cf298"
}
}
Copy https://api.expand.network/chain/getbalance/?address=0x4dd1fed9BeE6eD79088093d55d7fCb8490CDf7Ea&chainId=43114
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "67665156116856663"
}
}
Copy https://api.expand.network/chain/getblock?blockNumber=33058810&chainId=43114
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "1",
"gasLimit": 8000000,
"gasUsed": 2327118,
"hash": "0x0ae0aacb219dab7fe5574966eaca9e92698049148174a15484b51dc4ee6cec88",
"miner": "0x0100000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 25255572,
"parentHash": "0x260bb0454ac742687e101eb638e3f69633fa12829e967b7f2dca3f6eec3e4e4a",
"size": 7844,
"timestamp": 1674363743,
"totalDifficulty": "25255572",
"transactions": [
"0x7d2692db5cddb2a717f31d6608a5708ec42c3f82cfa321065b3f389dc9542145",
"0xe1979d6eac109509b853d91fa7c309cd2a0ca3524102baa9be40f89151128ed1"
],
"transactionsRoot": "0xab77441ac18ab2ee0dbd96152e43730aa8b8bd3a1e3a65ddf442d0f755a3b78f",
"uncles": []
}
}
Copy https://api.expand.network/chain/getgasprice?chainId=43114
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "25000000000"
}
}
Copy https://api.expand.network/chain/getstorage?chainId=43114&address=0x919dF3aDbF5cfC9fcfd43198EDFe5aA5561CB456
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000002313f80d53c649c7b2c9c4d101b796f34cbe80f3"
}
}
Copy https://api.expand.network/chain/gettransaction?chainId=43114&transactionHash=0x832963961420faccbce52926d3dbe27e435ea916ccc7debb65c855cd18120143
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xc5739294762ea30306d2891210fc997e50e8d9a146c3bc9049b05694a2577873",
"transactionStatus": null,
"blockNumber": 25638459,
"timestamp": null,
"from": "0x2313f80D53c649c7B2c9c4D101b796F34cBE80F3",
"to": null,
"value": "0",
"transactionFees": "69359125000000000",
"gas": 2774365,
"gasPrice": "25000000000",
"input": "0x60c06040523480156200001157600080fd5b5060405162003189380380620031898339810160408190526200003491620001a2565b6200003f3362000127565b600180556001600160a01b038216158015906200006457506001600160a01b03811615155b620000b55760405162461bcd60e51b815260206004820181905260248201527f4164647265737365732063616e6e6f74206265207a65726f2061646472657373604482015260640160405180910390fd5b606082901b6001600160601b031916608052600380546001600160a01b0319166001600160a01b038316179055604051620000f09062000177565b604051809103906000f0801580156200010d573d6000803e3d6000fd5b5060601b6001600160601b03191660a05250620001da9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105cd8062002bbc83390190565b80516001600160a01b03811681146200019d57600080fd5b919050565b60008060408385031215620001b657600080fd5b620001c18362000185565b9150620001d16020840162000185565b90509250929050565b60805160601c60a05160601c6129a8620002146000396000818161015c01528181610e9e01526118c00152600061010b01526129a86000f3fe6080604052600436106100cb5760003560e01c80637ecebe0011610074578063e58610841161004e578063e58610841461024f578063f2fde38b1461026f578063fc171d911461028f57600080fd5b80637ecebe00146101e35780638da5cb5b1461021e578063916a3bd91461023c57600080fd5b80633967048b116100a55780633967048b1461017e578063715018a6146101ae57806376cdb03b146101c357600080fd5b8063090d23b9146100d757806317fcb39b146100f95780631802553e1461014a57600080fd5b366100d257005b600080fd5b3480156100e357600080fd5b506100f76100f2366004612025565b6102a2565b005b34801561010557600080fd5b5061012d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015657600080fd5b5061012d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561018a57600080fd5b5061019e6101993660046122be565b6103ae565b6040519015158152602001610141565b3480156101ba57600080fd5b506100f761076b565b3480156101cf57600080fd5b5060035461012d906001600160a01b031681565b3480156101ef57600080fd5b506102106101fe366004612025565b60026020526000908152604090205481565b604051908152602001610141565b34801561022a57600080fd5b506000546001600160a01b031661012d565b6100f761024a366004612192565b61077f565b34801561025b57600080fd5b506100f761026a366004612216565b6108c3565b34801561027b57600080fd5b506100f761028a366004612025565b610a2d565b6100f761029d3660046120fe565b610abd565b6102aa610bed565b6001600160a01b038116158015906102cb57506001600160a01b0381163014155b6103425760405162461bcd60e51b815260206004820152603a60248201527f42616e6b20616464726573732063616e6e6f74206265207a65726f206164647260448201527f657373206f72205769646f20526f75746572206164647265737300000000000060648201526084015b60405180910390fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb2612440679060200160405180910390a150565b600080604051602001610430907f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c616464726573732060208201527f766572696679696e67436f6e7472616374290000000000000000000000000000604082015260520190565b60408051601f198184030181528282528051602091820120908301527fe18799aceb0d5c1134b671173b8112a3ebcbe15aaef1b5bf23f47082a09df0ec908201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c001604051602081830303815290604052805190602001209050600061052d826104d6896104d1906127cf565b610c47565b6040517f190100000000000000000000000000000000000000000000000000000000000060208201526022810192909252604282015260620160405160208183030381529060405280519060200120878787610e04565b90506001600160a01b0381161580159061056757506001600160a01b03811661055c6060890160408a01612025565b6001600160a01b0316145b6105b35760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610339565b600260006105c760608a0160408b01612025565b6001600160a01b031681526020810191909152604001600020546105f16080890160608a01612334565b63ffffffff16146106445760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206e6f6e6365000000000000000000000000000000000000006044820152606401610339565b61065460a0880160808901612334565b63ffffffff16158061067b575061067160a0880160808901612334565b63ffffffff164211155b6106c75760405162461bcd60e51b815260206004820152600f60248201527f45787069726564207265717565737400000000000000000000000000000000006044820152606401610339565b60005b6106d488806125c0565b905081101561075d57366106e889806125c0565b838181106106f8576106f8612946565b905060400201905060008160200135116107545760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e742073686f756c642062652067726561746572207468616e2030006044820152606401610339565b506001016106ca565b506001979650505050505050565b610773610bed565b61077d6000610e2c565b565b600260015414156107d25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b60026001556107e76060860160408701612025565b6001600160a01b0316336001600160a01b0316146108475760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964206f72646572207573657200000000000000000000000000006044820152606401610339565b61086385858561085d6060840160408501612025565b86610e94565b6001600160a01b038116337f1ac24a2fc0a341cfcb02105ee08de6110d72cdf0d2b78fe9136f5da301eb9091876108a06060820160408301612025565b866040516108b0939291906124b8565b60405180910390a3505060018055505050565b600260015414156109165760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b6002600155610927888686866103ae565b6109735760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206f72646572000000000000000000000000000000000000006044820152606401610339565b6002600061098760608b0160408c01612025565b6001600160a01b03168152602081019190915260400160009081208054916109ae836128ff565b909155506109ca905088888861085d6060840160408501612025565b6001600160a01b038116337f1ac24a2fc0a341cfcb02105ee08de6110d72cdf0d2b78fe9136f5da301eb90918a610a076060820160408301612025565b86604051610a17939291906124b8565b60405180910390a3505060018055505050505050565b610a35610bed565b6001600160a01b038116610ab15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610339565b610aba81610e2c565b50565b60026001541415610b105760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610339565b6002600155610b256060870160408801612025565b6001600160a01b0316336001600160a01b031614610b855760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964206f72646572207573657200000000000000000000000000006044820152606401610339565b610b928686868686610e94565b806001600160a01b0316336001600160a01b03167f1ac24a2fc0a341cfcb02105ee08de6110d72cdf0d2b78fe9136f5da301eb9091888686604051610bd9939291906124b8565b60405180910390a350506001805550505050565b6000546001600160a01b0316331461077d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610339565b6000604051602001610d60907f4f72646572284f72646572496e7075745b5d20696e707574732c4f726465724f81527f75747075745b5d206f7574707574732c6164647265737320757365722c75696e60208201527f743332206e6f6e63652c75696e7433322065787069726174696f6e294f72646560408201527f72496e707574286164647265737320746f6b656e416464726573732c75696e7460608201527f32353620616d6f756e74294f726465724f75747075742861646472657373207460808201527f6f6b656e416464726573732c75696e74323536206d696e4f7574707574416d6f60a08201527f756e74290000000000000000000000000000000000000000000000000000000060c082015260c40190565b60405160208183030381529060405280519060200120610d838360000151611267565b610d9084602001516113c1565b604080860151606087015160808801519251610de79695949390602001958652602086019490945260408501929092526001600160a01b0316606084015263ffffffff90811660808401521660a082015260c00190565b604051602081830303815290604052805190602001209050919050565b6000806000610e15878787876114eb565b91509150610e22816115d8565b5095945050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166377fc3fa8610ed36060880160408901612025565b610edd88806125c0565b6040518463ffffffff1660e01b8152600401610efb93929190612432565b600060405180830381600087803b158015610f1557600080fd5b505af1158015610f29573d6000803e3d6000fd5b5050505060005b610f3a86806125c0565b905081101561108d5736610f4e87806125c0565b83818110610f5e57610f5e612946565b6040029190910191506000905080610f796020840184612025565b6001600160a01b03161415610f8f575047611018565b610f9c6020830183612025565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610fdd57600080fd5b505afa158015610ff1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611015919061231b565b90505b816020013581101561106c5760405162461bcd60e51b815260206004820152601f60248201527f42616c616e6365206c6f776572207468616e206f7264657220616d6f756e74006044820152606401610339565b61108361107c6020840184612025565b82866117c9565b5050600101610f30565b506110988484611884565b60005b6110a860208701876125c0565b905081101561125f57366110bf60208801886125c0565b838181106110cf576110cf612946565b604002919091019150600090506110e96020830183612025565b6001600160a01b0316141561115d57476020820135811015611144576040517f76baadda0000000000000000000000000000000000000000000000000000000081526020830135600482015260248101829052604401610339565b6111576001600160a01b03861682611c60565b50611256565b600061116c6020830183612025565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b1580156111ad57600080fd5b505afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e5919061231b565b90508160200135811015611232576040517f76baadda0000000000000000000000000000000000000000000000000000000081526020830135600482015260248101829052604401610339565b61125485826112446020860186612025565b6001600160a01b03169190611cbb565b505b5060010161109b565b505050505050565b600080825167ffffffffffffffff8111156112845761128461295c565b6040519080825280602002602001820160405280156112ad578160200160208202803683370190505b50905060005b835181101561139157604051602001611315907f4f72646572496e707574286164647265737320746f6b656e416464726573732c81527f75696e7432353620616d6f756e742900000000000000000000000000000000006020820152602f0190565b6040516020818303038152906040528051906020012084828151811061133d5761133d612946565b602002602001015160405160200161135692919061245e565b6040516020818303038152906040528051906020012082828151811061137e5761137e612946565b60209081029190910101526001016112b3565b50806040516020016113a391906123ac565b60405160208183030381529060405280519060200120915050919050565b600080825167ffffffffffffffff8111156113de576113de61295c565b604051908082528060200260200182016040528015611407578160200160208202803683370190505b50905060005b83518110156113915760405160200161146f907f4f726465724f7574707574286164647265737320746f6b656e4164647265737381527f2c75696e74323536206d696e4f7574707574416d6f756e742900000000000000602082015260390190565b6040516020818303038152906040528051906020012084828151811061149757611497612946565b60200260200101516040516020016114b092919061245e565b604051602081830303815290604052805190602001208282815181106114d8576114d8612946565b602090810291909101015260010161140d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561152257506000905060036115cf565b8460ff16601b1415801561153a57508460ff16601c14155b1561154b57506000905060046115cf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561159f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115c8576000600192509250506115cf565b9150600090505b94509492505050565b60008160048111156115ec576115ec612930565b14156115f55750565b600181600481111561160957611609612930565b14156116575760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610339565b600281600481111561166b5761166b612930565b14156116b95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610339565b60038160048111156116cd576116cd612930565b14156117415760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610339565b600481600481111561175557611755612930565b1415610aba5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610339565b606481111561181a5760405162461bcd60e51b815260206004820152601060248201527f466565206f7574206f662072616e6765000000000000000000000000000000006044820152606401610339565b600061271061182983856127b0565b611833919061278e565b9050801561187e576001600160a01b0384166118645760035461185f906001600160a01b031682611c60565b61187e565b60035461187e906001600160a01b03868116911683611cbb565b50505050565b60005b81811015611c5b57368383838181106118a2576118a2612946565b90506020028101906118b49190612651565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166118f06040830160208401612025565b6001600160a01b0316141561196d5760405162461bcd60e51b815260206004820152602860248201527f5769646f3a20666f7262696464656e2063616c6c20746f205769646f546f6b6560448201527f6e4d616e616765720000000000000000000000000000000000000000000000006064820152608401610339565b6000808061197e6020850185612025565b6001600160a01b03161415611994575047611a95565b5060006119a46020840184612025565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b1580156119e557600080fd5b505afa1580156119f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1d919061231b565b915060008211611a6f5760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682062616c616e636520666f72207468652073746570006044820152606401610339565b611a95611a7f6020850185612025565b611a8f6040860160208701612025565b84611d5a565b60606000611aa860808601868401612047565b60030b12611b4b576000611ac26080860160608701612047565b60030b9050611ad4604086018661260a565b611ae291839160009161274c565b60408051602081018890520160408051601f19818403018152918152611b0a9089018961260a565b611b15866020612776565b611b2092829061274c565b604051602001611b349594939291906123e2565b604051602081830303815290604052915050611b90565b611b58604085018561260a565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293505050505b600080611ba36040870160208801612025565b6001600160a01b03168484604051611bbb9190612416565b60006040518083038185875af1925050503d8060008114611bf8576040519150601f19603f3d011682016040523d82523d6000602084013e611bfd565b606091505b509150915081611c4957604481511015611c1657600080fd5b60048101905080806020019051810190611c30919061206a565b60405162461bcd60e51b81526004016103399190612485565b50506001909401935061188792505050565b505050565b600080600080600085875af1905080611c5b5760405162461bcd60e51b815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152606401610339565b60006040517fa9059cbb000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061187e5760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610339565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0383811660248301528491839183169063dd62ed3e9060440160206040518083038186803b158015611dbe57600080fd5b505afa158015611dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df6919061231b565b101561187e5761187e6001600160a01b0382168460001960006040517f095ea7b3000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061187e5760405162461bcd60e51b815260206004820152600e60248201527f415050524f56455f4641494c45440000000000000000000000000000000000006044820152606401610339565b80356001600160a01b0381168114611ec357600080fd5b919050565b600082601f830112611ed957600080fd5b81356020611eee611ee9836126df565b6126ae565b80838252828201915082860187848660061b8901011115611f0e57600080fd5b60005b85811015611f3857611f238983611f91565b84529284019260409190910190600101611f11565b5090979650505050505050565b60008083601f840112611f5757600080fd5b50813567ffffffffffffffff811115611f6f57600080fd5b6020830191508360208260051b8501011115611f8a57600080fd5b9250929050565b600060408284031215611fa357600080fd5b6040516040810181811067ffffffffffffffff82111715611fc657611fc661295c565b604052905080611fd583611eac565b8152602083013560208201525092915050565b600060a08284031215611ffa57600080fd5b50919050565b803563ffffffff81168114611ec357600080fd5b803560ff81168114611ec357600080fd5b60006020828403121561203757600080fd5b61204082611eac565b9392505050565b60006020828403121561205957600080fd5b81358060030b811461204057600080fd5b60006020828403121561207c57600080fd5b815167ffffffffffffffff8082111561209457600080fd5b818401915084601f8301126120a857600080fd5b8151818111156120ba576120ba61295c565b6120cd6020601f19601f840116016126ae565b91508082528560208285010111156120e457600080fd5b6120f58160208401602086016128d3565b50949350505050565b60008060008060008060a0878903121561211757600080fd5b863567ffffffffffffffff8082111561212f57600080fd5b61213b8a838b01611fe8565b9750602089013591508082111561215157600080fd5b5061215e89828a01611f45565b9096509450612171905060408801611eac565b92506060870135915061218660808801611eac565b90509295509295509295565b6000806000806000608086880312156121aa57600080fd5b853567ffffffffffffffff808211156121c257600080fd5b6121ce89838a01611fe8565b965060208801359150808211156121e457600080fd5b506121f188828901611f45565b9095509350506040860135915061220a60608701611eac565b90509295509295909350565b60008060008060008060008060e0898b03121561223257600080fd5b883567ffffffffffffffff8082111561224a57600080fd5b6122568c838d01611fe8565b995060208b013591508082111561226c57600080fd5b506122798b828c01611f45565b909850965061228c905060408a01612014565b9450606089013593506080890135925060a089013591506122af60c08a01611eac565b90509295985092959890939650565b600080600080608085870312156122d457600080fd5b843567ffffffffffffffff8111156122eb57600080fd5b6122f787828801611fe8565b94505061230660208601612014565b93969395505050506040820135916060013590565b60006020828403121561232d57600080fd5b5051919050565b60006020828403121561234657600080fd5b61204082612000565b81835260208301925060008160005b8481101561238357612370868361238d565b604095860195919091019060010161235e565b5093949350505050565b6001600160a01b0361239e82611eac565b168252602090810135910152565b815160009082906020808601845b838110156123d6578151855293820193908201906001016123ba565b50929695505050505050565b8486823760008582016000815285516123ff818360208a016128d3565b018385823760009301928352509095945050505050565b600082516124288184602087016128d3565b9190910192915050565b6001600160a01b038416815260406020820152600061245560408301848661234f565b95945050505050565b82815260608101612040602083018480516001600160a01b03168252602090810151910152565b60208152600082518060208401526124a48160408501602087016128d3565b601f01601f19169190910160400192915050565b6060815260006124c88586612703565b60a060608501526124de6101008501828461234f565b9150506124ee6020870187612703565b8483037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa00160808601528083529091600091906020015b8183101561254a57612537818561238d565b6040938401936001939093019201612525565b61255660408a01611eac565b6001600160a01b03811660a0880152935061257360608a01612000565b63ffffffff811660c0880152935061258d60808a01612000565b63ffffffff1660e08701526001600160a01b038816602087015293506125b292505050565b826040830152949350505050565b6000808335601e198436030181126125d757600080fd5b83018035915067ffffffffffffffff8211156125f257600080fd5b6020019150600681901b3603821315611f8a57600080fd5b6000808335601e1984360301811261262157600080fd5b83018035915067ffffffffffffffff82111561263c57600080fd5b602001915036819003821315611f8a57600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8183360301811261242857600080fd5b60405160a0810167ffffffffffffffff811182821017156126a8576126a861295c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156126d7576126d761295c565b604052919050565b600067ffffffffffffffff8211156126f9576126f961295c565b5060051b60200190565b6000808335601e1984360301811261271a57600080fd5b830160208101925035905067ffffffffffffffff81111561273a57600080fd5b8060061b3603831315611f8a57600080fd5b6000808585111561275c57600080fd5b8386111561276957600080fd5b5050820193919092039150565b600082198211156127895761278961291a565b500190565b6000826127ab57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156127ca576127ca61291a565b500290565b600060a082360312156127e157600080fd5b6127e9612685565b823567ffffffffffffffff8082111561280157600080fd5b9084019036601f83011261281457600080fd5b81356020612824611ee9836126df565b8281528181019085830136600686901b88018501111561284357600080fd5b600096505b8487101561286f5761285a3682611f91565b83526001969096019591830191604001612848565b508652508681013593508284111561288657600080fd5b61289236858901611ec8565b81860152505050506128a660408401611eac565b60408201526128b760608401612000565b60608201526128c860808401612000565b608082015292915050565b60005b838110156128ee5781810151838201526020016128d6565b8381111561187e5750506000910152565b60006000198214156129135761291361291a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122050ff5cabe47edd9569ce89e0ba0f68eff813e85d665e712a723440f1d6f5cc4564736f6c63430008070033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61054f8061007e6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063715018a61461005157806377fc3fa81461005b5780638da5cb5b1461006e578063f2fde38b1461009a575b600080fd5b6100596100ad565b005b610059610069366004610404565b6100c1565b6000546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100596100a83660046103e2565b61018f565b6100b5610231565b6100bf6000610298565b565b6100c9610231565b60005b8181101561018957368383838181106100e7576100e76104ea565b6040029190910191506000905061010160208301836103e2565b73ffffffffffffffffffffffffffffffffffffffff1614156101235750610177565b6101758561014660005473ffffffffffffffffffffffffffffffffffffffff1690565b6020840180359061015790866103e2565b73ffffffffffffffffffffffffffffffffffffffff1692919061030d565b505b806101818161048a565b9150506100cc565b50505050565b610197610231565b73ffffffffffffffffffffffffffffffffffffffff81166102255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61022e81610298565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146100bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161021c565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081528460048201528360248201528260448201526020600060648360008a5af13d15601f3d11600160005114161716915050806103b25760405162461bcd60e51b815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c4544000000000000000000000000604482015260640161021c565b5050505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146103dd57600080fd5b919050565b6000602082840312156103f457600080fd5b6103fd826103b9565b9392505050565b60008060006040848603121561041957600080fd5b610422846103b9565b9250602084013567ffffffffffffffff8082111561043f57600080fd5b818601915086601f83011261045357600080fd5b81358181111561046257600080fd5b8760208260061b850101111561047757600080fd5b6020830194508093505050509250925092565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156104e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212204dd1f47161d778557eea8c911bac4fd310ad7cc96f57ff7b36fb2fe38010b82464736f6c63430008070033000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c70000000000000000000000005ef7f250f74d4f11a68054ae4e150705474a6d4a",
"nonce": 0,
"network": null
}
}
Copy https://api.expand.network/chain/portfolio?chainId=43114&address=0x341dc441D0540166A26b98d1960DD2f997e378eA&availableOnly=true
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "183750000000000",
"evmTokens": [
{
"name": "Lava Degen ID",
"symbol": "SDD",
"decimals": "0",
"address": "0xb8ee8ce133100033b1bdd03cb4cc2bdebf781b6d",
"balance": "1",
"assetType": "ERC721",
"tokenId": "4227"
}
]
}
}
Copy https://api.expand.network/chain/getusertransactions?startBlock=37838200&endBlock=37838250&chainSymbol=c-avax&address=0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"nativeTransaction": {
"blockNumber": "37838218",
"blockIndex": 1,
"blockHash": "0xa90a9fae3b80de5ada2baa9313d5f22a36f9bcac4ab85e926d5af53f0017bea9",
"txHash": "0x54852168aec81e25228077a05ccb2717a102df5ddac44a9148323bd557a5a92e",
"txStatus": "1",
"txType": 2,
"gasLimit": "300000",
"gasUsed": "133593",
"gasPrice": "81000000000",
"nonce": "4249",
"blockTimestamp": 1700136217,
"from": {
"address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
},
"to": {
"address": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4"
},
"method": {
"callType": "CONTRACT_CALL",
"methodHash": "0x8a657e67",
"methodName": "swapAVAXForExactTokens(uint256,address[],address,uint256)"
},
"value": "1640955933498300000"
},
"erc20Transfers": [
{
"from": {
"address": "0xCDFD91eEa657cc2701117fe9711C9a4F61FEED23"
},
"to": {
"address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
},
"logIndex": 6,
"value": "1623065279150000000000",
"erc20Token": {
"ercType": "ERC-20",
"address": "0x22d4002028f537599bE9f666d1c4Fa138522f9c8",
"name": "Platypus",
"symbol": "PTP",
"decimals": 18,
"logoUri": "https://images.ctfassets.net/gcj8jwzm6086/06600fa5-b70b-48c7-a3bb-437d70952216/fa231762bdbc2c0b391f885d89e32d02/43114-0x22d4002028f537599bE9f666d1c4Fa138522f9c8.png",
"price": {
"value": 0.014573,
"currencyCode": "usd"
}
}
}
],
"internalTransactions": [
{
"from": {
"address": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4"
},
"to": {
"address": "0xBEBA4cE6DfC24820a994eCE4e25f023976Dcd979"
},
"internalTxType": "CALL",
"value": "102213470370951213",
"isReverted": false,
"gasUsed": "0",
"gasLimit": "164253"
}
]
}
]
}
}
Copy {
"chainId" : "43114",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "43114",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
Copy {
"chainId": "43114",
"rawTransaction": "0xf86c808505d21dba00830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080830150f7a084e67381cbe0ef549cba454b7b252b324cc5d7a05be4e67a8f8242e71ec0bc39a07cd18e29ccc04a5cc34c886a8df02400c5432341a99559fcaed8bad622450b70"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x05d21dba00"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"data": "0x",
"chainId": 43114,
"v": 86263,
"r": "0x84e67381cbe0ef549cba454b7b252b324cc5d7a05be4e67a8f8242e71ec0bc39",
"s": "0x7cd18e29ccc04a5cc34c886a8df02400c5432341a99559fcaed8bad622450b70",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"hash": "0x9a0f46a0d7adbfc10fa6eb0bf6b625472f59d02ebc1288f64f50ec4bb005c1ba",
"type": null
},
"assetChanges": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
}
}
}
}
Copy https://api.expand.network/chain/gethistoricalrewards?chainSymbol=p-AVAx&address=avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm&sortOrder=asc
Copy {
"status": 200,
"msg": "success",
"data": {
"historicalRewards": [
{
"addresses": [
"avax189rs3vx07p5y7uu27lk52vltksjue980fevxgm"
],
"txHash": "21Ji5iD9v3oDmZBBmZt591akrk3YMG27yRK5ArXNhhvrSJi5zs",
"utxoId": "2KDPLiCTuZGovZKtBD4hStFV6nvhSDKEMmjeXn9fKoGmq3i81m",
"outputIndex": 1,
"amountStaked": "4958623659071",
"nodeId": "NodeID-HpMSfYT2ox1vkr1hFNMwmdWuq8QWhvH2u",
"startTimestamp": 1699954003,
"endTimestamp": 1701164176,
"reward": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "12275074035"
},
"rewardType": "DELEGATOR",
"rewardTxHash": "2YhfzVxmGJjCejS4vkgyEwNwHXHKLn7rfVu5rFviwdEXpMXLYS"
}
]
}
}
Copy https://api.expand.network/chain/getusertransactions?chainSymbol=p-avax&address=avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"txType": "AddDelegatorTx",
"blockTimestamp": 1699945429,
"blockNumber": "9852683",
"blockHash": "2rwz34pyFgMuhTHvFY9ERR64atuzmpYks3TK28oBS1Psx8KHry",
"memo": "0x",
"rewardAddresses": [
"avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
],
"estimatedReward": "95136059",
"startTimestamp": 1699945718,
"endTimestamp": 1701760581,
"nodeId": "NodeID-84XTAh1VM9QmfdewNnqFVhz2kbjrFvK4Y",
"subnetId": "11111111111111111111111111111111LpoYY",
"consumedUtxos": [
{
"addresses": [
"avax160zup7kq54s52ltfq2um5vu7uwdy8lxxm8pez9"
],
"utxoId": "131snzt9LGg1kCDBhPf16HS7XDKbbevKNGYwoG5UVVnKfz3Pf",
"txHash": "29wbsRnSAhZ4DnbNTemMv1maW71n3tQPfUg2gzVXqrNzMZpYgx",
"outputIndex": 0,
"blockTimestamp": 1699945126,
"blockNumber": "9852560",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "24610000000"
},
"utxoType": "TRANSFER",
"amount": "24610000000",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
},
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"outputIndex": 0,
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
},
"utxoType": "TRANSFER",
"amount": "406841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"emittedUtxos": [
{
"addresses": [
"avax1ve4tyryp5mxe3m6s898lvlefg4ezrczvnn7mnn"
],
"utxoId": "24bbri5KJbNz3uG16hLhrzrKq44noATLrVPhyr51DYVBT5j4gg",
"txHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"outputIndex": 0,
"blockTimestamp": 1699945429,
"blockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
},
"utxoType": "TRANSFER",
"amount": "25016841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": true,
"utxoStartTimestamp": 1699945718,
"utxoEndTimestamp": 1701760581
}
],
"value": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
}
],
"amountBurned": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "0"
}
],
"amountStaked": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "25016841363"
}
]
},
{
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"txType": "ImportTx",
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"blockHash": "RK258J8Pn3tKxQzcYAPxnE8RSJ2AWkTmFwJzhcS8Q9STTDYRh",
"sourceChain": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"destinationChain": "11111111111111111111111111111111LpoYY",
"memo": "0x",
"consumedUtxos": [
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "jqNLomDdiWSQDHYotDU1RcHgo4VtNmYmM8eaBiJEe7vXKuK2P",
"txHash": "fetvPgXzjphbuEjAp4ezAv4he9zSrhMgpA2mNJJU9MLGbrX88",
"outputIndex": 0,
"blockTimestamp": 1699945009,
"blockNumber": "37742387",
"consumingTxHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"consumingBlockTimestamp": 1699945024,
"consumingBlockNumber": "9852548",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "407841363"
},
"utxoType": "TRANSFER",
"amount": "407841363",
"threshold": 1,
"createdOnChainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"emittedUtxos": [
{
"addresses": [
"avax1n70cnwt8tsjwgnq4m6xm3n9cqk0enw59jptawa"
],
"utxoId": "2miAzyiNFrGza2tCAbCudQZzeettdbK56sBnWnbKRC9DSHiLgh",
"txHash": "2vq35qTh4iqb5ZkzxiZsD6R6RoX245u4dzVsSgyqHdPLAJMWSY",
"outputIndex": 0,
"blockTimestamp": 1699945024,
"blockNumber": "9852548",
"consumingTxHash": "kkB6wavomFLVxeXgV55QaPVvipGrnJmA8woz9qAdX2Deut9gw",
"consumingBlockTimestamp": 1699945429,
"consumingBlockNumber": "9852683",
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"asset": {
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
},
"utxoType": "TRANSFER",
"amount": "406841363",
"platformLocktime": 0,
"threshold": 1,
"createdOnChainId": "11111111111111111111111111111111LpoYY",
"consumedOnChainId": "11111111111111111111111111111111LpoYY",
"staked": false
}
],
"value": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "406841363"
}
],
"amountBurned": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "1000000"
}
],
"amountStaked": [
{
"assetId": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "0"
}
]
}
]
}
}
Non-EVM based chains Following are the NON-EVM chains integrated with expand.network at present:-
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Remote procedural call URL.
The block number or block hash.
Remote procedural call URL.
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Remote procedural call URL.
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Remote procedural call URL.
Comma-separated value of user addresses.
Starting block of the range.
The next page's token. Can be found at the end of the response.
The transaction sorting order.
asc or desc.
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
The raw transaction to be given for decoding.
Remote procedural call URL.
Comma-separated value of user addresses.
The next page's token. Can be found at the end of the response.
The transaction sorting order.
asc or desc.
Remote procedural call URL.
Comma-separated value of user addresses.
Starting block of the range.
The next page's token. Can be found at the end of the response.
The transaction sorting order.
asc or desc.
Fantom /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0xCAa24193AAc383647D4a9a54F57a96d287Cf9A03&chainId=250
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "285400277601313656"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=250
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 281474976710655,
"gasUsed": 0,
"hash": "0x00000dd20000126f9a70f35d0f96bdcdc0f039637bb62bfc984b41104a0f047e",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0x00000dd200001261a6c479ed5a7ee9f1172b8610f16d31f2876bce31f20ee790",
"size": 546,
"timestamp": 1614631199,
"totalDifficulty": "0",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=250
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "40210316554"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=250&address=0xBfc82f3526874B9c3c1b1E7afE5EB293aC77011C
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x4c6f636b656420524156452d46544d204c500000000000000000000000000024"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=250&transactionHash=0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0x3d30e4e6dea4306b87c642f882617d5d4ef7dec10f9cea7aaf43f549dcfd817e",
"transactionStatus": null,
"blockNumber": 54757499,
"timestamp": null,
"from": "0x3e522051A9B1958Aa1e828AC24Afba4a551DF37d",
"to": null,
"value": "0",
"transactionFees": "249279712000000000",
"gas": 5665448,
"gasPrice": "44000000000",
"input": "0x60c060405269152d02c7e14af6800000600c55600d805460ff191690553480156200002957600080fd5b506040516200458a3803806200458a8339810160408190526200004c9162000185565b6040518060400160405280601281526020017104c6f636b656420524156452d46544d204c560741b815250604051806040016040528060058152602001646c5241564560d81b8152508160009081620000a6919062000262565b506001620000b5828262000262565b5050506001600160a01b03828116608052811660a081905260405163095ea7b360e01b815260048101919091527107ebba4e29a7f867a9491f2325000000000060248201527388888a335b1f65a79ec56a610d865b8b25b6060b9063095ea7b3906044016020604051808303816000875af115801562000139573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015f91906200032e565b50505062000359565b80516001600160a01b03811681146200018057600080fd5b919050565b600080604083850312156200019957600080fd5b620001a48362000168565b9150620001b46020840162000168565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001e857607f821691505b6020821081036200020957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025d57600081815260208120601f850160051c81016020861015620002385750805b601f850160051c820191505b81811015620002595782815560010162000244565b5050505b505050565b81516001600160401b038111156200027e576200027e620001bd565b62000296816200028f8454620001d3565b846200020f565b602080601f831160018114620002ce5760008415620002b55750858301515b600019600386901b1c1916600185901b17855562000259565b600085815260208120601f198616915b82811015620002ff57888601518255948401946001909101908401620002de565b50858210156200031e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200034157600080fd5b815180151581146200035257600080fd5b9392505050565b60805160a0516141be620003cc60003960008181610c130152818161132a0152818161148c0152818161189a0152611961015260008181610b6b0152818161145301528181611a9a01528181611b9701528181611c1901528181611c9b01528181612411015261249701526141be6000f3fe6080604052600436106101ac5760003560e01c80634fb50eea116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd1461048b578063d2643d05146104ab578063d925f362146104cb578063e985e9c5146104eb57600080fd5b8063a22cb4651461042b578063b88d4fde1461044b578063b9e8ce2c1461046b57600080fd5b806370a08231116100c657806370a08231146103c35780637328896f146103e357806385245a06146103f657806395d89b411461041657600080fd5b80634fb50eea146103605780636198e339146103905780636352211e146103a357600080fd5b80631338736f1161015957806323b872dd1161013357806323b872dd146102e05780632f745c591461030057806342842e0e146103205780634f6ccce71461034057600080fd5b80631338736f146102a357806318160ddd146102b657806318264f33146102cb57600080fd5b8063095ea7b31161018a578063095ea7b3146102405780630962ef791461026257806310314ae51461027557600080fd5b806301ffc9a7146101b157806306fdde03146101e6578063081812fc14610208575b600080fd5b3480156101bd57600080fd5b506101d16101cc3660046135f8565b610534565b60405190151581526020015b60405180910390f35b3480156101f257600080fd5b506101fb610590565b6040516101dd919061366c565b34801561021457600080fd5b5061022861022336600461367f565b610622565b6040516001600160a01b0390911681526020016101dd565b34801561024c57600080fd5b5061026061025b3660046136ad565b610649565b005b61026061027036600461367f565b61077f565b34801561028157600080fd5b5061029561029036600461367f565b610977565b6040519081526020016101dd565b6102606102b13660046136d9565b610a27565b3480156102c257600080fd5b50600854610295565b3480156102d757600080fd5b50610260610d8c565b3480156102ec57600080fd5b506102606102fb3660046136fb565b610e9e565b34801561030c57600080fd5b5061029561031b3660046136ad565b610f25565b34801561032c57600080fd5b5061026061033b3660046136fb565b610fcd565b34801561034c57600080fd5b5061029561035b36600461367f565b610fe8565b34801561036c57600080fd5b5061038061037b36600461367f565b61108c565b6040516101dd949392919061373c565b61026061039e36600461367f565b611173565b3480156103af57600080fd5b506102286103be36600461367f565b6115c8565b3480156103cf57600080fd5b506102956103de3660046137b2565b61162d565b6102606103f136600461367f565b6116c7565b34801561040257600080fd5b5061029561041136600461367f565b611f47565b34801561042257600080fd5b506101fb612018565b34801561043757600080fd5b506102606104463660046137dd565b612027565b34801561045757600080fd5b50610260610466366004613845565b612036565b34801561047757600080fd5b506102606104863660046137b2565b6120c4565b34801561049757600080fd5b506101fb6104a636600461367f565b612216565b3480156104b757600080fd5b506102956104c63660046136d9565b6123b6565b3480156104d757600080fd5b506102956104e636600461367f565b61240c565b3480156104f757600080fd5b506101d1610506366004613925565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061058a575061058a82612545565b92915050565b60606000805461059f90613953565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90613953565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b600061062d82612628565b506000908152600460205260409020546001600160a01b031690565b6000610654826115c8565b9050806001600160a01b0316836001600160a01b0316036106e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b03821614806106fe57506106fe8133610506565b6107705760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016106d9565b61077a838361268c565b505050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c082015290421061083d5760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b610846826115c8565b6001600160a01b0316336001600160a01b0316146108a65760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b6000828152600b602052604090205460ff16156109055760405162461bcd60e51b815260206004820181905260248201527f416c726561647920636c61696d656420666f72207468697320746f6b656e496460448201526064016106d9565b60008160c00151826040015161091b91906139d5565b905060006109294783613a10565b6000858152600b6020526040808220805460ff1916600117905551919250339183156108fc0291849190818181858888f19350505050158015610970573d6000803e3d6000fd5b5050505050565b6000818152600a60209081526040808320815160e08101835281546001600160a01b0316815260018201549381019390935260028101549183018290526003810154606084015260048101546080840152600581015460ff16151560a08401526006015460c0830181905283916109ee91906139d5565b905060006109fc4783613a10565b6000868152600b602052604090205490915060ff16610a1b5780610a1e565b60005b95945050505050565b6000610a3383836123b6565b9050600c548110610aac5760405162461bcd60e51b815260206004820152603c60248201527f5468652070726f6772616d2068617320656e6465642c206f7220796f7520617260448201527f65206c6f636b696e6720746f6f206d75636820524156452f46544d2e0000000060648201526084016106d9565b610abb600c6301dfe2006139d5565b821015610b305760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206c6f636b20666f72206174206c656173742031206d6f6e60448201527f746800000000000000000000000000000000000000000000000000000000000060648201526084016106d9565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190613a27565b506040517fb6b55f25000000000000000000000000000000000000000000000000000000008152600481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b6b55f25906024016020604051808303816000875af1158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190613a44565b905081600c54610c989190613a5d565b600c556000610ca74233613a70565b90506040518060e00160405280336001600160a01b031681526020018381526020018481526020018542610cdb9190613a70565b8152602080820187905260016040808401829052600c546060948501526000868152600a8452819020855181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178155928501519183019190915583015160028201559082015160038201556080820151600482015560a082015160058201805460ff191691151591909117905560c0909101516006909101556109703382612712565b733e522051a9b1958aa1e828ac24afba4a551df37d3314610def5760405162461bcd60e51b815260206004820152601360248201527f4c504c6f636b65723a204e6f74206f776e65720000000000000000000000000060448201526064016106d9565b600d805460ff19166001179055600c546040517f23b872dd00000000000000000000000000000000000000000000000000000000815230600482015233602482015260448101919091527388888a335b1f65a79ec56a610d865b8b25b6060b906323b872dd906064016020604051808303816000875af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190613a27565b50565b610ea833826128c3565b610f1a5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b61077a838383612941565b6000610f308361162d565b8210610fa45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61077a83838360405180602001604052806000815250612036565b6000610ff360085490565b82106110675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016106d9565b6008828154811061107a5761107a613a83565b90600052602060002001549050919050565b6110d76040518060e0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6000828152600a60209081526040808320600b9092528220548291829160ff1661110087611f47565b61110988610977565b6040805160e08101825285546001600160a01b03168152600186015460208201526002860154918101919091526003850154606082015260048501546080820152600585015460ff16151560a082015260069094015460c085015292989197509550909350915050565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c0820152904210156112325760405162461bcd60e51b815260206004820152601260248201527f546f6b656e207374696c6c206c6f636b6564000000000000000000000000000060448201526064016106d9565b61123b826115c8565b6001600160a01b0316336001600160a01b03161461129b5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a001516112ec5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6112f582612bad565b60208101516040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260048101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306113bb856115c8565b60408086015190517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561142c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114509190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd3061148a856115c8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150c9190613a44565b856020015161151b9190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab9190613a27565b50506000908152600a60205260409020600501805460ff19169055565b6000818152600260205260408120546001600160a01b03168061058a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b60006001600160a01b0382166116ab5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016106d9565b506001600160a01b031660009081526003602052604090205490565b6000818152600a6020908152604091829020825160e08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546060820181905260048301546080830152600583015460ff16151560a083015260069092015460c08201529042106117855760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e20756e6c6f636b656400000000000000000000000000000000000060448201526064016106d9565b61178e826115c8565b6001600160a01b0316336001600160a01b0316146117ee5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420746865206f776e6572206f6620746865206c6f636b0000000000000060448201526064016106d9565b8060a0015161183f5760405162461bcd60e51b815260206004820152601460248201527f4c6f636b20686173206265656e20636c6f73656400000000000000000000000060448201526064016106d9565b6000816080015182606001516118559190613a5d565b905060006118638242613a5d565b600d5490915060009060ff166118915761188260026301dfe2006139d5565b61188c90836139d5565b611894565b60015b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191a9190613a44565b85602001516119299190613a10565b60208601516040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691632e1a7d4d916119989160040190815260200190565b600060405180830381600087803b1580156119b257600080fd5b505af11580156119c6573d6000803e3d6000fd5b505050507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd306119f7896115c8565b858960400151611a079190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a979190613a27565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd30611ad1896115c8565b858960200151611ae19190613a10565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b719190613a27565b50731a05eb736873485655f29a37def8a0aa87f5a4476001600160a01b0316630dede6c47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c179190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c999190613ab2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166322be3de16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1b9190613a27565b611d258787613a10565b611d2f9087613a5d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015215156044830152606482015260006084820181905260a48201523060c48201524260e48201526101040160408051808303816000875af1158015611dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de09190613acf565b50506000828660400151611df49190613a10565b8660400151611e039190613a5d565b6002611e1c611e128686613a10565b6104e69086613a5d565b611e2691906139d5565b611e309190613a70565b90507388888a335b1f65a79ec56a610d865b8b25b6060b6001600160a01b03166323b872dd307387f385d152944689f92ed523e9e5e9bd58ea62ef84878b60400151611e7c9190613a10565b8b60400151611e8b9190613a5d565b611e959190613a70565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611f01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f259190613a27565b50505060009485525050600a602052505060409020600501805460ff19169055565b6000818152600a60209081526040808320815160e08101835281546001600160a01b03168152600182015493810193909352600281015491830191909152600381015460608301819052600482015460808401819052600583015460ff16151560a085015260069092015460c08401528391611fc291613a5d565b90506000611fd08242613a5d565b600d5490915060009060ff16611ffe57611fef60026301dfe2006139d5565b611ff990836139d5565b612001565b60015b905061200e816001613a5d565b9695505050505050565b60606001805461059f90613953565b612032338383612c86565b5050565b61204033836128c3565b6120b25760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016106d9565b6120be84848484612d54565b50505050565b7387f385d152944689f92ed523e9e5e9bd58ea62ef33146120e457600080fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482018190526001600160a01b038316916323b872dd91907387f385d152944689f92ed523e9e5e9bd58ea62ef9084906370a0823190602401602060405180830381865afa158015612162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121869190613a44565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156121f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120329190613a27565b60606040518061014001604052806101068152602001614083610106913990508061224083612ddd565b604051602001612251929190613af3565b60408051601f198184030181529181526000848152600a6020522060010154909150819061227e90612ddd565b60405160200161228f929190613b9b565b60408051601f198184030181529181526000848152600a602052206003015490915081906122bc90612ddd565b6040516020016122cd929190613c43565b6040516020818303038152906040529050806122f06122eb84610977565b612ddd565b604051602001612301929190613ce7565b60408051601f198184030181529181526000848152600a6020522060020154909150819061232e90612ddd565b60405160200161233f929190613d8b565b6040516020818303038152906040529050600061238c61235e84612ddd565b61236784612e9b565b604051602001612378929190613e34565b604051602081830303815290604052612e9b565b90508060405160200161239f9190613f51565b604051602081830303815290604052915050919050565b6000806123c28461240c565b6123cc9085613a10565b905060006123dc6064600c6139d5565b6123e69083613a10565b90506301dfe2006123f8856002613a10565b61240291906139d5565b610a1e9082613a10565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561246d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124919190613a44565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156124f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125179190613f96565b50915084905082612529836002613a10565b61253391906139d5565b61253d9190613a10565b949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125d857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061058a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461058a565b6000818152600260205260409020546001600160a01b0316610e9b5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106d9565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906126d9826115c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166127685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d9565b6000818152600260205260409020546001600160a01b0316156127cd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6127db600083836001612fee565b6000818152600260205260409020546001600160a01b0316156128405760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806128cf836115c8565b9050806001600160a01b0316846001600160a01b0316148061291657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061253d5750836001600160a01b031661292f84610622565b6001600160a01b031614949350505050565b826001600160a01b0316612954826115c8565b6001600160a01b0316146129d05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b6001600160a01b038216612a4b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106d9565b612a588383836001612fee565b826001600160a01b0316612a6b826115c8565b6001600160a01b031614612ae75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106d9565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612bb8826115c8565b9050612bc8816000846001612fee565b612bd1826115c8565b600083815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b031603612ce75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d5f848484612941565b612d6b8484848461312f565b6120be5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b60606000612dea836132d0565b600101905060008167ffffffffffffffff811115612e0a57612e0a613816565b6040519080825280601f01601f191660200182016040528015612e34576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084612e3e57509392505050565b60608151600003612eba57505060408051602081019091526000815290565b60006040518060600160405280604081526020016140436040913990506000600384516002612ee99190613a70565b612ef391906139d5565b612efe906004613a10565b67ffffffffffffffff811115612f1657612f16613816565b6040519080825280601f01601f191660200182016040528015612f40576020820181803683370190505b509050600182016020820185865187015b80821015612fac576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612f51565b5050600386510660018114612fc85760028114612fdb57612fe3565b603d6001830353603d6002830353612fe3565b603d60018303535b509195945050505050565b612ffa848484846133b2565b60018111156130715760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f72746564000000000000000000000060648201526084016106d9565b816001600160a01b0385166130cd576130c881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130f0565b836001600160a01b0316856001600160a01b0316146130f0576130f0858261343a565b6001600160a01b03841661310c57613107816134d7565b610970565b846001600160a01b0316846001600160a01b031614610970576109708482613586565b60006001600160a01b0384163b156132c5576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061318c903390899088908890600401613fc4565b6020604051808303816000875af19250505080156131c7575060408051601f3d908101601f191682019092526131c491810190613ff6565b60015b61327a573d8080156131f5576040519150601f19603f3d011682016040523d82523d6000602084013e6131fa565b606091505b5080516000036132725760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106d9565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061253d565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613319577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310613345576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061336357662386f26fc10000830492506010015b6305f5e100831061337b576305f5e100830492506008015b612710831061338f57612710830492506004015b606483106133a1576064830492506002015b600a831061058a5760010192915050565b60018111156120be576001600160a01b038416156133f8576001600160a01b038416600090815260036020526040812080548392906133f2908490613a5d565b90915550505b6001600160a01b038316156120be576001600160a01b0383166000908152600360205260408120805483929061342f908490613a70565b909155505050505050565b600060016134478461162d565b6134519190613a5d565b6000838152600760205260409020549091508082146134a4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906134e990600190613a5d565b6000838152600960205260408120546008805493945090928490811061351157613511613a83565b90600052602060002001549050806008838154811061353257613532613a83565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061356a5761356a614013565b6001900381819060005260206000200160009055905550505050565b60006135918361162d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e9b57600080fd5b60006020828403121561360a57600080fd5b8135613615816135ca565b9392505050565b60005b8381101561363757818101518382015260200161361f565b50506000910152565b6000815180845261365881602086016020860161361c565b601f01601f19169290920160200192915050565b6020815260006136156020830184613640565b60006020828403121561369157600080fd5b5035919050565b6001600160a01b0381168114610e9b57600080fd5b600080604083850312156136c057600080fd5b82356136cb81613698565b946020939093013593505050565b600080604083850312156136ec57600080fd5b50508035926020909101359150565b60008060006060848603121561371057600080fd5b833561371b81613698565b9250602084013561372b81613698565b929592945050506040919091013590565b6000610140820190506001600160a01b0386511682526020860151602083015260408601516040830152606086015160608301526080860151608083015260a0860151151560a083015260c086015160c083015261379e60e083018615159052565b610100820193909352610120015292915050565b6000602082840312156137c457600080fd5b813561361581613698565b8015158114610e9b57600080fd5b600080604083850312156137f057600080fd5b82356137fb81613698565b9150602083013561380b816137cf565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561385b57600080fd5b843561386681613698565b9350602085013561387681613698565b925060408501359150606085013567ffffffffffffffff8082111561389a57600080fd5b818701915087601f8301126138ae57600080fd5b8135818111156138c0576138c0613816565b604051601f8201601f19908116603f011681019083821181831017156138e8576138e8613816565b816040528281528a602084870101111561390157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561393857600080fd5b823561394381613698565b9150602083013561380b81613698565b600181811c9082168061396757607f821691505b6020821081036139a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082613a0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808202811582820484141761058a5761058a6139a6565b600060208284031215613a3957600080fd5b8151613615816137cf565b600060208284031215613a5657600080fd5b5051919050565b8181038181111561058a5761058a6139a6565b8082018082111561058a5761058a6139a6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215613ac457600080fd5b815161361581613698565b60008060408385031215613ae257600080fd5b505080516020909101519092909150565b60008351613b0581846020880161361c565b7f546f6b656e2049440000000000000000000000000000000000000000000000009083019081528351613b3f81600884016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2234302220636c617373600892909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006028820152603001949350505050565b60008351613bad81846020880161361c565b7f4c6f636b6564204c502028313820646563696d616c73290000000000000000009083019081528351613be781601784016020880161361c565b7f3c2f746578743e3c7465787420783d2231302220793d2236302220636c617373601792909101918201527f3d2262617365223e0000000000000000000000000000000000000000000000006037820152603f01949350505050565b60008351613c5581846020880161361c565b7f456e642054696d652000000000000000000000000000000000000000000000009083019081528351613c8f81600984016020880161361c565b61200e6009828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613cf981846020880161361c565b7f46544d20526577617264732028313820646563696d616c7329000000000000009083019081528351613d3381601984016020880161361c565b61200e6019828401017f3c2f746578743e3c7465787420783d2231302220793d2238302220636c61737381527f3d2262617365223e000000000000000000000000000000000000000000000000602082015260280190565b60008351613d9d81846020880161361c565b80830190507f5241564520746f2062652072657761726465642028313820646563696d616c7381527f290000000000000000000000000000000000000000000000000000000000000060208201528351613dfe81602184016020880161361c565b7f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000060219290910191820152602e01949350505050565b7f7b226e616d65223a202252617665204c6f636b20230000000000000000000000815260008351613e6c81601585016020880161361c565b7f222c20226465736372697074696f6e223a2022524156452d46544d204c50206c6015918401918201527f6f636b73206561726e205241564520616e64206175746f636f6d706f756e642060358201527f457175616c697a6572206661726d20726577617264732e222c2022696d61676560558201527f223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000060758201528351613f1b81609384016020880161361c565b7f227d00000000000000000000000000000000000000000000000000000000000060939290910191820152609501949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f8981601d85016020870161361c565b91909101601d0192915050565b600080600060608486031215613fab57600080fd5b8351925060208401519150604084015190509250925092565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261200e6080830184613640565b60006020828403121561400857600080fd5b8151613615816135ca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a20566572616e64612c2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223ea2646970667358221220907063c711c05c3797e5957c2d8f6e1eec47678c22a8984ce5fce2a699e0fd8a64736f6c63430008110033000000000000000000000000e117a5f40a5d28d3b2f103301c629617bfba5f610000000000000000000000004d4227eb0c2eff68a7436f5c3b7b39dafe41e2ce",
"nonce": 4792,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=250&address=0xE07A19BD62Ec121778e2d3bbb604536dcF4b62F2&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "1634333203483812448",
"evmTokens": [
{
"name": "WigoSwap Token",
"symbol": "WIGO",
"decimals": "18",
"address": "0xe992beab6659bff447893641a378fbbf031c5bd6",
"balance": "112505395483186352104116",
"assetType": "ERC20",
"USDPrice": "0.15263169717240072"
},
{
"name": "GOGO",
"symbol": "Claim on: gogo-ftm.com",
"decimals": "0",
"address": "0x589b815e45b7c0e7b481a260d2c668f0f90c071d",
"balance": "80000000",
"assetType": "ERC20",
"USDPrice": null
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Remote procedural call URL.
The public address of the user.
The page number that the user wants to fetch.
The transaction sorting order.
asc or desc.
By default, desc.
Sample Request
Copy https://api.expand.network/chain/getusertransactions?address=0xbbCc5501cFBA3c8dc2225558664B5c1084DE42Fa&page=19&sortOrder=asc&chainId=250
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "20",
"currentPage": "19",
"transactions": [
{
"block_signed_at": "2023-11-19T16:13:11Z",
"block_height": 70884357,
"block_hash": "0x0003cbef00000cc62d18bc21aaf8175ae9d98fbe7e4da58e6f46900a74975ef7",
"tx_hash": "0x75bab5f20b321d8ea0360b8ff3f42a3ad7234b036fca7d49502c314c10e783fa",
"tx_offset": 14,
"successful": true,
"miner_address": "0x0000000000000000000000000000000000000000",
"from_address": "0x9649c141aceac58451dd7d795da180356cb2ac8f",
"from_address_label": null,
"to_address": "0xbbcc5501cfba3c8dc2225558664b5c1084de42fa",
"to_address_label": null,
"value": "1000000000000000000",
"value_quote": 0.3359172219586432,
"pretty_value_quote": "$0.34",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Fantom",
"contract_ticker_symbol": "FTM",
"contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"supports_erc": null,
"logo_url": "https://www.datocms-assets.com/86369/1669925386-fantom.svg"
},
"gas_offered": 21000,
"gas_spent": 21000,
"gas_price": 25970754068,
"fees_paid": "545385835428000",
"gas_quote": 0.00018320449473256754,
"pretty_gas_quote": "$0.00",
"gas_quote_rate": 0.3359172219586432,
"explorers": [
{
"label": null,
"url": "https://ftmscan.com/tx/0x75bab5f20b321d8ea0360b8ff3f42a3ad7234b036fca7d49502c314c10e783fa"
}
]
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "250",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "250",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "250",
"rawTransaction": "0xf86b80850814ba728a830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca0080820217a09822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610a0676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x0814ba728a"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"data": "0x",
"chainId": 250,
"v": 535,
"r": "0x9822cc76301462e630aa10db91f4035c343cf236ccc9c341196a12f590dbc610",
"s": "0x676fa7aba1fe0a7905a2ab0ccfdd4fed61f25df2f7cb662dd07e01222b62f56d",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"hash": "0xa876d032ef06d2b5aeda794e3a2178359a27c2839f425fbfe6305b09917a75ec",
"type": null
},
"assetChanges": {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
}
}
}
}
Polygon /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x15a1E58d588006b8c332548D028AA9e254271452&chainId=137
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "3175235802530563857"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=25255532&chainId=137
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "18",
"gasLimit": 30000000,
"gasUsed": 18206199,
"hash": "0xfed3e75b1ce71022a8739426049dd2e868f3768ab3984afa1b1ffc48672591ed",
"miner": "0x7c7379531b2aEE82e4Ca06D4175D13b9CBEafd49",
"nonce": "0x0000000000000000",
"number": 25255532,
"parentHash": "0x048a292942dba198d4a5694b6d1a4122d62be62610282c9e96002aa4a0d8f495",
"size": 113646,
"timestamp": 1645608812,
"totalDifficulty": "325600960",
"transactions": [
"0x6463e483b18b16b06e72d9578c679689f663baf834e47e9ce4e66602008470a4",
"0x128dd231a594ab2353e527c3cba11a6541b53067efc6a11756906e6eaaa5c706",
"0xf3021a97d63fbe64b3ef19ddc3aa10f4fd45adb03eb3905b4d5a249f1ef4a31f"
],
"transactionsRoot": "0xdfcf43bbadde53b8ecb565056d780078ce2579f6260594dfa6254ae64a58eb4b",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=137
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "112297540244"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=137&address=0xb33EaAd8d922B1083446DC23f610c2567fB5180f
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=137&transactionHash=0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xee44d837079754929b0ef0e9752de8c78f0da4a601d3c61a7ac6660cb78f06e4",
"transactionStatus": null,
"blockNumber": 38721087,
"timestamp": null,
"from": "0xF91AfA7840F692F4c6f7830fB48e97561a72c884",
"to": null,
"value": "0",
"transactionFees": "7200000000000000000",
"gas": 24000000,
"gasPrice": "300000000000",
"input": "0x608060405234801561001057600080fd5b50614bd3806100206000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636352211e11610151578063a7042855116100c3578063dcec329411610087578063dcec3294146105be578063e985e9c5146105de578063f03109fa1461061a578063f2fde38b1461062d578063f4bbcb2914610640578063f6aacfb11461065357600080fd5b8063a704285514610551578063b88d4fde14610572578063c87b56dd14610585578063cd4bf15114610598578063ce65aff8146105ab57600080fd5b80638da5cb5b116101155780638da5cb5b146104c257806391c79cd7146104d3578063956236411461050f57806395d89b411461052357806399b7c4011461052b578063a22cb4651461053e57600080fd5b80636352211e1461044657806367b73c7d1461045957806370a0823114610494578063715018a6146104a75780637cc53570146104af57600080fd5b8063278d0fd9116101ea5780634ce17b86116101ae5780634ce17b86146103bd5780634def0453146103d05780634e1e4880146103e357806350c0bc58146103f6578063510b5158146104095780635493f09a1461043357600080fd5b8063278d0fd91461035d578063352f988214610371578063393febfa1461038457806342842e0e1461039757806342966c68146103aa57600080fd5b8063121cba1911610231578063121cba19146102fe578063179a9c0f146103115780632016a0d21461032457806323b872dd14610337578063262473941461034a57600080fd5b806301ffc9a71461026e57806305b42c271461029657806306fdde03146102a9578063081812fc146102be578063095ea7b3146102e9575b600080fd5b61028161027c366004613d1d565b610675565b60405190151581526020015b60405180910390f35b6102816102a4366004613d3a565b6106f1565b6102b161087f565b60405161028d9190613da3565b6102d16102cc366004613d3a565b610911565b6040516001600160a01b03909116815260200161028d565b6102fc6102f7366004613ddb565b610938565b005b6102d161030c366004613d3a565b610a52565b6102fc61031f366004613ddb565b610b49565b6102fc610332366004613e4f565b610cb9565b6102fc610345366004613ee3565b610ec7565b6102fc610358366004613ddb565b610ef9565b61022d546102d1906001600160a01b031681565b6102b161037f366004613d3a565b611034565b6102fc610392366004613f24565b6110d9565b6102fc6103a5366004613ee3565b611123565b6102fc6103b8366004613d3a565b61113e565b6102d16103cb366004613d3a565b61116c565b6102fc6103de366004614069565b6111de565b6102fc6103f13660046140d3565b6113f9565b6102fc6104043660046140ff565b6115e2565b6102d1610417366004613d3a565b600090815261016260205260409020546001600160a01b031690565b6102fc61044136600461415d565b61181b565b6102d1610454366004613d3a565b611962565b6104866104673660046140d3565b1515600090815261016460209081526040808320938352929052205490565b60405190815260200161028d565b6104866104a2366004614192565b6119c2565b6102fc611a48565b6102b16104bd366004613d3a565b611a5c565b6033546001600160a01b03166102d1565b6102816104e13660046141af565b6001600160a01b03918216600090815260cb6020908152604080832093909416825291909152205460ff1690565b61022c546102d1906001600160a01b031681565b6102b1611beb565b6102fc6105393660046141e8565b611bfa565b6102fc61054c366004614233565b611c1a565b61056461055f36600461425f565b611c25565b60405161028d929190614294565b6102fc610580366004614318565b611e2d565b6102b1610593366004613d3a565b611e5f565b6102fc6105a63660046143a8565b611e6a565b6102fc6105b936600461445a565b61232d565b6104866105cc366004613d3a565b60c96020526000908152604090205481565b6102816105ec3660046141af565b6001600160a01b039182166000908152609c6020908152604080832093909416825291909152205460ff1690565b6102fc610628366004614551565b61258b565b6102fc61063b366004614192565b612671565b6102fc61064e366004614233565b6126e7565b610281610661366004613d3a565b600090815260c96020526040902054421090565b60006001600160e01b031982166390478cd760e01b14806106a657506001600160e01b0319821663cf9a665f60e01b145b806106c157506001600160e01b0319821663c8f12ba760e01b145b806106dc57506001600160e01b03198216632b59e54960e21b145b806106eb57506106eb826126f2565b92915050565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805484939291606084019161074f906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461077b906145ae565b80156107c85780601f1061079d576101008083540402835291602001916107c8565b820191906000526020600020905b8154815290600101906020018083116107ab57829003601f168201915b505050505081526020016003820180546107e1906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461080d906145ae565b801561085a5780601f1061082f5761010080835404028352916020019161085a565b820191906000526020600020905b81548152906001019060200180831161083d57829003601f168201915b50505091835250506004919091015460ff16151560209091015260a001519392505050565b60606097805461088e906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba906145ae565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c82612717565b506000908152609b60205260409020546001600160a01b031690565b600061094382611962565b9050806001600160a01b0316836001600160a01b0316036109b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109d157506109d181336105ec565b610a435760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109ac565b610a4d8383612767565b505050565b6000610a5d826127d5565b610abd5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b60648201526084016109ac565b600082815260c960205260409020544210610b2d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732314c3a206c6f636b657220717565727920666f72206e6f6e2d6c6f60448201526931b5b2b2103a37b5b2b760b11b60648201526084016109ac565b50600090815260ca60205260409020546001600160a01b031690565b600081815260c96020526040902054421015610ba25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b6000610bad82611962565b9050806001600160a01b0316836001600160a01b031603610c205760405162461bcd60e51b815260206004820152602760248201527f4552433732314c3a206c6f636b20617070726f76616c20746f2063757272656e6044820152663a1037bbb732b960c91b60648201526084016109ac565b336001600160a01b0382161480610c3c5750610c3c81336104e1565b610cae5760405162461bcd60e51b815260206004820152603e60248201527f4552433732314c3a206c6f636b20617070726f76652063616c6c65722069732060448201527f6e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ac565b610a4d8184846127f2565b600054610100900460ff1615808015610cd95750600054600160ff909116105b80610cf35750303b158015610cf3575060005460ff166001145b610d565760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109ac565b6000805460ff191660011790558015610d79576000805461ff0019166101001790555b610dec85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525061284e92505050565b610df461287f565b610dfc6128ae565b6001600160a01b0387161580610e1957506001600160a01b038616155b15610e37576040516317d69aff60e11b815260040160405180910390fd5b61022c80546001600160a01b03808a166001600160a01b03199283161790925561022d805492891692909116919091179055610e7861022a80546001019055565b8015610ebe576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610ed2335b826128dd565b610eee5760405162461bcd60e51b81526004016109ac906145e2565b610a4d83838361295c565b33610f0382610a52565b6001600160a01b031614610f6d5760405162461bcd60e51b815260206004820152602b60248201527f4552433732314c3a20756e6c6f636b2063616c6c6572206973206e6f74206c6f60448201526a31b59037b832b930ba37b960a91b60648201526084016109ac565b816001600160a01b0316610f8082611962565b6001600160a01b031614610fe25760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20756e6c6f636b2066726f6d20696e636f7272656374206f6044820152633bb732b960e11b60648201526084016109ac565b610fea565b50565b600081815260c960205260408082208290555182916001600160a01b0385169133917fe6e0ef9cd056ca98561ca60e347ada61e1ede2f1142a078951b7a52e1e508e6091a45b5050565b60008181526101c66020526040812080546060929190611053906145ae565b80601f016020809104026020016040519081016040528092919081815260200182805461107f906145ae565b80156110cc5780601f106110a1576101008083540402835291602001916110cc565b820191906000526020600020905b8154815290600101906020018083116110af57829003601f168201915b5093979650505050505050565b6111198886868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b5050505050505050565b610a4d83838360405180602001604052806000815250611e2d565b61114733610ecc565b6111635760405162461bcd60e51b81526004016109ac906145e2565b610fe781612b51565b6000611177826127d5565b610b2d5760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b20617070726f76656420717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611239906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611265906145ae565b80156112b25780601f10611287576101008083540402835291602001916112b2565b820191906000526020600020905b81548152906001019060200180831161129557829003601f168201915b505050505081526020016003820180546112cb906145ae565b80601f01602080910402602001604051908101604052809291908181526020018280546112f7906145ae565b80156113445780601f1061131957610100808354040283529160200191611344565b820191906000526020600020905b81548152906001019060200180831161132757829003601f168201915b50505091835250506004919091015460ff90811615156020928301526060830185815260008781526101308452604090819020855181559385015160018501805492870151909416600160a01b026001600160a81b03199092166001600160a01b03909116171790915551919250829160028201906113c3908261467d565b50608082015160038201906113d8908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050565b600082815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611454906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611480906145ae565b80156114cd5780601f106114a2576101008083540402835291602001916114cd565b820191906000526020600020905b8154815290600101906020018083116114b057829003601f168201915b505050505081526020016003820180546114e6906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611512906145ae565b801561155f5780601f106115345761010080835404028352916020019161155f565b820191906000526020600020905b81548152906001019060200180831161154257829003601f168201915b50505091835250506004919091015460ff908116151560209283015284151560a084015260008681526101308352604090819020845181559284015160018401805492860151909316600160a01b026001600160a81b03199092166001600160a01b03909116171790556060820151919250829160028201906113c3908261467d565b6115ea612b5a565b600084815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611645906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611671906145ae565b80156116be5780601f10611693576101008083540402835291602001916116be565b820191906000526020600020905b8154815290600101906020018083116116a157829003601f168201915b505050505081526020016003820180546116d7906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611703906145ae565b80156117505780601f1061172557610100808354040283529160200191611750565b820191906000526020600020905b81548152906001019060200180831161173357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b031633146117c75760405162461bcd60e51b815260206004820152601860248201527f416d6265726669436f6e74656e743a20546f6f2068696768000000000000000060448201526064016109ac565b6000858152610130602052604090206002016117e484868361473c565b50506000938452610130602052604090932060010180546001600160a01b0319166001600160a01b03909416939093179092555050565b6118253383612bb4565b6118885760405162461bcd60e51b815260206004820152602e60248201527f4552433732314c3a206c6f636b2063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b60648201526084016109ac565b4281116118fd5760405162461bcd60e51b815260206004820152603f60248201527f4552433732314c3a20657870697265642074696d65206d75737420626520677260448201527f6561746572207468616e2063757272656e7420626c6f636b206e756d6265720060648201526084016109ac565b600082815260c960205260409020544210156119565760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c530e881d1bdad95b881a5cc81b1bd8dad95960421b60448201526064016109ac565b610a4d33848484612c91565b6000818152609960205260408120546001600160a01b0316806106eb5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b60006001600160a01b038216611a2c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109ac565b506001600160a01b03166000908152609a602052604090205490565b611a50612b5a565b611a5a6000612d79565b565b600081815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff169183019190915260028101805460609493929185840191611abb906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae7906145ae565b8015611b345780601f10611b0957610100808354040283529160200191611b34565b820191906000526020600020905b815481529060010190602001808311611b1757829003601f168201915b50505050508152602001600382018054611b4d906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611b79906145ae565b8015611bc65780601f10611b9b57610100808354040283529160200191611bc6565b820191906000526020600020905b815481529060010190602001808311611ba957829003601f168201915b50505091835250506004919091015460ff161515602090910152606001519392505050565b60606098805461088e906145ae565b60008381526101c660205260409020611c1482848361473c565b50505050565b611030338383612dcb565b6060806000611c4e86851515600090815261016460209081526040808320938352929052205490565b905080600003611c985760405162461bcd60e51b815260206004820152601560248201527413919514185e5bdd5d1cce881b9bc81c185e5bdd5d605a1b60448201526064016109ac565b806001600160401b03811115611cb057611cb0613fde565b604051908082528060200260200182016040528015611cd9578160200160208202803683370190505b509250806001600160401b03811115611cf457611cf4613fde565b604051908082528060200260200182016040528015611d1d578160200160208202803683370190505b50915060005b81811015611e23578415156000908152610163602090815260408083208a84529091529020805482908110611d5a57611d5a6147fb565b60009182526020909120015484516001600160a01b0390911690859083908110611d8657611d866147fb565b6001600160a01b03929092166020928302919091018201528515156000908152610163825260408082208a8352909252208054612710919083908110611dce57611dce6147fb565b600091825260209091200154611df490600160a01b90046001600160601b031688614827565b611dfe919061483e565b838281518110611e1057611e106147fb565b6020908102919091010152600101611d23565b5050935093915050565b611e3733836128dd565b611e535760405162461bcd60e51b81526004016109ac906145e2565b611c1484848484612e9a565b60606106eb82612ecd565b600087815261013060209081526040808320815160c0810183528154815260018201546001600160a01b03811694820194909452600160a01b90930460ff1691830191909152600281018054606084019190611ec5906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef1906145ae565b8015611f3e5780601f10611f1357610100808354040283529160200191611f3e565b820191906000526020600020905b815481529060010190602001808311611f2157829003601f168201915b50505050508152602001600382018054611f57906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611f83906145ae565b8015611fd05780601f10611fa557610100808354040283529160200191611fd0565b820191906000526020600020905b815481529060010190602001808311611fb357829003601f168201915b50505091835250506004919091015460ff1615156020918201528101519091506001600160a01b03161580612011575060208101516001600160a01b031633145b61205d5760405162461bcd60e51b815260206004820152601b60248201527f416d6265726669456e6372797074696f6e3a20546f6f2068696768000000000060448201526064016109ac565b600083838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050606084015182519293509115801591506120ad57508051155b806120c35750600081511180156120c357508151155b806120d95750600081511180156120d957508151155b61214b5760405162461bcd60e51b815260206004820152603860248201527f416d6265726669456e6372797074696f6e3a20436f6e74656e742073746f726160448201527f67652063616e2774206265206f7665727772697474656e20000000000000000060648201526084016109ac565b87151560a084015260ff891660408085019190915280516020601f8701819004810282018101909252858152908690869081908401838280828437600092018290525060608801949094525050506080840151604080516020601f8b01819004810282018101909252898152919291908a908a90819084018382808284376000920191909152509293508c925050811590506121e75750845115155b80156121f4575060008151115b1561226e5781511561226e5760405162461bcd60e51b815260206004820152603a60248201527f416d6265726669456e6372797074696f6e3a2043616e2774206368616e67652060448201527f686173682076616c7565206f66206d696e74656420746f6b656e00000000000060648201526084016109ac565b60208501516001600160a01b0316612287573360208601525b60008c8152610130602090815260409182902087518155908701516001820180549389015160ff16600160a01b026001600160a81b03199094166001600160a01b039092169190911792909217909155606086015186919060028201906122ee908261467d565b5060808201516003820190612303908261467d565b5060a091909101516004909101805460ff1916911515919091179055505050505050505050505050565b612335612fd5565b896000819003612365575061022a545b61234e816127d5565b15612365575061022a805460018101909155612345565b612370818686611bfa565b6123b08188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506111de92505050565b61022c546123c8906001600160a01b03166001611c1a565b6123f86001600160a01b038d16156123e0578c6123e2565b335b8260405180602001604052806000815250613030565b61240560008d8385612c91565b871561244b5761244b818a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612acd92505050565b600061245a60208c018c614860565b915050801561247f5761247f826001838e806020019061247a9190614860565b613063565b600061248e60408d018d614860565b91505080156124ae576124ae836000838f806040019061247a9190614860565b6124c4836124bf60208f018f614192565b61327d565b61022d54604051630ef14b2960e01b81526001600160a01b0390911690630ef14b29906124fb9086908f908f908b906004016148d2565b600060405180830381600087803b15801561251557600080fd5b505af1158015612529573d6000803e3d6000fd5b505050508d6001600160a01b03167f4cc0a9c4a99ddc700de1af2c9f916a7cbfdb71f14801ccff94061ad1ef8a80408460405161256891815260200190565b60405180910390a250505061257e60016101f855565b5050505050505050505050565b61022d546001600160a01b03168063f0a3e7e8866125a881611e5f565b8787876040518663ffffffff1660e01b81526004016125cb959493929190614900565b600060405180830381600087803b1580156125e557600080fd5b505af11580156125f9573d6000803e3d6000fd5b50505050806001600160a01b031663e17f62c0338761261789611e5f565b60006040518563ffffffff1660e01b81526004016126389493929190614942565b600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b505050505050505050565b612679612b5a565b6001600160a01b0381166126de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ac565b610fe781612d79565b611030338383613302565b60006001600160e01b03198216632b59e54960e21b14806106eb57506106eb826133c8565b612720816127d5565b610fe75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ac565b6000818152609b6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061279c82611962565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000908152609960205260409020546001600160a01b0316151590565b600081815260ca602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fbd5378dc6d0395c338ca88b324966808490d6a9983bbc7a0f7a8429a44a3176291a4505050565b600054610100900460ff166128755760405162461bcd60e51b81526004016109ac90614998565b61103082826133ed565b600054610100900460ff166128a65760405162461bcd60e51b81526004016109ac90614998565b611a5a61342d565b600054610100900460ff166128d55760405162461bcd60e51b81526004016109ac90614998565b611a5a61345c565b6000806128e983611962565b9050806001600160a01b0316846001600160a01b0316148061293057506001600160a01b038082166000908152609c602090815260408083209388168352929052205460ff165b806129545750836001600160a01b031661294984610911565b6001600160a01b0316145b949350505050565b826001600160a01b031661296f82611962565b6001600160a01b0316146129955760405162461bcd60e51b81526004016109ac906149e3565b6001600160a01b0382166129f75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109ac565b612a048383836001613483565b826001600160a01b0316612a1782611962565b6001600160a01b031614612a3d5760405162461bcd60e51b81526004016109ac906149e3565b6000818152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b03878116808652609a8552838620805460001901905590871680865283862080546001019055868652609990945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612ad6826127d5565b612b395760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016109ac565b600082815260fe60205260409020610a4d828261467d565b610fe78161348f565b6033546001600160a01b03163314611a5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ac565b6000612bbf826127d5565b612c265760405162461bcd60e51b815260206004820152603260248201527f4552433732314c3a206c6f636b206f70657261746f7220717565727920666f72604482015271103737b732bc34b9ba32b73a103a37b5b2b760711b60648201526084016109ac565b6000612c3183611962565b9050806001600160a01b0316846001600160a01b03161480612c7857506001600160a01b03808216600090815260cb602090815260408083209388168352929052205460ff165b806129545750836001600160a01b03166129498461116c565b826001600160a01b0316612ca483611962565b6001600160a01b031614612d055760405162461bcd60e51b815260206004820152602260248201527f4552433732314c3a206c6f636b2066726f6d20696e636f7272656374206f776e60448201526132b960f11b60648201526084016109ac565b600082815260c96020908152604080832084905560ca82529182902080546001600160a01b031916331790558151838152915184926001600160a01b0387811693908916927f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c54299281900390910190a4611c14565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612e2c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ac565b6001600160a01b038381166000818152609c6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b612ea584848461295c565b612eb1848484846134cf565b611c145760405162461bcd60e51b81526004016109ac90614a28565b6060612ed882612717565b600082815260fe602052604081208054612ef1906145ae565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1d906145ae565b8015612f6a5780601f10612f3f57610100808354040283529160200191612f6a565b820191906000526020600020905b815481529060010190602001808311612f4d57829003601f168201915b505050505090506000612f8860408051602081019091526000815290565b90508051600003612f9a575092915050565b815115612fcc578082604051602001612fb4929190614a7a565b60405160208183030381529060405292505050919050565b612954846135d0565b60026101f854036130285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109ac565b60026101f855565b61303a8383613644565b61304760008484846134cf565b610a4d5760405162461bcd60e51b81526004016109ac90614a28565b61306d85856137bf565b8315156000908152610164602090815260408083208884529091528120849055805b8481101561315e5760008484838181106130ab576130ab6147fb565b6130c19260206040909202019081019150614192565b6001600160a01b0316036131175760405162461bcd60e51b815260206004820152601c60248201527f4e46545061796f7574733a20696e76616c69642072656365697665720000000060448201526064016109ac565b838382818110613129576131296147fb565b90506040020160200160208101906131419190614abe565b613154906001600160601b031683614adb565b915060010161308f565b5084156131bb5761271081146131b65760405162461bcd60e51b815260206004820152601e60248201527f455243323938315061796f75743a20696e76616c6964207061796f757473000060448201526064016109ac565b61320d565b61271081111561320d5760405162461bcd60e51b815260206004820181905260248201527f455243323938315061796f75743a20696e76616c696420726f79616c7469657360448201526064016109ac565b60005b84811015610ebe578515156000908152610163602090815260408083208a84529091529020848483818110613247576132476147fb565b835460018101855560009485526020909420604090910292909201929190910190506132738282614aee565b5050600101613210565b6001600160a01b0381166132d35760405162461bcd60e51b815260206004820181905260248201527f4e46545061796f7574733a207a65726f2063726561746f72206164647265737360448201526064016109ac565b6000918252610162602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b816001600160a01b0316836001600160a01b0316036133635760405162461bcd60e51b815260206004820152601f60248201527f4552433732314c3a206c6f636b20617070726f766520746f2063616c6c65720060448201526064016109ac565b6001600160a01b03838116600081815260cb6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527fbb3b2937fc41058c97e1ad0d0bbac3c664894dd823924eb7717d814fe700f0349101612e8d565b60006001600160e01b0319821663c8f12ba760e01b14806106eb57506106eb8261381b565b600054610100900460ff166134145760405162461bcd60e51b81526004016109ac90614998565b6097613420838261467d565b506098610a4d828261467d565b600054610100900460ff166134545760405162461bcd60e51b81526004016109ac90614998565b611a5a613840565b600054610100900460ff16611a5a5760405162461bcd60e51b81526004016109ac90614998565b611c148484848461386f565b613498816138fe565b600081815260fe6020526040902080546134b1906145ae565b159050610fe757600081815260fe60205260408120610fe791613c9a565b60006001600160a01b0384163b156135c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613513903390899088908890600401614b30565b6020604051808303816000875af192505050801561354e575060408051601f3d908101601f1916820190925261354b91810190614b6d565b60015b6135ab573d80801561357c576040519150601f19603f3d011682016040523d82523d6000602084013e613581565b606091505b5080516000036135a35760405162461bcd60e51b81526004016109ac90614a28565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612954565b506001949350505050565b60606135db82612717565b60006135f260408051602081019091526000815290565b90506000815111613612576040518060200160405280600081525061363d565b8061361c84613940565b60405160200161362d929190614a7a565b6040516020818303038152906040525b9392505050565b6001600160a01b03821661369a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ac565b6136a3816127d5565b156136f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6136fe600083836001613483565b613707816127d5565b156137545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ac565b6001600160a01b0382166000818152609a6020908152604080832080546001019055848352609990915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8015156000818152610164602090815260408083208684528252808320839055928252610163815282822085835290529081206137fb91613cd4565b5060009081526101626020526040902080546001600160a01b0319169055565b60006001600160e01b0319821663091b845760e41b14806106eb57506106eb826139d2565b600054610100900460ff166138675760405162461bcd60e51b81526004016109ac90614998565b611a5a6139f7565b61387b84848484613a27565b815b818110156138f757600081815260c960205260409020544210156138ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732314c3a20746f6b656e207472616e73666572207768696c65206c6f60448201526318dad95960e21b60648201526084016109ac565b60010161387d565b5050505050565b600061390982611962565b905061391482613aaf565b50600090815260c96020908152604080832083905560ca909152902080546001600160a01b0319169055565b6060600061394d83613b52565b60010190506000816001600160401b0381111561396c5761396c613fde565b6040519080825280601f01601f191660200182016040528015613996576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846139a057509392505050565b60006001600160e01b031982166301ffc9a760e01b14806106eb57506106eb82613c2a565b600054610100900460ff16613a1e5760405162461bcd60e51b81526004016109ac90614998565b611a5a33612d79565b6001811115611c14576001600160a01b03841615613a6d576001600160a01b0384166000908152609a602052604081208054839290613a67908490614b8a565b90915550505b6001600160a01b03831615611c14576001600160a01b0383166000908152609a602052604081208054839290613aa4908490614adb565b909155505050505050565b6000613aba82611962565b9050613aca816000846001613483565b613ad382611962565b6000838152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b038516808552609a845282852080546000190190558785526099909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613b915772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613bbd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613bdb57662386f26fc10000830492506010015b6305f5e1008310613bf3576305f5e100830492506008015b6127108310613c0757612710830492506004015b60648310613c19576064830492506002015b600a83106106eb5760010192915050565b60006001600160e01b0319821663a80646d160e01b14806106eb57506106eb8260006001600160e01b031982166380ac58cd60e01b1480613c7b57506001600160e01b03198216635b5e139f60e01b145b806106eb57506301ffc9a760e01b6001600160e01b03198316146106eb565b508054613ca6906145ae565b6000825580601f10613cb6575050565b601f016020900490600052602060002090810190610fe79190613cee565b5080546000825590600052602060002090810190610fe791905b5b80821115613d035760008155600101613cef565b5090565b6001600160e01b031981168114610fe757600080fd5b600060208284031215613d2f57600080fd5b813561363d81613d07565b600060208284031215613d4c57600080fd5b5035919050565b60005b83811015613d6e578181015183820152602001613d56565b50506000910152565b60008151808452613d8f816020860160208601613d53565b601f01601f19169290920160200192915050565b60208152600061363d6020830184613d77565b6001600160a01b0381168114610fe757600080fd5b8035613dd681613db6565b919050565b60008060408385031215613dee57600080fd5b8235613df981613db6565b946020939093013593505050565b60008083601f840112613e1957600080fd5b5081356001600160401b03811115613e3057600080fd5b602083019150836020828501011115613e4857600080fd5b9250929050565b60008060008060008060808789031215613e6857600080fd5b8635613e7381613db6565b95506020870135613e8381613db6565b945060408701356001600160401b0380821115613e9f57600080fd5b613eab8a838b01613e07565b90965094506060890135915080821115613ec457600080fd5b50613ed189828a01613e07565b979a9699509497509295939492505050565b600080600060608486031215613ef857600080fd5b8335613f0381613db6565b92506020840135613f1381613db6565b929592945050506040919091013590565b60008060008060008060008060a0898b031215613f4057600080fd5b8835975060208901356001600160401b0380821115613f5e57600080fd5b613f6a8c838d01613e07565b909950975060408b0135915080821115613f8357600080fd5b613f8f8c838d01613e07565b909750955060608b0135915080821115613fa857600080fd5b50613fb58b828c01613e07565b909450925050608089013560058110613fcd57600080fd5b809150509295985092959890939650565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561400e5761400e613fde565b604051601f8501601f19908116603f0116810190828211818310171561403657614036613fde565b8160405280935085815286868601111561404f57600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561407c57600080fd5b8235915060208301356001600160401b0381111561409957600080fd5b8301601f810185136140aa57600080fd5b6140b985823560208401613ff4565b9150509250929050565b80358015158114613dd657600080fd5b600080604083850312156140e657600080fd5b823591506140f6602084016140c3565b90509250929050565b6000806000806060858703121561411557600080fd5b8435935060208501356001600160401b0381111561413257600080fd5b61413e87828801613e07565b909450925050604085013561415281613db6565b939692955090935050565b60008060006060848603121561417257600080fd5b833561417d81613db6565b95602085013595506040909401359392505050565b6000602082840312156141a457600080fd5b813561363d81613db6565b600080604083850312156141c257600080fd5b82356141cd81613db6565b915060208301356141dd81613db6565b809150509250929050565b6000806000604084860312156141fd57600080fd5b8335925060208401356001600160401b0381111561421a57600080fd5b61422686828701613e07565b9497909650939450505050565b6000806040838503121561424657600080fd5b823561425181613db6565b91506140f6602084016140c3565b60008060006060848603121561427457600080fd5b833592506020840135915061428b604085016140c3565b90509250925092565b604080825283519082018190526000906020906060840190828701845b828110156142d65781516001600160a01b0316845292840192908401906001016142b1565b5050508381038285015284518082528583019183019060005b8181101561430b578351835292840192918401916001016142ef565b5090979650505050505050565b6000806000806080858703121561432e57600080fd5b843561433981613db6565b9350602085013561434981613db6565b92506040850135915060608501356001600160401b0381111561436b57600080fd5b8501601f8101871361437c57600080fd5b61438b87823560208401613ff4565b91505092959194509250565b803560ff81168114613dd657600080fd5b600080600080600080600060a0888a0312156143c357600080fd5b873596506143d360208901614397565b95506143e1604089016140c3565b945060608801356001600160401b03808211156143fd57600080fd5b6144098b838c01613e07565b909650945060808a013591508082111561442257600080fd5b5061442f8a828b01613e07565b989b979a50959850939692959293505050565b60006060828403121561445457600080fd5b50919050565b60008060008060008060008060008060006101008c8e03121561447c57600080fd5b6144858c613dcb565b9a5060208c013599506001600160401b038060408e013511156144a757600080fd5b6144b78e60408f01358f01614442565b99508060608e013511156144ca57600080fd5b6144da8e60608f01358f01613e07565b909950975060808d01358110156144f057600080fd5b6145008e60808f01358f01613e07565b909750955060a08d013581101561451657600080fd5b506145278d60a08e01358e01613e07565b909450925061453860c08d01614397565b915060e08c013590509295989b509295989b9093969950565b6000806000806060858703121561456757600080fd5b8435935060208501356001600160401b0381111561458457600080fd5b61459087828801613e07565b90945092506145a3905060408601614397565b905092959194509250565b600181811c908216806145c257607f821691505b60208210810361445457634e487b7160e01b600052602260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f821115610a4d57600081815260208120601f850160051c810160208610156146565750805b601f850160051c820191505b8181101561467557828155600101614662565b505050505050565b81516001600160401b0381111561469657614696613fde565b6146aa816146a484546145ae565b8461462f565b602080601f8311600181146146df57600084156146c75750858301515b600019600386901b1c1916600185901b178555614675565b600085815260208120601f198616915b8281101561470e578886015182559484019460019091019084016146ef565b508582101561472c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160401b0383111561475357614753613fde565b6147678361476183546145ae565b8361462f565b6000601f84116001811461479b57600085156147835750838201355b600019600387901b1c1916600186901b1783556138f7565b600083815260209020601f19861690835b828110156147cc57868501358255602094850194600190920191016147ac565b50868210156147e95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106eb576106eb614811565b60008261485b57634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e1984360301811261487757600080fd5b8301803591506001600160401b0382111561489157600080fd5b6020019150600681901b3603821315613e4857600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8481526060602082015260006148ec6060830185876148a9565b905060ff8316604083015295945050505050565b8581526080602082015260006149196080830187613d77565b828103604084015261492c8186886148a9565b91505060ff831660608301529695505050505050565b60018060a01b03851681528360208201526080604082015260006149696080830185613d77565b90506005831061498957634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351614a8c818460208801613d53565b835190830190614aa0818360208801613d53565b01949350505050565b6001600160601b0381168114610fe757600080fd5b600060208284031215614ad057600080fd5b813561363d81614aa9565b808201808211156106eb576106eb614811565b8135614af981613db6565b81546001600160a01b03199081166001600160a01b039290921691821783556020840135614b2681614aa9565b60a01b1617905550565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614b6390830184613d77565b9695505050505050565b600060208284031215614b7f57600080fd5b815161363d81613d07565b818103818111156106eb576106eb61481156fea26469706673582212202e65ca342703b2175cdc4203f547b2814e97c891d740dd2e0c1b20d0b040043d64736f6c63430008110033",
"nonce": 38,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=137&address=0x28aAc2D0B8e4292F499675014be4C323c60563c1&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "129881639152222868",
"evmTokens": [
{
"name": "$ get-usdc.com",
"symbol": "Visit https://get-usdc.com to claim rewards",
"decimals": "18",
"address": "0x011de7ae82cabe65824114110773096181bb0215",
"balance": "1049000000000000000000",
"assetType": "ERC20",
"USDPrice": null
},
{
"name": "Guild Pin",
"symbol": "GUILD",
"decimals": "0",
"address": "0xff04820c36759c9f5203021fe051239ad2dcca8a",
"balance": "1",
"assetType": "ERC721",
"tokenId": "286405"
},
{
"name": "Gateway Protocol",
"symbol": "PASS",
"decimals": "0",
"address": "0xf65b6396df6b7e2d8a6270e3ab6c7bb08baef22e",
"balance": "1",
"assetType": "ERC721",
"tokenId": "240776"
},
{
"name": "1000$ Drop: drop-usd.me",
"symbol": "drop-usd.me",
"decimals": "0",
"address": "0xf4241ec87b3f84a1183e701f1f6aa35ebc366922",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "Fallen Star",
"symbol": "STAR",
"decimals": "0",
"address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
"balance": "1",
"assetType": "ERC721",
"tokenId": "105243"
},
{
"name": "Fallen Star",
"symbol": "STAR",
"decimals": "0",
"address": "0xe5325804d68033edf65a86403b2592a99e1f06de",
"balance": "1",
"assetType": "ERC721",
"tokenId": "105170"
},
{
"name": "Voucher USDC Coin",
"symbol": "Voucher",
"decimals": "0",
"address": "0xcf2576238640a3a232fa6046d549dfb753a805f4",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "Polyhedra 2024",
"symbol": "Polyhedra 2024",
"decimals": "0",
"address": "0xcd4b2e538c9d2c1ca117c8f5f2e8fa56f6ba1069",
"balance": "1",
"assetType": "ERC721",
"tokenId": "250471"
},
{
"name": "$2000 USDC",
"symbol": "Voucher",
"decimals": "0",
"address": "0xc3377442b2435ba373336d1a2ac9a3ef99a7b4f8",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "$2000 USDC Voucher🎁",
"symbol": "2000usdc.org",
"decimals": "0",
"address": "0xbd6b51ebaa019d7c7ec7b4474737f94e95c8067d",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "1"
},
{
"name": "$1000 Rewards",
"symbol": "1000-usdt.com",
"decimals": "0",
"address": "0xbc48a74b77827c8cad46b7f9cc495585c74d3b82",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Remote procedural call URL.
The public address of the user.
The page number that the user wants to fetch.
The transaction sorting order.
asc or desc.
By default, desc.
Sample Request
Copy https://api.expand.network/chain/getusertransactions?address=0x006Dda54A6a3FAC2742F6db38029ADCd2dFE0A52&page=1&sortOrder=asc&chainId=137
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "1",
"currentPage": "1",
"transactions": [
{
"block_signed_at": "2023-11-02T06:35:19Z",
"block_height": 49443643,
"block_hash": "0xb09ecd73ac6dd439a56ff8d60f1a5e8185cfb7c6f2522640b5274e84016d76e9",
"tx_hash": "0x7f148609b727ae09ac08890ed0d06ed6aedcb3dcd85398a048b34e324a32c6ba",
"tx_offset": 105,
"successful": true,
"miner_address": "0x0000000000000000000000000000000000000000",
"from_address": "0x44d4e245f1f82a2c788b8858ca7dffd07d28c1d9",
"from_address_label": null,
"to_address": "0xe06bd4f5aac8d0aa337d13ec88db6defc6eaeefe",
"to_address_label": null,
"value": "0",
"value_quote": 0,
"pretty_value_quote": "$0.00",
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Matic Token",
"contract_ticker_symbol": "MATIC",
"contract_address": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
"supports_erc": [
"erc20"
],
"logo_url": "https://www.datocms-assets.com/86369/1677870347-property-1-polygon-zkevm-icon-white.svg"
},
"gas_offered": 77293,
"gas_spent": 51529,
"gas_price": 68783029951,
"fees_paid": "3544320750345079",
"gas_quote": 0.0023425350948726663,
"pretty_gas_quote": "$0.00",
"gas_quote_rate": 0.6609263833259432,
"explorers": [
{
"label": null,
"url": "https://polygonscan.com/tx/0x7f148609b727ae09ac08890ed0d06ed6aedcb3dcd85398a048b34e324a32c6ba"
}
]
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "137",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "137",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "137",
"rawTransaction": "0xf86c808511cf7b7e2f830a3b4f94a67e9b68c41b0f26184d64c26e0b2b81466e599485e8d4a5100080820135a0a6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88a04830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x11cf7b7e2f"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3b4f"
},
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
},
"data": "0x",
"chainId": 137,
"v": 309,
"r": "0xa6212e566b2e319cd45625034eed1579feb6b8663f470cebf0a676efec134a88",
"s": "0x4830a7db11731943ebb2f2b78d054ddcf3153abe5571efb235efec00f555a870",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"hash": "0xf8804fa797eabdeea7974497ec5d284da838043c84ee46f4211eec21f5fb3b86",
"type": null
},
"assetChanges": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0xe8d4a51000"
}
}
}
}
Algorand /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL.
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754&chainId=1300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "6397769350"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=26664056&connectionType=idx&chainId=1300
Sample Response
Copy
{
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": 27000000,
"hash": null,
"miner": null,
"nonce": null,
"number": "26664056",
"parentHash": "3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=",
"size": null,
"timestamp": 1675224169,
"totalDifficulty": null,
"transactions": [
{
"asset-transfer-transaction": {
"amount": 0,
"asset-id": 27165954,
"close-amount": 0,
"receiver": "UWGOC45RXKERIWFF2Z6LR4VHSEDDHLRH7YLZQGS7WCZN5OSNZZLEDGWZ7A"
},
"close-rewards": 0,
"closing-amount": 0,
"confirmed-round": 26664056,
"fee": 1000,
"first-valid": 26664053,
"genesis-hash": "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
"genesis-id": "mainnet-v1.0",
"id": "HRTJZJMTW5R3T7FJCBK433WWA6DACPEFRRLTFQO2NVDPYNYZLYMQ",
"intra-round-offset": 0,
"last-valid": 26665053,
"note": "eyJzZW5zb3JJZCI6ICJQVzpLQV8wMTcwMzciLCAic3RyZWFtcyI6IDY2LCAiZGF0YSI6ICJzdmdNMmlETW5hblFmVjhhZWM0bGhJejJHcERPTEJWUHBzYmFFelBFQWd5K1VRN29hVFdCSnZzQkdxWU1RWHlINGpyUW94emxKNjE5LzN4dy8zbnpZTEEzWm9nOHhtWGNlRzBKV0o3V1h6ZXRLY0RNWi9sR1hmK005cDNxQXlWTlR5MXY0OUhrSjhyd1hzUmI1dCtHbFlIbFh5WW1ubGJtRUFlOFQrbExrcjRHNWpTTG1HRWR1M28xS3RDMGM5dzQyamlFSnR4eGNTdUtGaXdQekNOUGVUZW5OOGJjcTZNNThGbWpKRHIwS1MzbkxzbTk4SG1SdjNQYlB6Q0Q0Wk1BdmVOdWNMY2oxRXM3bFhzSjVVMkZBQXlsOFM3a0tYeitPZkJsbUZ2UW5xa0RKZ1lWeS9WbUtEM2dHOVM5MXYrWDZSQTJzOGN5ZVBpSVN5aVFwdFVPSzUvTWFtdzFvWVFIWW5PV29SdmpUYWFhaHB1RTErZm1teGdOTWszTzNVRTRlcm9pbU82cmR0MTNNM0VYQnQ1TmJ1ZnpqbTVwV0EyNGtHYXdNQ2dhUGN0dVd3dGl4M1RzTVd5bExmeTNZR05LSklQbkk1SkwxaHUrcVFjME9tSjNQam52N2tvM01LalFUT3ZiTjY3MDBISVU0VjM4VzBLNWJzU3hJM3ZNVFdlZTFxZWhONEoyU3poU1V1MmNKOHhNZ1JnRk0yTTY2dll4cVozbnhDM3drbFc5eTkxNXFjdzV6Sk1YL0J2ekdvbklqSHhCVTZzKzVOdVozd2lVeHpLZk1WSjhlaXVQYW16U2F4YVpnaFA4USswZVRudzdtSklkRmo5MnpuT0ptT3EvRDUzdklzbjlUY1Y3aS85bVAzZ01WaEE4NXJrS0hoUXV1N3JFWW9JK2szWDVPVW9CR0dTN2lpQllsUUgwaVdkR3lWdUdxT2JCVG55TXpBUEpKNXVyR3MzUHhPTXVpNkNwT3BDSW8vZ3RhYXJTUVFyc2RkTDhqL09nbzYvOU5hU0tNQmp2VS9zMmRFbzJLV2pROWY2Zk1YYmFSMEhnRE8yU2RZMEd5MWdKQkw3ZjNxUFAvWXIrMUNTckpQaFZQVFJaIn0=",
"receiver-rewards": 0,
"round-time": 1675224169,
"sender": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
"sender-rewards": 0,
"signature": {
"sig": "Tx1z6WIErcxvKsmNxF3rviQsd/NYEcDKQUiMF7CaGM2F2vL2Pbu1K7iFMIyr+Thhmk8bzRE9UgGLZxrViI5pBQ=="
},
"tx-type": "axfer"
},
{
"asset-transfer-transaction": {
"amount": 0,
"asset-id": 27165954,
"close-amount": 0,
"receiver": "POJOKVRKPJHAHQAT2PMAJOL6CJNEVOWNVE72AAIGG7KC6IMDFH2UMM74TU"
},
"close-rewards": 0,
"closing-amount": 0,
"confirmed-round": 26664056,
"fee": 1000,
"first-valid": 26664054,
"genesis-hash": "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
"genesis-id": "mainnet-v1.0",
"id": "YLD22S73XUSJUK5CPIH6JSX7LC3G7IHHNEDKIWZN6MCUKFQA227Q",
"intra-round-offset": 1,
"last-valid": 26665054,
"note": "gaZzdHJpbmfaAex1RUJQRzlHbFdlV1VDTmpqY3hRaFhJVC9YaWN2cVRKdHozRWtxQmlnZzc1cWQzZzFSbnBvUzBjMFIyVTVZVXRGU2k5V1JuVlNURVZEWTBZd1RqSlFaR05NY2tNMlJUZ3JTVWhxTHk5UmRTdENhMmwzYVVwTFRuQmtUREJuTTNoWFYxZElValJqYlZZcldYbGxhMVJvVURWUFpXdHFaRTlhT0dsbFJXOVljM0E0TkRkVWRrNTNLekowUlhwdk1sUjVURVk1VjFoVFpVZFNNa1JqT1d0cU5qZFRiREZZY21kTFltSkJSV1F3UWs5TE5rTjZZM0ZqYkV0UWNtdFRiemxTUjNSNEx6QnFVREptUVZwQldscHRXakp0ZFRWalowODNMMHRrWWswMFJGTTVNbEJWVVVoSFJsUTNUVWc0VWxKWldqSjFTR1F6ZWtaTVdsWlNTSEY1WjBscFVXb3hhRWQxT1V0RWRrVmFhRGw2V1dsV2Mwa3haV3hPZWtwdFRVZDVXRm81VmpFdlZEQnJVRFpMWkhSdmFGVlRWalZQU25GQlpIQlNURE5yVWtwU2RXTjZPRVI0UkZwbFExaERjemhVTVVOYU0wSllWVGhFWW5WTldERnJXRTFYY1VGWmVYZFpkVVZuVTJ0eGJ6MD0=",
"receiver-rewards": 0,
"round-time": 1675224169,
"sender": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
"sender-rewards": 0,
"signature": {
"sig": "1+TS0ZcGT7TozpTm23t4heNOF2PyWCg42ucoulDVMYM8vI0vylFTTzn4jIxSbcKMnuxje9R8LGy364zz++eJBg=="
},
"tx-type": "axfer"
}
],
"transactionsRoot": null,
"uncles": null
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=1300&transactionHash=OLCUTSEF6VXYQDBFWF4HRYMZSIWBX6KGK6Z4LZ6ENXKOFQRVNT7Q&connectionType=idx
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "OLCUTSEF6VXYQDBFWF4HRYMZSIWBX6KGK6Z4LZ6ENXKOFQRVNT7Q",
"transactionStatus": null,
"blockNumber": 26668118,
"timestamp": null,
"from": "ZW3ISEHZUHPO7OZGMKLKIIMKVICOUDRCERI454I3DB2BH52HGLSO67W754",
"to": null,
"value": null,
"transactionFees": 1000,
"gas": null,
"gasPrice": null,
"input": null,
"nonce": null,
"network": null
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
The encoded transaction, obtained from signed transaction.
Remote procedural call URL.
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1300",
"transactionHash": "7MK6WLKFBPC323ATSEKNEKUTQZ23TCCM75SJNSFAHEM65GYJ5ANQ"
}
}
Base /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance?address=0xf8fdd0c01e286e1f692f1581e155bafe4896ef17&chainId=8453
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "7710580086784116"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?chainId=8453&blockNumber=6283173
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 30000000,
"gasUsed": 918397,
"hash": "0x97250c54e310eb29a30b7ab4184b1cce9e466e7063b5590d52b73709e0bb230e",
"miner": "0x4200000000000000000000000000000000000011",
"nonce": "0x0000000000000000",
"number": 6283173,
"parentHash": "0xed86a845409a882270d4512487b7dafdfe91157da6d1e6c50d738de5a4a3ae92",
"size": 4031,
"timestamp": 1699355693,
"totalDifficulty": "0",
"transactions": [
"0xefd80cb6f1e2b08a00ae403b9c07db6722c9dd7e98498c7e8e658a20c28f9b44",
"0x56bda2ad97b7dc3609c97a5bfff3837d3b5394104d28d16c9e7a58b6d87dfb89",
"0x88b6a08eea996e17dc67d917fde9cb4286163ee40a1a93a72458f88d0dde6535",
"0xf9e572807b753ee98330eb84b7db4b6c5a14bcbb9966dd11e08b0af73a52b280",
"0x43996c7f898e15d08d2157a0d4ed856a92c073c3c4752c95ae0f1cd8f3698a8f",
"0x73d955224527330ef12cac53196ae3708a0d8feef0184474266c3a6078205e35"
],
"transactionsRoot": "0xb5bde09f63711b915471936e273ed18b8dc7d6038ce053fe629ae82a66133bff",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=8453
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100000061"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=8453&address=0xCA6f5B49967B492FEE81cA9C92a63a98903DD965
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000007dbc67df4d4ea21420b1baa077028d2c1cca7399"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=8453&transactionHash=0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xcf15634c154cb70b8e02268eedd58d4949312414f796ca3296eebe07dc94ffb4",
"transactionStatus": true,
"blockNumber": "6283395",
"timestamp": null,
"from": "0x2c40a57BC2E05eBcd00C2c007097f838c7b3a115",
"to": "0x10d16248bED1E0D0c7cF94fFD99A50c336c7Bcdc",
"value": "264853642455711",
"transactionFees": "27221958120",
"gas": "545832",
"gasPrice": "58632",
"input": "0x2d62fc1a000000000000000000000000000000000000000000000000000000000000006a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000034ac8b7d0000000000000000000000000000000000000000000000000000000034691f45000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e00002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068c7abb8b1c3d1ce467e28265770f3a7ecf3265400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a11500000000000000000000000000000000000000000000000000000000000000000000000000000000000000142c40a57bc2e05ebcd00c2c007097f838c7b3a115000000000000000000000000",
"nonce": 7,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=8453&address=0xA5af143fd6f6093FDcF6D51d3641F08eaa07d53f&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "3975672043073686",
"evmTokens": [
{
"name": "The Doge NFT",
"symbol": "DOG",
"decimals": "18",
"address": "0xafb89a09d82fbde58f18ac6437b3fc81724e4df6",
"balance": "10000000000000000000",
"assetType": "ERC20",
"USDPrice": "0.013040102445834898"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId": "8453",
"rawTransaction": "0xf86a80830f4272830a3d8794a67e9b68c41b0f26184d64c26e0b2b81466e5994843b9aca00808302948ca0e073bcaa02ab49f019278be707e3e50433ac7ae6107649a8b1cbdbc368e9482ea05ba36d559c5b70ffa289f90a572adc0863c46fdd067c40c2f37b9ea666fcc8e7"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "8453",
"transactionHash": "0x2e5309f53a8c11841afc88c12c099e5c5c59271379fa3cc65df863fa18a64a60"
}
}
Arbitrum /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x2cc78c19e6e5c8d663c99d0f576eb6653230d8e5&chainId=42161
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "31694433813985696"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=42161
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 57346493,
"gasUsed": 1482,
"hash": "0x9363fe08f3264f657af4d02e90ab82969a03a89f6825198a25b3d4a5b454bc97",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0x3869bab721f6ed96e2a097ce77018d7a8dfbdb7a1ac5e5b3b5078c083cebb06f",
"size": 736,
"timestamp": 1635132745,
"totalDifficulty": "0",
"transactions": [
"0x7b0abe54bb652fb69da1169aa20cf91753d0d9e44e698cdb14fb363ca938737b"
],
"transactionsRoot": "0x6e4dd2ef1c7eb942b254c4bf28a5a3a18a401a31227fc22b22c33181d879f693",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=42161
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100000000"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=42161&address=0x825d6bc6e67C255c2a053bbd7c6100eEc4025656
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000000547f5965b015d8f6c92e6bcda6ca040567fd238"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=42161&transactionHash=0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0x28c980e3d75a98d29269bdf88d6e375d1657e96c3a1412e5347aa84f03542896",
"transactionStatus": null,
"blockNumber": 56842886,
"timestamp": null,
"from": "0x0547F5965B015D8F6C92E6BCDA6Ca040567Fd238",
"to": "0x825d6bc6e67C255c2a053bbd7c6100eEc4025656",
"value": "0",
"transactionFees": "57732100000000",
"gas": 577321,
"gasPrice": "100000000",
"input": "0x52f7c98800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": 5,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=42161&address=0x299d68A01B4c9C550c0CCDCa8EE3C616d319214E&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "728003934801000",
"evmTokens": [
{
"name": "Global Token",
"symbol": "GBL",
"decimals": "18",
"address": "0xc14a7747cfec02cfea62e72bb93538de6b2078e6",
"balance": "39515873923087022849",
"assetType": "ERC20",
"USDPrice": "7.912071535453639"
},
{
"name": "Tether USD",
"symbol": "USDT",
"decimals": "6",
"address": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"balance": "23432910",
"assetType": "ERC20",
"USDPrice": "1.0000000000000002"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "42161",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "42161",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "42161",
"rawTransaction": "0xf86a808405f5e100830c885d946fb447ae94f5180254d436a693907a1f57696900839896808083014986a0ef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9a04e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x05f5e100"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0c885d"
},
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x989680"
},
"data": "0x",
"chainId": 42161,
"v": 84358,
"r": "0xef42c905354ab2e801e5d82dde6ac0524cc508d52efcf09e142f10d353cbebd9",
"s": "0x4e74de901d830125391974592395e1c605b1526585c5d69154e4b83b81d8cc50",
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"hash": "0x1f625c983d622282e4493a943da892bdddd8c164026e67a5f5ac9f175ded0139",
"type": null
},
"assetChanges": {
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x989680"
}
}
}
}
Near Supported Mainnnet Tokens for Portfolio EndpointName: SWEAT
Address: token.sweat
Name: Aurora
Address: aaaaaa20d9e0e2461697782ef11675f668207961.factory.bridge.near
Name: Realis
Address: token.v1.realisnetwork.near
Name: LiNEAR
Address: linear-protocol.near
Name: USD Coin
Address: a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.factory.bridge.near
Name: Tether USD
Address: usdt.tether-token.near
Name: Wrapped NEAR fungible token
Address: wrap.near
Name: Ref Finance Token
Address: token.v2.ref-finance.near
Name: Tether USD
Address: dac17f958d2ee523a2206206994597c13d831ec7.factory.bridge.near
Name: Staked NEAR
Address: meta-pool.near
Name: Ether
Address: aurora
Name: Octopus Network Token
Address: f5cfbc74057c610c8ef151a439252680ac68c6dc.factory.bridge.near
Name: Dai Stablecoin
Address: 6b175474e89094c44da98b954eedeac495271d0f.factory.bridge.near
Name: Wrapped BTC
Address: 2260fac5e5542a773aa44fbcfedf7c193bc2c599.factory.bridge.near
Name: Meta Token
Address: meta-token.near
Name: Aurigami Token
Address: 1ab43204a195a0fd37edec621482afd3792ef90b.factory.bridge.near
Name: Pulse
Address: 52a047ee205701895ee06a375492490ec9c597ce.factory.bridge.near
Name: PembRock
Address: token.pembrock.near
Name: SeatlabNFT
Address: token.stlb.near
Name: Burrow Token
Address: token.burrow.near
Name: Wootrade Network
Address: 4691937a7508860f876c9c0a2a617e7d9e945d4b.factory.bridge.near
Name: HAPI
Address: d9c2d319cd7e6177336b0a9c93c21cb48d84fb54.factory.bridge.near
Name: PARAS
Address: token.paras.near
Name: Skyward Finance Token
Address: token.skyward.near
Name: NearPad Token
Address: ea7cc765ebc94c4805e3bff28d7e4ae48d06468a.factory.bridge.near
Name: Flux Token
Address: 3ea8ea4237344c9931214796d9417af1a1180770.factory.bridge.near
Name: YouMinter
Address: e99de844ef3ef72806cf006224ef3b813e82662f.factory.bridge.near
Name: Frax Share
Address: 3432b6a60d23ca0dfca7761b7ab56459d9c964d0.factory.bridge.near
Name: NEKO
Address: ftv2.nekotoken.near
Name: ABR
Address: abr.a11bd.near
Name: Bastion
Address: 059a1f1dea1020297588c316ffc30a58a1a0d4a2.factory.bridge.near
Name: Celo
Address: celo.token.a11bd.near
Name: Stader
Address: 30d20208d987713f46dfd34ef128bb16c404d10f.factory.bridge.near
Name: Wrapped Ether
Address: c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.factory.bridge.near
Name: 1MILNFT
Address: a4ef4b0b23c1fc81d3f9ecf93510e64f58a4a016.factory.bridge.near
Name: Solana
Address: sol.token.a11bd.near
Name: marma j token
Address: marmaj.tkn.near
Name: Chronicle
Address: 06a00715e6f92210af9d7680b584931faf71a833.factory.bridge.near
Name: Huobi BTC
Address: 0316eb71485b0ab14103307bf65a021042c6d380.factory.bridge.near
Name: Frax
Address: 853d955acef822db058eb8505911ed77f175b99e.factory.bridge.near
Name: BlocksquareToken
Address: 509a38b7a1cc0dcd83aa9d06214663d9ec7c7f4a.factory.bridge.near
Name: DODO bird
Address: 43dfc4159d86f3a37a5a4b3d4580b888ad7d4ddd.factory.bridge.near
Name: Celo Dollar
Address: cusd.token.a11bd.near
Name: Basic Attention Token
Address: 0d8775f648430679a709e98d2b0cb6250d2887ef.factory.bridge.near
Name: CRO
Address: a0b73e1ff0b80914ab6fe0444e65848c4c34450b.factory.bridge.near
Name: Crafting Finance
Address: 508df5aa4746be37b5b6a69684dfd8bdc322219d.factory.bridge.near
Name: moda
Address: 1117ac6ad6cdf1a3bc543bad3b133724620522d5.factory.bridge.near
Name: Uniswap
Address: 1f9840a85d5af5bf1d1762f925bdaddc4201f984.factory.bridge.near
Name: Scamfari
Address: 8353b92201f19b4812eee32efd325f7ede123718.factory.bridge.near
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user.
GET
https://api.expand.network/chain/portfolio
Query Parameters
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
Solana /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user.
GET
https://api.expand.network/chain/portfolio
Query Parameters
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
Remote procedural call URL.
Refer to the page for details.
Refer to the page for details.
Comma-separated value of user addresses.
Starting block of the range.
The next page's token. Can be found at the end of the response.
The transaction sorting order.
asc or desc.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Copy https://api.expand.network/chain/getbalance/?address=app.nearcrowd.near&chainId=1200
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "276604143416550089062799879"
}
}
Copy https://api.expand.network/chain/getblock?blockNumber=48208733&chainId=1200
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": "100000000",
"hash": "EH2EUAcfQuVtwgjbSy1cYSWxTqnuoE6hB7Qs3yUkwtTi",
"miner": null,
"nonce": null,
"number": "48208733",
"parentHash": "A4DPUSm6WCm34LTRLHrmVdVDobC37PjHqACd2srWGXeQ",
"size": null,
"timestamp": 1632130984114315800,
"totalDifficulty": null,
"transactions": [
{
"balance_burnt": "4794491933184300000000",
"chunk_hash": "J4SbJiazEWAHnNLHTEq6FvCQbfNP2zoQjeUXDhJ7sDPz",
"encoded_length": 3630,
"encoded_merkle_root": "CegYTGt7DA7RTmAAvH7Vr4ZLdzocMXN4AYzZPmcp7P1m",
"gas_limit": 1000000000000000,
"gas_used": 64561954584952,
"height_created": 48208733,
"height_included": 48208733,
"outcome_root": "81Ces8UVPcU2KqHJs3Pa3vJWgHZDyh8stsUfrPYRY3jo",
"outgoing_receipts_root": "Fq3y8c1vT5E6erZL6VwNegmcbXMUsozfychmFDhiHpie",
"prev_block_hash": "A4DPUSm6WCm34LTRLHrmVdVDobC37PjHqACd2srWGXeQ",
"prev_state_root": "2MLkUCQj4sHVGuVTqwKgTh47Q1fsGSXBc2RSopEUzFx2",
"rent_paid": "0",
"shard_id": 0,
"signature": "ed25519:35FPeXGCemZeajdr1D99LGFAibHZNpGQY5LPt5N3aAYxT3xqZyTSJ6S8CxTvRqxMBGnrDz7WALVLcksmdjkrHNvh",
"tx_root": "6RyWHXk3ygrJTWUvF1BC955Fo2oC1HXKZJKp6daXFSes",
"validator_proposals": [],
"validator_reward": "0"
}
],
"transactionsRoot": "HDgRo5ZfnEW49HbYK6FrVzovDKvxDnexTvsNHmKtkXT2",
"uncles": null
}
}
Copy https://api.expand.network/chain/gettransaction?chainId=1200&transactionHash=28CYUY3Jcmjjy19rx5x4GUp7kWKSuxgTuzsnm6WbjqgR
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "28CYUY3Jcmjjy19rx5x4GUp7kWKSuxgTuzsnm6WbjqgR",
"blockNumber": "D2rC8zK6JkFDXuewMH3g15S71whhjJ6arr6ATHLXGQUF",
"timestamp": null,
"from": "app.nearcrowd.near",
"to": "app.nearcrowd.near",
"value": null,
"transactionFees": 2428517994378,
"gas": null,
"gasPrice": null,
"input": [
{
"FunctionCall": {
"args": "eyJ0YXNrX29yZGluYWwiOjEsImlzX2hvbmV5cG90IjpmYWxzZSwiaG9uZXlwb3RfcHJlaW1hZ2UiOlsxMDQsOTksMTAzLDExMCwxMTMsMTA4LDExMiwxMTEsMTA4LDExOCwxMDYsOTgsMTE5LDExNSwxMjEsMTE5XSwidGFza19wcmVpbWFnZSI6WzcwLDU3LDIwMSwxMjQsMTE0LDI0NSwxMjQsMTk1LDE5MiwxOTYsMzAsMjM5LDIyMCw0NywxODgsNTQsMTIxLDk1LDM2LDIxMywxNzEsMTI5LDEwMCw1MSwxODMsNjQsMjgsMTI2LDExNSwxMjEsMjQxLDEzNl19",
"deposit": "0",
"gas": 200000000000000,
"method_name": "challenge"
}
}
],
"network": null
}
}
Copy https://api.expand.network/chain/portfolio?chainId=1200&address=spin.sweat&availableOnly=true
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "657102532292146469652654940",
"nep141": [
{
"name": "SWEAT",
"symbol": "SWEAT",
"address": "token.sweat",
"balance": "4478246379997954161168780",
"USDPrice": "0.009696888755975658"
}
]
}
}
Copy {
"chainId": "1200",
"rawTransaction": "FAAAAG1hZGh1dXV1dXV1ci50ZXN0bmV0AEkY3+wQ0vYMKdwUWiNMqpXqdeiHfeC+xzYEoSqBUbe8TokHDDheAAAUAAAAbXl0ZXN0bWFkaHVyLnRlc3RuZXQgoucUF/0pEF1+QF3rfhesMNR8DoSo9kOwUtA8jxglZgEAAAADAABAvYtbk2tsAAAAAAAAAADmi3KGo3Rw3x4pIwf/oub5d1VdfIcrgeEOgOBRs9qnXm3zZ4UQzheNJZ3om271QiMXw0hK/lFQMEWtKGOK8Z0A"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1200",
"transactionHash": "FVgzzKafnM8FT6y3r86s2nDCyYbiqkEsFrZ6371b3uxs"
}
}
Copy {
"chainId": "1200",
"rawTransaction": "EQAAAGhrMTY0NjQ1NS50ZXN0bmV0AI5NZ/HOf9Z3lhnFXWzGKLlpQquoZ0koM9NwA6pyady3wVPUJFiBAAARAAAAaGsxNjQ2NDU1LnRlc3RuZXRRcSU8anY2BbU3Hdp6nFc800OP06VcXt9Y6zi7bNKS6wEAAAADAADoiQQjx4oAAAAAAAAAAACFkU6wouNgPzyGby4Ab7qs8YLUuTmgLVoihNVoUp/pNTyZT/5TC6ozr2tAIfbMxmrAEzqpxqZFEgd/p0U+zfoC"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"transaction": {
"signerId": "hk1646455.testnet",
"publicKey": {
"keyType": 0,
"data": {
"0": 142,
"1": 77,
"2": 103,
"3": 241,
"4": 206,
"5": 127,
"6": 214,
"7": 119,
"8": 150,
"9": 25,
"10": 197,
"11": 93,
"12": 108,
"13": 198,
"14": 40,
"15": 185,
"16": 105,
"17": 66,
"18": 171,
"19": 168,
"20": 103,
"21": 73,
"22": 40,
"23": 51,
"24": 211,
"25": 112,
"26": 3,
"27": 170,
"28": 114,
"29": 105,
"30": 220,
"31": 183
}
},
"nonce": "815824d453c1",
"receiverId": "hk1646455.testnet",
"blockHash": {
"0": 81,
"1": 113,
"2": 37,
"3": 60,
"4": 106,
"5": 118,
"6": 54,
"7": 5,
"8": 181,
"9": 55,
"10": 29,
"11": 218,
"12": 122,
"13": 156,
"14": 87,
"15": 60,
"16": 211,
"17": 67,
"18": 143,
"19": 211,
"20": 165,
"21": 92,
"22": 94,
"23": 223,
"24": 88,
"25": 235,
"26": 56,
"27": 187,
"28": 108,
"29": 210,
"30": 146,
"31": 235
},
"actions": [
{
"transfer": {
"deposit": "8ac7230489e80000"
},
"enum": "transfer"
}
]
},
"signature": {
"keyType": 0,
"data": {
"0": 133,
"1": 145,
"2": 78,
"3": 176,
"4": 162,
"5": 227,
"6": 96,
"7": 63,
"8": 60,
"9": 134,
"10": 111,
"11": 46,
"12": 0,
"13": 111,
"14": 186,
"15": 172,
"16": 241,
"17": 130,
"18": 212,
"19": 185,
"20": 57,
"21": 160,
"22": 45,
"23": 90,
"24": 34,
"25": 132,
"26": 213,
"27": 104,
"28": 82,
"29": 159,
"30": 233,
"31": 53,
"32": 60,
"33": 153,
"34": 79,
"35": 254,
"36": 83,
"37": 11,
"38": 170,
"39": 51,
"40": 175,
"41": 107,
"42": 64,
"43": 33,
"44": 246,
"45": 204,
"46": 198,
"47": 106,
"48": 192,
"49": 19,
"50": 58,
"51": 169,
"52": 198,
"53": 166,
"54": 69,
"55": 18,
"56": 7,
"57": 127,
"58": 167,
"59": 69,
"60": 62,
"61": 205,
"62": 250,
"63": 2
}
}
}
}
}
Copy https://api.expand.network/chain/getbalance/?address=GX6kCVtpvFTGsedV72nK5K6VzY1bTCvqFmrtHkuZHGsX&chainId=900
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "21430014235"
}
}
Copy https://api.expand.network/chain/getblock?blockNumber=48208733&chainId=900
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "6ZR4pNgiDnHGBBHB3mE9x9bnyxg7kzD1yhxbYXyhvwSH",
"miner": null,
"nonce": null,
"number": null,
"parentHash": "9tvBefL3pS8ybJjQwXRZCAbn8qZZRk3A6cxvrWBoZJ2Z",
"size": null,
"timestamp": 1605085817,
"totalDifficulty": null,
"transactions": [
{
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [],
"loadedAddresses": {
"readonly": [],
"writable": []
},
"logMessages": [
"Call BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
"BPF program consumed 2640 of 200000 units",
"BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o success"
],
"postBalances": [
22390653493680,
23357760,
3591360,
7299063360,
1554418560,
1
],
"postTokenBalances": [],
"preBalances": [
22390653498680,
23357760,
3591360,
7299063360,
1554418560,
1
],
"preTokenBalances": [],
"rewards": [],
"status": {
"Ok": null
}
},
"transaction": {
"message": {
"header": {
"numReadonlySignedAccounts": 0,
"numReadonlyUnsignedAccounts": 2,
"numRequiredSignatures": 1
},
"accountKeys": [
"D5Qh6N6UXVTifvebzqPHdHCeuQXWvoTx6eSZ9TEas661",
"2fTzeukxn72rBLKfJpL5sNcRxAQcHPbq3HHp2swZPjCv",
"FQbCNSVH3RgosCPB4CJRstkLh5hXkvuXzAjQzT11oMYo",
"CiGy4cBqRi7EdU8pmfvqx8TpjqVua7K8Ke8zo9nhhg1E",
"EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
"11111111111111111111111111111111"
],
"recentBlockhash": "Bzn13YwS1jQgd25FwQiF7eeMCwqmPsnkGZtaH664TXyB",
"instructions": [
{
"accounts": [
1,
2,
3,
2,
2
],
"data": "12VeXEVoV",
"programIdIndex": 4
},
{
"accounts": [
0,
0
],
"data": "3Bxs463y57eAuzS3",
"programIdIndex": 5
}
],
"indexToProgramIds": {}
},
"signatures": [
"5kQPso2etarC45fv6c412CphbPXH6sDq12n57f353BNqdV8DGDgPvRKzZpQwQLCVdvTaqWZrEFbBn83wH9PQ2Y6n"
]
}
}
],
"transactionsRoot": null,
"uncles": null
}
}
Copy https://api.expand.network/chain/gettransaction?chainId=900&transactionHash=Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup",
"transactionStatus": null,
"blockNumber": 175446089,
"timestamp": 1675234161,
"from": "AGaSHpDpyveuLyiaocNXMMFCf1LCBBynyaKMJkL8AKK4",
"to": "3vxLXJqLqF3JG5TCbYycbKWRBbCJQLxQmBGCkyqEEefL",
"value": "0",
"transactionFees": 5000,
"gas": null,
"gasPrice": null,
"input": "null6mJFQCt94hG4CKNYKgVcwk2tyD9N3TUNEqiQRCfTJYmtTs3i8M7RHq",
"nonce": null,
"network": null
}
}
Copy https://api.expand.network/chain/portfolio?chainId=900&address=CGUA416Urx9YrRZKgadyGrsuUi3JwzVo4RbfQK1JpW9S&availableOnly=true&assetType=fungible&pageToken=1
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "6003167868",
"splBalances": [
{
"name": "Blaze",
"symbol": "BLZE",
"assetType": "FungibleToken",
"balance": "4105202188334",
"address": "BLZEEuZUBVqFhj8adcCFPJvPVCiCyVmh3hkJMrU8KuJA",
"decimals": "9",
"USDPrice": "0.0029989965"
},
{
"name": "Saga-drop.com $SAGA AIRDROP",
"symbol": "SAGA",
"assetType": "FungibleToken",
"balance": "44",
"address": "73RF9z3CZCkviSBb5xwpcHUfdEcRGPUzaHnvUsnqegdC",
"decimals": "0",
"USDPrice": "NA"
},
{
"name": "Saga-drop.com $SAGA AIRDROP",
"symbol": "SAGA",
"assetType": "FungibleToken",
"balance": "27",
"address": "64a5pKqPAHxHoB64ChCvV2kb2di45Ry33tcTPc4PBham",
"decimals": "0",
"USDPrice": "NA"
},
{
"name": "memevipz.com 🎁 Airdrop",
"symbol": "MEMEDROP",
"assetType": "FungibleAsset",
"balance": "87019539",
"address": "4v3WvznZbvc8sXgykx1Us8mtQr3fGBH2vf3EMG6Xjs2E",
"decimals": "0",
"USDPrice": "NA"
}
]
}
}
Copy {
"chainId": "900",
"rawTransaction": "AZ+tnha8KkJHUhonuRhExKKi/iUVxLPzSWUFg0I9jA8qnzI+VeF/srAbjCC1yRXZkSFIAiL674Ym3nQXknMYCwABAAEDjRyE59XRrMagBCI1SF13/RwKCo1S07RveObs+BVA09415JpoPP9KKUdrIVusGR4UYoAZhh30KfDMN9gGEun3ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ0TH7GcLvfxR7z5m2gBeRh/PWkqISy7hwhr2FsIs19oBAgIAAQwCAAAAAOH1BQAAAAA="
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "900",
"transactionHash": "XLtvQ1Lr8RxVSD4YB4ptkY3XpB9UcCGktfhfBU4XNxQBwayuZ21BuFpa8vTm9q7i1eB5TsuQNVfAgndbZ5sXord"
}
}
Copy {
"chainId": "900",
"rawTransaction": "AZANUOpAHOdEZSKG5HuXe1QZ90kX2VULfpMIc7xpp/GoUYFWJ4CsaNokyrNa0u5qcfEdJI244WL5SZqZt1meEQoBAAECP0Qyw9NtTa7gVBomcZX4zRuYuCee7NvzTKGbbvggCLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ/CPjp2H4E3Y6Q3Sa1S+36peOFuNhP226cr6lgpMpGWAQECAAAMAgAAAID2SuHHAi0V"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"recentBlockhash": "Bkdcaqq3yx8wNovuZEALhYrndAtcSNhw1SqqE3FxYg1K",
"feePayer": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
"nonceInfo": null,
"instructions": [
{
"keys": [
{
"pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
"isSigner": true,
"isWritable": true
},
{
"pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
"isSigner": true,
"isWritable": true
}
],
"programId": "11111111111111111111111111111111",
"data": [
2,
0,
0,
0,
128,
246,
74,
225,
199,
2,
45,
21
]
}
],
"signers": [
"5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM"
]
}
}
}
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Contains the network Id (testnet or mainnet).
Remote procedural call URL.
The block number or block hash.
Contains the network Id (testnet or mainnet).
Remote procedural call URL.
Contains the network Id (testnet or mainnet).
Remote procedural call URL.
Public addess of the user.
Comma-separated value of tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
The encoded transaction, obtained from signed transaction.
Remote procedural call URL.
The raw transaction to be given for decoding.
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Remote procedural call URL.
The block number or block hash.
Remote procedural call URL.
Remote procedural call URL.
Public addess of the user.
Comma-separated value of tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
The page number that the user wants to fetch.
Available at the end of the response.
Type of the asset.
Either "fungible" or "nonFungible". By default, "all".
The encoded transaction, obtained from signed transaction.
Remote procedural call URL.
The raw transaction to be given for decoding.
Cronos /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0xc9219731ADFA70645Be14cD5d30507266f2092c5&chainId=25
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "13801454182161805889091571"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=25
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 10000000,
"gasUsed": 2823984,
"hash": "0xfdd51808f0b55519c1ba374b100ab795f249b60d3a67d5ab68a33f7fd1ebc4c8",
"miner": "0x0780aDEF7832a7F7682B757a5ec5Bd9fe7C38B4B",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0xa3d13004390de130e542c464c29b30ee856d4855bd347105bd6001dcab9d2f5f",
"size": 11545,
"timestamp": 1651114167,
"totalDifficulty": "0",
"transactions": [
"0x4c7b15d42b15820dc918b65c030f19fd0b199149ab20dda0bd0abf797bb77728",
"0x35d936dbaf371448e9cb2aee69c6c0352f456dde1cc827c6dfd8512dfa31fac7",
"0x96c896e335fa9bcd12d16d27382b79b7c753d6adb65f992359a54bcc264c5f4b",
"0xa6db56a022883064fcbce511518a4401c1c2874800d3e441704f33404ff1f931",
"0x291f0747cbbb45222315a7331cedffce35ea240665099c7dbbc366de353b59ff",
"0xa6dc794286fedd68ddb3fc45496716056cf42a188d600d7bae8b0fe25b5b4a44",
"0xb27722770809666076127d15ae30867104bd31872456c47ba137610703a3761d",
"0xb369bcb4b8f591beb4860730ed140fbc7e54b41176b1e6357e8742627e03fb21",
"0x997c1c3b3ddded4af58c88111c0a36472bd5544b88deb75ae8ed3fd882a84934",
"0xdc439a07935e6b7aed6d08002a6bd8c4d0d7668acd8e960ab4f1f184af0f91a5",
"0x137059d3dabbbbdbbb4ea1ef400784409475e7f0f9a974f267986906137196e9",
"0x0c00c101fa360aeeae37a76a31ffc90ba1306c4380362327e802f05919110170",
"0x352d20a87b81423ce535013a62e7f1d7f20e40221a5cd65bb573778b7db9ce23",
"0x272eb7030f529fe346ac3265707d9bff23f03163a870ac9651129db7db07888a",
"0x3b7af780b386e9bf734e9a8d08fe560ab43b936709eed07b4ac90f7c36a57686",
"0x6fc75fc922e13597977b544dac4746a9c77d35935bb61919f074eae718a3e210"
],
"transactionsRoot": "0x250001957a7bc26b572ef8f3c1e5af9abfa709e97866f6ca5d18579bbfa483e1",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=25
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "4821774518679"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=25&address=0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x5649502050696e6b2050616e7468657200000000000000000000000000000020"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=25&transactionHash=0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xba7628bfd2adb2c7d9bb49df7bb045497f52d3036059dd1c38e0535ce8f3827c",
"transactionStatus": null,
"blockNumber": 6744761,
"timestamp": null,
"from": "0x4684FAc17483022d5c328F330dedeaC1c7Ba4657",
"to": "0x90BCF206f9a5D5D2F96f9906e612985BFB43Cf79",
"value": "0",
"transactionFees": "219620697366316060",
"gas": 45524,
"gasPrice": "4824283836357",
"input": "0x0c1c972a",
"nonce": 95,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=25&address=0xA14d3599F898B070d62dd717839a042A22C9cb9E&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "27391964755979697675",
"evmTokens": [
{
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"address": "0xbed48612bc69fa1cab67052b42a95fb30c1bcfee",
"balance": "20026405034480539898252732",
"assetType": "ERC20",
"USDPrice": "0.000030714136548755"
},
{
"name": "Tether USD",
"symbol": "USDT",
"decimals": "6",
"address": "0x66e428c3f67a68878562e79a0234c1f83c208770",
"balance": "430424546",
"assetType": "ERC20",
"USDPrice": "0.99574956910171"
},
{
"name": "Dogelon",
"symbol": "ELON",
"decimals": "18",
"address": "0x02dccaf514c98451320a9365c5b46c61d3246ff3",
"balance": "396568549975763947625755127",
"assetType": "ERC20",
"USDPrice": "3.49822794119e-7"
},
{
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"address": "0xc21223249ca28397b4b6541dffaecc539bff0c59",
"balance": "138012765",
"assetType": "ERC20",
"USDPrice": "1"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "25",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "25",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "25",
"rawTransaction": "0xf86a8086043842816f20830a3d8794f73ee0e06a1b8ec3a7ff860d766e75f3eea7b985843b9aca008056a0ebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214a079551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x043842816f20"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0a3d87"
},
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
},
"data": "0x",
"chainId": 25,
"v": 86,
"r": "0xebe8cc67db282ad618a9f5800fbaf03198674c9ad99bae574eabf13a3b2ce214",
"s": "0x79551f134b3e5b04910c8328f64253596a25bc4db4a2c632e46cc5c9cb847ec0",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"hash": "0x6026a99a963024d9aad9e1ba7d52a30c2ad93c824e68f3213e852d507e669fff",
"type": null
},
"assetChanges": {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xF73eE0e06a1B8Ec3A7Ff860D766E75f3EEA7b985",
"value": {
"type": "BigNumber",
"hex": "0x3b9aca00"
}
}
}
}
How do I get my API Key? Step 2: 🗝️ Get API Key
After clicking, you will be redirected to the below-mentioned page.
Fill in your details and click on the Signup button. An email will be sent to the entered email address.
If the user does not receive the verification email, they can click the Resend email button to receive it again.
Step 3: ✅ Verify Your Entered Email Address
After signing up, the user will be receiving an email stating "Please verify Email".
Click on the Verify Email button.
3. After clicking on verify email, you will be redirected to the Thank You page, containing your API key.
An email, containing your API Key, will also be sent to the registered email address.
It is important to keep your private key confidential. Please do not share it with anyone.
Optimism /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x6af9fed62bb9011a12cb8aa69e771c1bd0ad988e&chainId=10
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "2329827393417488"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=2525553&chainId=10
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "2",
"gasLimit": 15000000,
"gasUsed": 29748,
"hash": "0xbd58af4a6397689d75fbd7e8a8fc39020eaf576d21abd6250a1b8d0230d2a6d5",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 2525553,
"parentHash": "0xea3897af1d45e7fd769759a900e69c55e75b2e0a9247c2fdc6efe1a7a8804e3b",
"size": 748,
"timestamp": 1642782884,
"totalDifficulty": "5051107",
"transactions": [
"0xfe5498249018ea069693b2fccd7a61c520e7c891a311567e5cd67ec1f16e7034"
],
"transactionsRoot": "0xcb34fb1ba590177e399e1c51462ad17112d03d471158acefbdb789ee197f19ce",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=10
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "1000000"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=10&address=0x5470EA9f962D138229043F903b96E083484A6330
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000001006af9fed62bb9011a12cb8aa69e771c1bd0ad988e"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=10&transactionHash=0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xda0dd3b42e45d85ddb470cab146bbc957ee0eb5a6c95ab9996b6c3a1868b0082",
"transactionStatus": null,
"blockNumber": 71563515,
"timestamp": null,
"from": "0x6Af9Fed62bb9011A12cB8AA69e771c1BD0AD988E",
"to": "0x5470EA9f962D138229043F903b96E083484A6330",
"value": "0",
"transactionFees": "164014000000",
"gas": 164014,
"gasPrice": "1000000",
"input": "0xb6b55f25000000000000000000000000000000000000000000000005be07ce1fc37bd490",
"nonce": 91,
"network": null
}
}
/portfolio
Get detailed information about the verified assets or tokens currently associated with a user's wallet address.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Present at the end of a lengthy response to fetch the next page.
fungible
/nonFungible
standard choice.
By default, all
.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=10&address=0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "0",
"evmTokens": [
{
"name": "$FLOKI AIRDROP AT flokicrypto.xyz",
"symbol": "$FLOKI",
"decimals": "0",
"address": "0x0b0556f2604431e78f5aca455c6de70078c681c7",
"balance": "1",
"assetType": "ERC1155",
"tokenId": "0"
},
{
"name": "FLOKI AIRDROP AT floki-crypto.online",
"symbol": "$FLOKI",
"decimals": "0",
"address": "0xba3991734d633e9e6ac71139537518abc50a23f0",
"balance": "4",
"assetType": "ERC1155",
"tokenId": "1"
},
{
"name": "Omnichain Adventures",
"symbol": "OMNIA",
"decimals": "0",
"address": "0xd12999440402d30f69e282d45081999412013844",
"balance": "1",
"assetType": "ERC721",
"tokenId": "3587678"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId" : "10",
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId" : "10",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"chainId": "10",
"rawTransaction": "0xf86c808401fedd93830d575194a67e9b68c41b0f26184d64c26e0b2b81466e5994888ac7230489e800008038a09055da16d4d23b1d1831ff8c150820a5e48dc931a0682c708b147ffb9db78f95a0037037cd03120d877daf33ae416fe4f14091624da042312a5c080a25752839f8"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x01fedd93"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0d5751"
},
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0x8ac7230489e80000"
},
"data": "0x",
"chainId": 10,
"v": 56,
"r": "0x9055da16d4d23b1d1831ff8c150820a5e48dc931a0682c708b147ffb9db78f95",
"s": "0x037037cd03120d877daf33ae416fe4f14091624da042312a5c080a25752839f8",
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"hash": "0x7616dbfb6f7b9a3d82049be986b913a4b03d264ed5ecc7496cfb6037bb157dde",
"type": null
},
"assetChanges": {
"from": "0xa2e73C17F437688946993F683930E3Fd42Dd4F8C",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"value": {
"type": "BigNumber",
"hex": "0x8ac7230489e80000"
}
}
}
}
Stellar /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The public address of the issuer.
The code of asset to get the balance of.
* Required, if issuer address is provided.
Sample Request
Copy https://api.expand.network/chain/getbalance/?chainId=1500&address=GC4KAS6W2YCGJGLP633A6F6AKTCV4WSLMTMIQRSEQE5QRRVKSX7THV6S&issuer=GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M&assetCode=VELO
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"assetCode": "VELO",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"balance": "2555109235706160"
}
}
/getblock
Get details of a block(ledger).
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
Sequence number of the ledger.
Sample Request
Copy https://historicallp.api.expand.network/chain/getblock?chainId=1500&blockNumber=50755373
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "691675c6d439f546fc4996740a3ab899f77b11eca15890e4035a6196de194720",
"miner": null,
"nonce": null,
"number": 50755373,
"parentHash": "b734852cf9763646a2c42da652a06d309ce928e0a877fa70a6ce9981f79954d8",
"size": null,
"timestamp": 1710228542,
"totalDifficulty": null,
"transactions": [
"acd6bb8fa33037f3c68908d9f1fa175b4680ff972d3a010a296e46e850ea4624",
"cbbb5c679cd5b793d04a934a6171f8c616b2b8b971c04ddf1494fa39474c216a",
"dea772a3fa2cb7687dd98a41815a7a196bb5f97fec24aa254a96961b801ee582",
"7b33fab3a6ff1aa8f7a6182953f177deb127574f53433d74a8adabdcd4553292",
"481e6c78a606c62bf5c16a10c6efb8c1ec88a3da2fa7f10cef7202ba9121956d",
"887b05f17bb7abb853b69b5b8d17a014b8ef605bdaf488513e7cdf96d3e2ab46",
"6650d6a1cb09bc5c1ee4696d86705bdce5215ff0ad69c6115ddd639ce6f3d28f",
"8fbfa7b0d9218db20500d0323e3a23a24568738fa8deb21d8a658aee2086c324",
"a85db8ad9c5c2a07b89bd8af801702d2d0bba5d770a78ba96b3db971a5081874",
"32e9f2b496cea35dae74a533379968e9db4640df533abd66dd21f3ccf9a9a102",
"0e2e93794ad437ea1c3cdd0d8fc8d8d6e63997b053d664a36befa38cc91d20ca",
"5a95822955e9d181bc46478a1596ccf9f73257545f0a706a44d15045955a8e1d",
"af4c3c085c93cab5add1bc3574aebfb4903d54c524344bcab6b9f4714c3a6a2a",
"eec392947596ccd78787168798512c395b5d2bda53de8fa99e7d2d7d092261ea",
"5b37d726d3bb10691532d8acc8b8847cc66202f937c26cf9c9663e43dd5ffe78",
"1d45e2080a7c21fe31ed06679b93161607b89f9324529c32dc556912c93b17e0",
"646abe0ddc5d75812401b69ccea0e887a49e671824ba93cfedc18f8a99af2295",
"fbbe76db26922efe48705d46190531cf37d2c160e02443511e82acccc47d5a0c",
"1df229d27cfe03b7d72c9e4b83178f9d88b29675be60f6812785f98b11857555",
"01eadc75aef62dea92114d414445e6ad412fc0ec55b9158639189495690f78df",
"555af1ae68fc3ce2e46c3ec84dfc5e2ac0789fd0124b8527a67e12bb33712bbf",
"f0cb18175abc99562c8c6cf2a318ab57f79e0e6f9685b80fa59093c1017f9301",
"279ba9f85f3250cc69692a64a69afd46cdc5e112c6a2b62445fcf1ac5475416e",
"819439a4f9c2de9b733a9e59e93f229710a50cdb8d0e62800f7618f7e96b081f",
"9e9cc76044eb38e64b5d103d00db9e001fe7723c3bc05d8ed9a6dcc8f737138c",
"17ae2196d17fbc8f95d6c083ae3d93c5c62627ade110b838b49d1d0a1f6a1d20",
"e0c52c2d40198fae550cbe3fff371b9af64eae1612f7a811d0a6502cf5636271",
"9d663a8b3f9e447829c2f25d3e2a827e2c3ccb1004f3b54ffefe9a0cb6bc2bad",
"6436675e8e55c0a308cc42082e255dd3d9bd6626d0e0ded0ef00862751e2ab28",
"0f03056afe4bcc1a0124553b3d2ccadd88fbba82020250a82fad138b630b265c",
"f3a8d0eb9a1444970b0eb993b76a2eb183dfb3a4707c78b42a03cb49fae7a8c6",
"6554555544fe780cb6bf3bfc8970e5654713ce551b456f1875ceda84b366860f",
"6106dda6e346543adfabc1d0fc5931c6e2166423969369b565f59c8d2bd2c8ce",
"6a44cb9672f5c8b37dd745a8941ef767e1b5bd7b3ed819a362674f11ace01a1b",
"f4c5391ab820ef19f2cd0df68789336f04ac316d4fdf705545a0062194c3f3f1",
"6b0e2d9a72bc1d1c8492d68039e44fb905f824a54c5fe7925a042389a19eef68",
"944f76928d809b4df6868e3bb46b1c3ea13c2080bc1785a8baeedfee9178f58f",
"ebbbefdea32844be3559535402093a1165d4e2028ee346fcc23101c8bba4feb2",
"ed61383463eaa1559390a0c0f1a0689670a3a98229783f51b17557d837c12131",
"c2c0698b03b59c787a74a3fd7f49a8bccd2698d2302568c9f6af4818a214cf31",
"80ba70e822e0c9852e3a5b8980ad3fa41afa9083a50b04d9333b0c3194a346b0",
"18999d877fa94f360c68429e29985052f53a96b4301079a3eb1fa6c7d6c61193",
"31461117fddb19d5420882ebc8c82747885c21871fe9f15b129a98cb49540555",
"254c023bac7813e037e743e58beb432f4eadec48ca5cc788cfbad635f94227c8",
"7e73f368e5a63226ab583381e69900b1622319dee386d81e8f02d81bbc57ded1",
"6ee545573e354facabf68ea6b56bf4c30640998af4239103390b8d0e13192856",
"e624726a6bd762b6d1131f0df827c20fb95796aa6ee69be7cf572d2f5bf66998",
"03c8bed43830ba6592d794b0b899ca6e13bb417e53455ba4a1a92c81584ae681",
"37b343f6664705ce7d2dd53f1adee3d67aa7aec2576c45175a3a3cda41fd3325",
"4f0f517d1b06ed20efe05b145a771d45ebe69a3ef059db38b978bef20b10731c",
"797490f881b1964cd4381e2ae81fce4ca28c26732bbdecfb0bbc4823171ef946",
"1a302b5e360414ef5801707825a7062fd347d756000ef63defe3832aa87ea052",
"35db734749db83abc34e5a532403aa76b10fafabe7a1cbdabffe3bd513bc1e5c",
"1a8ee0953e8a9b7ed3bb07818e67ec3140ceeea897d8830dcead569e4de0d97d",
"143591699515d6698964a0f289b608cd4710ec58b4f8a99b82e7c1b9ce519ada",
"5cb7afae5fdde4928ec98d5835a4dd4ccdd868f2012116144efad72f586b6968",
"9284e0fbf184f036db06172c8d37b854092a3f459217d765bd9430297b20c664",
"b3e8575dc4aa30670e0b03832ab567abc6d664e260a1cc1cdfd23e4298813dc4",
"888fbb6b25b6189d0daedeee302818228a4b6b3da2890ed4e3a202bedae273c1",
"339b14905b413d4a0bc3bbef28fed280ff2c39119f1cd8175bf326a7931c9d56",
"ac00c11e7df908606cc33b138fcf9106262508c0e7bf196aae906e040e4cfda9",
"33b72aa6ddb777be96bec940995024bd1fc42b0f803d8971fbd92635aa2a4696",
"ed4285880435233b5b7cfc51f1ef5a971969fce4a2e3842dfb09b553830690e2",
"ab681826f4259f820fa51f318791b51d2043ca17b6663a6917cdb44c9bdf38a5",
"16ba8124c78cdb78311895057eb6e390cad5448d7ad172a26ca5828c8b5320d2",
"b4201efcdab476a31791bc0d171adcaf2f6639c8ed5606677dfd28090f8ef072",
"5979f740dc6674f9801c5c38b5fab1e7a026cdca25fc3216f7b0df2ee6f6fa7c",
"9dc9890512be58d961ef6b6fc75db499a05785e5ee23a946ee016de2175d5f32",
"e0f920810019eef6660b18e61c46928c9279b5bc3e5570b0e3fbce704b2f5e76",
"f3c4f3cc79d4275e1d5f7003c56affed6fbcb011731af6f4f619b26df73931cf",
"08a8844caa19cd9013b9ccad2ae471f36c29b05ef6f2ca44d30890ea93279b85",
"be11133b5805f3a2abe8b4265ca1fdc38270dbf5d41487fd80639d08c8f222cb",
"224e9a9fdba7b946b364432f38306b8c7931305f4fc4920d18edb707db53f2b7",
"08170d98ff845edee29d8a8708b392e1ea6528f6fd3dc4ed7688763ce1fe30fa",
"e6b28e7afd893e9d6241ffcdaf0819a3572f498500b4322ce1fd1a05c3d620ff",
"f2b000dcacfd05fef1f007bd1ba549aff1be9f7f1a1fee288f2dbc7604260ac7",
"e7242bcccc47e980c6ccd87d02fb706be3bd6539d492b6b189490064c79255fd",
"445c162c877a0ce6129790a1aa350eb28a08b35ac5f06f4bf9e58e394a2ae91b",
"f742ff342393272e2839dee628294f1bdaefdb86f457481a974dc707bf135f80",
"5e84a4c7719c6dedcfa4802d25f99350ccc0d05d18a1a9b3e0224328c4086c10",
"4f6b6c14a31008f356da2734a4055e072e887cc87b262371b5e9fa61b3373414",
"f11448b5bde3cb364084cab9c139a7a5e4244d0ca279149ee94b8946f1ffbb51",
"4ee7fb29b98afb9594e23fc906eaaa7090e14cd7010e8651b9942325f0a38892",
"22223ba4bec52c1891ae21f9439ec71e72c205c2c59d8c3f8aa7bbdc202c4b24",
"54a2368fba01b84eae0ceb439b72327db79ed372dc2c98c8a68a7b9456037cc9",
"ecb17d8172e4f377b37ccee92e2a5a6dc8e729deddae14ede8057c82d01c9910",
"331ab3ef3313fda3331e5acf1c0a449ebd1dcb804ccbbd8c29a6a7e75cc25a5c",
"c5824ff31fd0206f04dda79b8fb0e3a4b6cfb0af78f68665cdde10fd8c07f6d1",
"8d84ea67502b3a2be9377a14bb80c1d23f4c7639944d24ad5bdb42f8528edcc6",
"ac27b260f50056319b38f6ac759b79d86046ad58605184103891bbe9f45415f3",
"5733979bb4d26ebcd029c02d1ce3f6dcc7a2df193437c62f3e13119152edb4e5",
"d96aeff7629cc39b200fd1f4164d59d547c05ab387d8c609f2288cd113f7ccf3",
"92fa8e2a5b3964f5a1e4e603565cc8e6aba77e4beb99e18f3da87721f90c76f5",
"c28765ac8d37d48b37f05116319692087e207da31c7e949708c579eb45be7115",
"165d18d3a6a03a0175cecb95a988406295112070845c846feb9e03900199c358",
"da91f7e18db0dc77af00aeb586aef3f25f4404f350c6f77dfb40fc6eede43206",
"7d84294bb2662dd43a9d325d9b43381cfb423e191bc5ffaad08c84f5f626f77e",
"8f06aa2b36f98b9585a450080b6d1e8c39367b01aac527681ffa4f9ab9c27e34",
"78e8ed1640888bec94852e7850c8e361c56979546f6c330d7947462fa8d43773",
"4ec7d1d1bb3c49bf92320d3e56825231c3cf33c36badd653014da0eda6031a08",
"86480c74442fd29aa8e208a7ef843b87cd0a2e6a488d463b50aee29ee8342fa0",
"c91054c48a500afcd06bdf799d3419eca48e819657cf7e0f8ee579e3e3ae7cb9",
"db193529cbdb5d6b14f3b1fe5fa8b32f89b5d4ce17065e491e6ac05b85ef4923",
"13fed36432a6407fb46bfd783bf411de371566149e1582ba4743fe6e02c00b65",
"507b1f8fcc9677132b5c74d4b5819d1cd5bf5b42c76f0feeeeb245fed111003a",
"1477e4726b451808e2334021e7f14eb71745bc485d6dd6220e96ad05ed494ec5",
"ed8a11431b3806b6ba26745bc70b8593971a43db9b744e5062b38de36a0802c4",
"2ba8b5529c02a5e102f8c5af19020cdd2bc70915113dcd4b38c88ba9b1483760",
"115bdb0aa58c31220e3170af34f1fc806a65c8cac0a8ad803195ed91bf349f63",
"e1eb020dd041f511e4ac7bc9b8766929c16ffdfa4e29d3477f06e25f011b5702",
"600b40d3feda685b5d5766436e0a1553647f7f34d1a8bdb9da647220dfed0a16",
"18571409bc077ba7ece7f8f4f19c4286baaf3ad62e32b049ac0d7a4cc2dd65e6",
"b82c8b996dd49675d3e32c000e09ad0dfe7e32d917cfe4aef2e75d8623deb479",
"3cc356e51cce0f3c39283c76fea60e8842218e4e5ce5f9f73cc37c4183d4c6a0",
"03dd3fc513923bf7bf7226c780dfe66df00b12564cac2bd17fafcfd4dbc769a8",
"043a089b2dc90ed6527d82bb7d3479e446b045b263212943ed8d7de5a3f8ee44",
"e50de462f32248fd796724464b3a5b9a3456e383d7a5d4377821be4009285a9a",
"0babcfc2b1f3a0f3a63ac7fa9a1605464a7475f1a6ddc5857daefe878033c0b3",
"dd882df2e5255c0de6c292869d6725586c113a5f8062bd5078dc7b315c39de36",
"5c878ad84ec71d26bfcf2146e0696972876b0c4e29e8a078fdc6b861b9acd6c3",
"797031fe7785f896676d4ecdca69a2cbd552c9cd88ec552c3b5048ec8a8569d0",
"a10530850134b28dd1ae2eb87c7ba4311aaae9d38059995306868855fe716bf5",
"cc0bf7da4eb3f368f562b562657b57aaf663eebafde0bc9d65e1762cd6118795",
"8d557cda51a2c87d937376a656b9c26e6fa3ebc841357539876f5c7d8d2eeb01",
"e165cf004c94bb9587ca401a67a718eef6e6521d5edd6e36b5b6de050a5df545",
"4a3c3ae92dbd1dc64179974a5d2e4a27addb92d165a74c4e10076b199e247ca3",
"c48f7ae453ec249aa6ef58554ca8a9e464c10f0b69b7ffbccf66e2ac8ae979b2",
"a4ad8570a503f414e96e945aff12c01a4f88548158fc85412ed5d2b6bf507849",
"df21695ddee0f5664e92a35ca01d6aabfce6cf4625f4a627e75f8e734d136ca1",
"91221586c08e8d90a1bad84989dc4788251f88d55694fe3e32654152882bf0dc",
"ffabfd0bbc7a72e076af8a43acb23f5487b33e57c16e50e121357a161cb1f607",
"5197c545eefe981ca93670d61cfa467fce2448d6e1e45ed62c575b89ac45bfb0",
"66919f21e30e16d0daf49b2fa9b0f318276111cebba480440ee918dd6042732a",
"951fc3bb2098ff549be4d6bd2f69849ebc4d9cdf981889c99c3d26b417d2ee34",
"13ce29f526423d7c350b27ffefc54c4848e4e0c5676e98996a45a11e00b043d8",
"da47fe9f837a1ae5551b5656d24607b00799c632ba1ec45c5b7b55989e666ba7",
"2af280897ecac7a777077af7fd5f271575d3b7877ae31248b46ada22202bd2a9",
"752dc2bd7c7183c123370784e0ad8938d12ab22993b7a0d440b5d447eb7fcf7a",
"7f2a1eb56166d104fd786c040445faa4f5e12df3d875484da4f5a55a29a939c3",
"9d888806d609bf58d90ddb30a0c1af6bec91f995b8a848df2e31cad5e63bd234",
"0211338a32c4c65b9c7ccdf34361a81f136a906ff083e79f66b420b2dc26e7be",
"28f8e91601c55d82051e4fe32b35aa66983bb4342c52638bd18fe65e20c8c829",
"25655351fdffcc7aee2048a356013e16e5f0d47fcd841bf0f4c4480e247bb422",
"3a01f77662308ef9034cf1f9ba034180dfb9d7e9e605b5bc3015a7ab5cfaa163",
"f9a740e67432d8f0e8d1a267221347dd8e2679a8aba5b0ac3c0ea45c20f1f2a6",
"4f1ab1da77cd9db02fd56a5648e4169b1eeb1935109153ab67f469c6636baabf",
"52435085e04b129a6258424e48c43467d807d259b8ca500f4f691aebf39a6ca5",
"2649bad18eba27b8139a4903ffc22059c858abf8d42f4b0f3bc368da327a8ba3",
"03b731b8636830e5f17b04d77911197ac5b1d39f32d136d9bfcaa13624ae0311",
"5489a64665f74f5eeef736b2dfdc35b21f72787fe2abaf8de4d356fcb7b4dcb4",
"93193c5c0cff6e6e5733ca6df3f73efcc91286ca3f1e7d3a26bba1a53f9ce48a",
"35c0cb6f9eeb86b9af6beef343cc80dba6da6e6e28f4f4c02f903e3217ad0efa",
"0d38cb7ee0fa9ae49b83eda42e32a402fadb59fa160f6ace6ba9fa2362d01751",
"45556ac1722cc6729c3d2a8f46270188d353bcfece843518d98f9ae22dfea2f7",
"a8a9ac87be31b9f1d048aac68f2846900ad27b82d2ba04f8490302d9c3194d3d",
"efd818b09639d01baa3c431b716322497a2c9c821624c3230bba67bf8fb3df87",
"4c2f558003b349e3d3e06997104d9e0d552633f1005c2f9f8a7b4a04bde59dc7",
"786ecf146178317cc279499667cf7e9acf021dab5353773cebb7cc7cc56a7097",
"6521dbc55765458216073a91e095325a3227a7aed66c8d856bb1e08113fcd4e2",
"df4df3b82e92a0af07508661d4c6d53336c7cb8fd9790ea7918c51b706f97ea8",
"7306b26192612ec17d8ac68ba1cd27b13194ac26db925535ecc58b7f1efd62ad",
"dae3772a578b846d94d86dca9fdec648a1e90ca902c0292f88e9446df96aa949",
"55dc0c20493cc14384224e452f63c7c06f003f769545d08e1a9929fccdb6b8d2",
"88a7abcb45c7f4b2814e4ce872f1c7ea7fdadab78d3920dcf104e3981d867aab",
"4a2f780e733c9d30ab9720032f20ba176f483d259152b4a91b9e862e1e4ac190",
"0be8ecde90aaa5a3ce898d02ab91bf96af34e8f5e1c67cc5dece525b37bb643d",
"9bb9311a916295cbc95618780e5b50cab4f25ed7edf1040df552ec1c217a3ce9",
"f0e2128481a3211cd9adc56b11edb5bfe6326261e8dc4c2313a12c9ce257ffd7",
"0cebbf332c0d19027ac7eacf5e3dd4c8c2e780469174f65e7a5adb64d4cbf805",
"63e74714c7a8841df14e71ef72fad008dc8daea3d10c4a2019b8dcb49f69bd8f",
"826e76a162a8eea8d02035cc715bc8453ad982be20157dee786c80360949e007",
"b0a61e01a39b36f1d0840d588c1a20ca005b0f0e4baa8ac48e16e437e0598290",
"733fb7e440d17e64ceb285fd6ee5e4898f2ba262d8a70fbedc592cb195d072e5",
"8e138bac11d1d03e6b37048f8116f971011323549caa913e7126b65af076ab82",
"9c1bcffa309ae8dbe0fa37abcbe756150665e83e7da44b3ea1cee7e95ae89ec2",
"4edf34c3d26fb1d3694008853d38e67b9fc4e35c83826905b3d7b46e988e6c81",
"0bfaa0e9ffbcb6d19b661bbe28d3c12955b1e5e813ab0c31125ca7cddb10f8f3",
"efdd1b8376540933d0be5f28f843c745dbf0de602d555b61b3524a09310b761b",
"7b1168c135a3585785835a40ada1b41d5237c4568eeab47ec4beae56c9db2a50",
"22ca148bf8d08611327a6becbf883e8e8ed84485b27a391575637ba2bbf4fa6e",
"0465284b30883942c7dc8227c7e76ac61c74ed14a5143d2af25a4b03e807e0b0",
"b426d76be476bef30193e2267ade03c32ede20a5961a541b0545cb956d2811b9",
"90f257f281cb221bf5e1eba67c8e4e0c7ab0d021822c34a67aa6354ac62ab21f",
"b3f3551429da56abd83351bb5c1d7e20496703e19a81560dd631bbaca93c8878",
"f2999ad6faf0c310a7f60c57eb330c76ca796056c333f7f950c92ace6eb14050",
"711527a88c3d21f0adbc9f4aeddf9c0c7f70a2a978fa8270af3ca482f2b4d6d9"
],
"transactionsRoot": null,
"uncles": null
}
}
/getgasprice
Get the current gas price from the Stellar network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice/?chainSymbol=xlm
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100"
}
}
/getstorage
Get details of storage in the contract, including the current state of contract, contract code or any other ledger entry.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
The key of the ledger entry (serialized in a base64 string).
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=1500&keys=AAAABgAAAAH3xNSi+8RNeGCQ9G+xxqeBQYdAPM67qt+vUv/54U9NeAAAABQAAAAB
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"entries": [
{
"key": "AAAABgAAAAH3xNSi+8RNeGCQ9G+xxqeBQYdAPM67qt+vUv/54U9NeAAAABQAAAAB",
"xdr": "AAAABgAAAAAAAAAB98TUovvETXhgkPRvscangUGHQDzOu6rfr1L/+eFPTXgAAAAUAAAAAQAAABMAAAABAAAAAQAAAAMAAAAPAAAACE1FVEFEQVRBAAAAEQAAAAEAAAADAAAADwAAAAdkZWNpbWFsAAAAAAMAAAAHAAAADwAAAARuYW1lAAAADgAAAD9DWU5PUFM6R0FLWEs1UllQTkNONVg0QTVSQlhNVTRBWElXQU1SU0tBNkk2S0ZOUkNaWjJERkxQMk5CWVFXNE4AAAAADwAAAAZzeW1ib2wAAAAAAA4AAAAGQ1lOT1BTAAAAAAAQAAAAAQAAAAEAAAAPAAAABUFkbWluAAAAAAAAEgAAAAH8xy7XKkStt9WH1LS+PNbElvR2ZGkgj7j6gQPoL95y5AAAABAAAAABAAAAAQAAAA8AAAAJQXNzZXRJbmZvAAAAAAAAEAAAAAEAAAACAAAADwAAAApBbHBoYU51bTEyAAAAAAARAAAAAQAAAAIAAAAPAAAACmFzc2V0X2NvZGUAAAAAAA4AAAAMQ1lOT1BTAAAAAAAAAAAADwAAAAZpc3N1ZXIAAAAAAA0AAAAgFXV2OHtE3t+A7EN2U4C6LAZGSgeR5RWxFnOhlW/TQ4g=",
"lastModifiedLedgerSeq": 669934,
"liveUntilLedgerSeq": 2743532
}
]
}
}
/gettransaction
Get details of a specified transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction/?chainId=1500&transactionHash=3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7",
"transactionStatus": true,
"blockNumber": "50864752",
"timestamp": "2024-03-20T00:08:44Z",
"from": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
"to": null,
"value": null,
"transactionFees": null,
"gas": "2454018",
"gasPrice": "2129796",
"input": null,
"nonce": 163399020004245540,
"network": null,
"envelopeXDR": "AAAAAgAAAAC2gNHecDs15ualCfWUeUqkqinXz7tDzmq8vNWoOeTLogAlcgICRIKLAAAAJAAAAAAAAAAAAAAAAQAAAAAAAAAYAAAAAQAAAAEAAAABQlRGbwAAAAC2gNHecDs15ualCfWUeUqkqinXz7tDzmq8vNWoOeTLogAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAYAAAABEEAymstkTEVFUelHf2JRrvu8Pp9IZhBUmgqo3DPToP0AAAAUAAAAAQAvhH8AAAAAAAAB3AAAAAAAII9FAAAAATnky6IAAABAjcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg==",
"resultXDR": "AAAAAAAgf4QAAAAAAAAAAQAAAAAAAAAYAAAAAMCX1Z6fmQcXx/idAsCzobUXG2vnugFZAyTyIuwxgo95AAAAAA==",
"signatures": [
"jcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg=="
],
"operations": [
{
"type": "invokeHostFunction",
"func": {
"_switch": {
"name": "hostFunctionTypeCreateContract",
"value": 1
},
"_arm": "createContract",
"_value": {
"_attributes": {
"contractIdPreimage": {
"_switch": {
"name": "contractIdPreimageFromAsset",
"value": 1
},
"_arm": "fromAsset",
"_value": {
"_switch": {
"name": "assetTypeCreditAlphanum4",
"value": 1
},
"_arm": "alphaNum4",
"_value": {
"_attributes": {
"assetCode": {
"type": "Buffer",
"data": [
66,
84,
70,
111
]
},
"issuer": {
"_switch": {
"name": "publicKeyTypeEd25519",
"value": 0
},
"_arm": "ed25519",
"_armType": {
"_length": 32
},
"_value": {
"type": "Buffer",
"data": [
182,
128,
209,
222,
112,
59,
53,
230,
230,
165,
9,
245,
148,
121,
74,
164,
170,
41,
215,
207,
187,
67,
206,
106,
188,
188,
213,
168,
57,
228,
203,
162
]
}
}
}
}
}
},
"executable": {
"_switch": {
"name": "contractExecutableStellarAsset",
"value": 1
}
}
}
}
},
"auth": []
}
]
}
}
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user, including their name, balance, symbol, address, and their equivalent USD price.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
By default, false.
If true, tokens with balance > 0 will be listed.
Sample Request
Copy https://api.expand.network/chain/portfolio/?address=GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P&chainId=1500&availableOnly=true
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "165551542",
"assets": [
{
"assetType": "credit_alphanum4",
"balance": "4310224067",
"assetCode": "SHX",
"issuer": "GDSTRSHXHGJ7ZIVRBXEYE5Q74XUVCUSEKEBR7UCHEUUEK72N7I7KJ6JH"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://historicallp.api.expand.network/chain/getusertransactions
Query Parameters
Remote procedural call URL.
The public address of the user.
A string ID that points to a specific location in a collection of responses, present at the end of the response.
The transaction sorting order.
asc or desc.
By default, desc.
Sample Request
Copy https://historicallp.api.expand.network/chain/getusertransactions?chainId=1500&address=GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"hash": "69d6d74b05cce3ee8f9250c1459db66a286de42598ccda532e5444b503d1422f",
"transactionStatus": "success",
"timestamp": "2023-12-20T08:32:16Z",
"from": "GCCBNYSHJMXMDFI2HBXAROJIWSPOONVNYIWB22YATOURY5PTQWWHY3Q3",
"to": null,
"value": null,
"transactionFees": null,
"gas": "1504",
"gasPrice": "101",
"input": null,
"nonce": "209216279419041446",
"network": null,
"envelopeXDR": "AAAAAgAAAACEFuJHSy7BlRo4bgi5KLSe5zatwiwdawCbqRx184WsfAAABeAC50kZAAA2pgAAAAEAAAAAAAAAAAAAAABlgqaqAAAAAAAAAAEAAAABAAAAAKn1p7L1N4FOS15ayJ0hleqPO7Z8EJ0SS8Twiif2ZK7cAAAAAgAAAAAAAAAAABm5ZwAAAACp9aey9TeBTkteWsidIZXqjzu2fBCdEkvE8Ion9mSu3AAAAAF5WExNAAAAACI213D+DT4BUhl11c96xIQrcJXWsanXaNPppjLpmQa+AAAAAAAZuWcAAAABAAAAAVhUQVIAAAAAHRwnagjMhnylkqtEnT1pC2REaAGMFIUy/PHiCzLu9d8AAAAAAAAAAvOFrHwAAABAVD2DpxUxC949OhHf459Syskdr63cZAzFcnP7fNq3ws6msJrMBO9sCXEQYpeVoJdt3qMMa0p4OxJb+VXvZZyuAfZkrtwAAABAwWQ5GiyqgKKOxaa3KEG9xzHnxR/qkrI6u0398T/BChDjiKIrmNQJ3mHXrNh1UT0fs2C1XQait/KPI1SRZ2VhCg==",
"resultXDR": "AAAAAAAAAGUAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAMAAAABAAAAAOutEVtbl7yEAC5kgeeMFziwVyt7Ep7HuZ4HBD5K0tv2AAAAAFVUzzMAAAABWFRBUgAAAAAdHCdqCMyGfKWSq0SdPWkLZERoAYwUhTL88eILMu713wAAAAB13k/jAAAAAAAAAAAABheaAAAAAQAAAADZXY9hknh6v+9hJwHhTGi08ONzxYjkK326nkegt3z6NAAAAABVVMgSAAAAAVhUQVIAAAAAHRwnagjMhnylkqtEnT1pC2REaAGMFIUy/PHiCzLu9d8AAAABa/MUhAAAAAAAAAAAABOfMQAAAALZb5JtUKlqa0hjFWtZEukzh5WZhSA2TDMrWt2tdlSIuQAAAAF5WExNAAAAACI213D+DT4BUhl11c96xIQrcJXWsanXaNPppjLpmQa+AAAAAAAZuWcAAAABWFRBUgAAAAAdHCdqCMyGfKWSq0SdPWkLZERoAYwUhTL88eILMu713wAAAAHh0WRnAAAAAKn1p7L1N4FOS15ayJ0hleqPO7Z8EJ0SS8Twiif2ZK7cAAAAAXlYTE0AAAAAIjbXcP4NPgFSGXXVz3rEhCtwldaxqddo0+mmMumZBr4AAAAAABm5ZwAAAAA=",
"signatures": [
"VD2DpxUxC949OhHf459Syskdr63cZAzFcnP7fNq3ws6msJrMBO9sCXEQYpeVoJdt3qMMa0p4OxJb+VXvZZyuAQ==",
"wWQ5GiyqgKKOxaa3KEG9xzHnxR/qkrI6u0398T/BChDjiKIrmNQJ3mHXrNh1UT0fs2C1XQait/KPI1SRZ2VhCg=="
],
"operations": [
{
"source": "GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD",
"type": "pathPaymentStrictReceive",
"sendAsset": {
"code": "XLM"
},
"sendMax": "0.1685863",
"destination": "GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD",
"destAsset": {
"code": "yXLM",
"issuer": "GARDNV3Q7YGT4AKSDF25LT32YSCCW4EV22Y2TV3I2PU2MMXJTEDL5T55"
},
"destAmount": "0.1685863",
"path": [
{
"code": "XTAR",
"issuer": "GAORYJ3KBDGIM7FFSKVUJHJ5NEFWIRDIAGGBJBJS7TY6ECZS53257IG4"
}
]
}
]
}
...
],
"nextPageToken": "212791796743290880"
}
}
/getevents
Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers.
GET
https://api.expand.network/chain/getevents
Query Parameters
Remote procedural call URL.
Sequence number of the ledger.
By default, the latest ledger.
A string ID that points to a specific location in a collection of responses, present at the end of the response.
Comma separated values of contract IDs to query for events.
Topic this event was emitted with.
Topic this event was emitted with.
Topic this event was emitted with.
Topic this event was emitted with.
Topic this event was emitted with.
A comma separated list of event types (system, contract, or diagnostic) used to filter events. If omitted, all event types are included.
Sample Request
Copy https://api.expand.network/chain/getevents/?chainId=1500&startBlock=51101417
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"events": [
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000000",
"topic": [
"AAAADwAAAAdmbl9jYWxsAA==",
"AAAADQAAACAKnMLSIP2AWzTZrRm4TXvEYLd6X+Febvfq8rLNXkrbvg==",
"AAAADwAAAAlzZXRfcHJpY2UAAAA="
],
"value": "AAAAEAAAAAEAAAACAAAAEAAAAAEAAAAQAAAACgAAAAAAAAAAXWiAkP+/dSQAAAAKAAAAAAAAAAAEj+0eA5SoBwAAAAoAAAAAAAAAAAAAWvM+q6zrAAAACgAAAAAAAAAAAAA1DSDpU/wAAAAKAAAAAAAAAAAAPa+zFgHmqgAAAAoAAAAAAAAAAAAAWvEANTXuAAAACgAAAAAAAAAAAAA0ZH2dd5oAAAAKAAAAAAAAAAAAECGS6kK5HgAAAAoAAAAAAAAAAAAC87e3zc0HAAAACgAAAAAAAAAAAABQ2rJ9ePwAAAAKAAAAAAAAAAAABigRQWbZWQAAAAoAAAAAAAAAAAAAWu/h0v+yAAAACgAAAAAAAAAAAAPaQw9IpAYAAAAKAAAAAAAAAAAAAAuRtI2MugAAAAoAAAAAAAAAAAADz7xXmwlsAAAACgAAAAAAAAAAAABiQ947SkMAAAAFAAABjq1zUsA=",
"inSuccessfulContractCall": true,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000001",
"topic": [
"AAAADwAAAAlmbl9yZXR1cm4AAAA=",
"AAAADwAAAAlzZXRfcHJpY2UAAAA="
],
"value": "AAAAAQ==",
"inSuccessfulContractCall": true,
"contract": "CAFJZQWSED6YAWZU3GWRTOCNPPCGBN32L7QV43XX5LZLFTK6JLN34DLN",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000002",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAApyZWFkX2VudHJ5AAA="
],
"value": "AAAABQAAAAAAAAAS",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000003",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAt3cml0ZV9lbnRyeQA="
],
"value": "AAAABQAAAAAAAAAR",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000004",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBsZWRnZXJfcmVhZF9ieXRl"
],
"value": "AAAABQAAAAAAAF3I",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000005",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABFsZWRnZXJfd3JpdGVfYnl0ZQAAAA=="
],
"value": "AAAABQAAAAAAAAs8",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000006",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA1yZWFkX2tleV9ieXRlAAAA"
],
"value": "AAAABQAAAAAAAARU",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000007",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA53cml0ZV9rZXlfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000008",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA5yZWFkX2RhdGFfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAAU8",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000009",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA93cml0ZV9kYXRhX2J5dGUA"
],
"value": "AAAABQAAAAAAAAs8",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000010",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA5yZWFkX2NvZGVfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAFiM",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000011",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA93cml0ZV9jb2RlX2J5dGUA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000012",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAplbWl0X2V2ZW50AAA="
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000013",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA9lbWl0X2V2ZW50X2J5dGUA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000014",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAhjcHVfaW5zbg=="
],
"value": "AAAABQAAAAAAn9/M",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000015",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAhtZW1fYnl0ZQ=="
],
"value": "AAAABQAAAAAAKFlD",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000016",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABFpbnZva2VfdGltZV9uc2VjcwAAAA=="
],
"value": "AAAABQAAAAAAEF3/",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000017",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA9tYXhfcndfa2V5X2J5dGUA"
],
"value": "AAAABQAAAAAAAABA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000018",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBtYXhfcndfZGF0YV9ieXRl"
],
"value": "AAAABQAAAAAAAAU8",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000019",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBtYXhfcndfY29kZV9ieXRl"
],
"value": "AAAABQAAAAAAAFiM",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680548864-0000000020",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABNtYXhfZW1pdF9ldmVudF9ieXRlAA=="
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "d0a9cdde5580e1d9e4b5755c62b9641b55e12ca1de2621d3e8b100c6dcc51c66"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000000",
"topic": [
"AAAADwAAAAdmbl9jYWxsAA==",
"AAAADQAAACAWjQcU0knrVjQuJy8yQWkOZO+v4Cos4LsPoOJuCnB09Q==",
"AAAADwAAAAlzZXRfcHJpY2UAAAA="
],
"value": "AAAAEAAAAAEAAAACAAAAEAAAAAEAAAAJAAAACgAAAAAAAAAAAAAAD8XMiFkAAAAKAAAAAAAAAAAAAAAWEbcuywAAAAoAAAAAAAAAAAAAWvKMKXEyAAAACgAAAAAAAAAAAAAs/W+Cb90AAAAKAAAAAAAAAAAAAABGZmkRcgAAAAoAAAAAAAAAAAAAABagBvOpAAAACgAAAAAAAAAAAABigDlw5koAAAAKAAAAAAAAAAAAAAuQgAUgrAAAAAoAAAAAAAAAAAAANOoRWG7fAAAABQAAAY6tc1LA",
"inSuccessfulContractCall": true,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000001",
"topic": [
"AAAADwAAAAlmbl9yZXR1cm4AAAA=",
"AAAADwAAAAlzZXRfcHJpY2UAAAA="
],
"value": "AAAAAQ==",
"inSuccessfulContractCall": true,
"contract": "CALI2BYU2JE6WVRUFYTS6MSBNEHGJ35P4AVCZYF3B6QOE3QKOB2PLE6M",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000002",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAApyZWFkX2VudHJ5AAA="
],
"value": "AAAABQAAAAAAAAAL",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000003",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAt3cml0ZV9lbnRyeQA="
],
"value": "AAAABQAAAAAAAAAK",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000004",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBsZWRnZXJfcmVhZF9ieXRl"
],
"value": "AAAABQAAAAAAAF4w",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000005",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABFsZWRnZXJfd3JpdGVfYnl0ZQAAAA=="
],
"value": "AAAABQAAAAAAAAkE",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000006",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA1yZWFkX2tleV9ieXRlAAAA"
],
"value": "AAAABQAAAAAAAAKU",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000007",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA53cml0ZV9rZXlfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000008",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA5yZWFkX2RhdGFfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAAWk",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000009",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA93cml0ZV9kYXRhX2J5dGUA"
],
"value": "AAAABQAAAAAAAAkE",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000010",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA5yZWFkX2NvZGVfYnl0ZQAA"
],
"value": "AAAABQAAAAAAAFiM",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000011",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA93cml0ZV9jb2RlX2J5dGUA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000012",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAplbWl0X2V2ZW50AAA="
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000013",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA9lbWl0X2V2ZW50X2J5dGUA"
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000014",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAhjcHVfaW5zbg=="
],
"value": "AAAABQAAAAAAma6G",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000015",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAAhtZW1fYnl0ZQ=="
],
"value": "AAAABQAAAAAAJgSC",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000016",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABFpbnZva2VfdGltZV9uc2VjcwAAAA=="
],
"value": "AAAABQAAAAAADMKP",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000017",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAAA9tYXhfcndfa2V5X2J5dGUA"
],
"value": "AAAABQAAAAAAAABA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000018",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBtYXhfcndfZGF0YV9ieXRl"
],
"value": "AAAABQAAAAAAAAWk",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000019",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABBtYXhfcndfY29kZV9ieXRl"
],
"value": "AAAABQAAAAAAAFiM",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
},
{
"type": "diagnostic",
"ledger": 51101420,
"ledgerClosedAt": "2024-04-05T08:50:21Z",
"id": "0219478927680552960-0000000020",
"topic": [
"AAAADwAAAAxjb3JlX21ldHJpY3M=",
"AAAADwAAABNtYXhfZW1pdF9ldmVudF9ieXRlAA=="
],
"value": "AAAABQAAAAAAAAAA",
"inSuccessfulContractCall": false,
"contract": "",
"transactionHash": "bfd69b55d229eac743d97dbc20eb8208ed856ed0d7c914c7dc2aac84f24dbb44"
}
]
}
}
/getlatestledger
Get details for the current latest known ledger of the node.
GET
https://api.expand.network/chain/getlatestledger
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getlatestledger?chainId=1500
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "9efea4e5b9ec90917f671e7d4671e9be6c9db43d6ec7b4c7104bdae050e76267",
"miner": null,
"nonce": null,
"number": 51101417,
"parentHash": "19eaa590d61a0179fed3c92fe85d5398ace98a704b55a09da8360db31917e804",
"size": null,
"timestamp": 1712307003,
"totalDifficulty": null,
"transactions": [
"5b989379998b5f9932ebed24bcbb4260ac9f7d96c60212a08ef5c6b473d98cfe",
"392d4b6f6b4f34b70a9b1450bd1912336deaf603abb19f4a107dce31e923ab95",
"00d32da24c8742b5815f3ec27589a824bc18e3b24f8f0ab4cbfde7fa107c95ac",
"61ae6e50822e7503999e494bbf41ec01a5c66ab2d8e9e46df053bc376f21c0e7",
"2dd5c4e5b10d3c773fd66851cd0be54444c2dc3ea3005a2eac59558bd12e2379",
"dd00a33b4f812d5f82b4c1ec5d20d5aa131166d9570ac6d9795a62d71e704994",
"cf10a781da6f79589e05c2b60967e448b9b850823a47f1f2526fbed7cfa635b6",
"145592209b96ede1d93408f2c7467c6ca9c9e4caa7bcdbe3b3bce9ea71a7f509",
"1f99815dde80d4ab5670b90a33ebe4e6f84619bc41e40aec8fd396c449a52f4b",
"380a7867289a7e6980185bedc7f559d1d3eb3b47a3f584fc163d4f6af09429ab",
"cd500a84e602c447dba863238a463c2b8a6b2ab0d700ef860647e24d8a0bb87d",
"7d2395f5b9ddba46529d02267b95f98ef07d5f79a3ece79e947472f24edaceb1",
"a1b02b0e3c6d1f69df8d50235d16323dc1e135a7ea6ddfb8f9332e1404b2e1c1",
"e7179b5465a45de3923e2b565b1061fe5c04b98f766f6244dd7ba3c2b027c573",
"58220259d819045460ef0c1882dda909b69256632fbd223bd7557b7d779e084f",
"86623e066569873a51c86e169f58bf3156e11067fcb662d8ee819eaccab9095a",
"07eaa5ad9171d20c07cf435d55538f98cddec088709957aa8fc2de8ced4f0903",
"f8bbe4bb18bb11f4c56c259511480a4e091446fdf4f7c47af11c60296e2f98e3",
"a2a4cf9bc39bdf52d2cbb6b067b59fbdea437386f8ec91669d5a205fa973021d",
"f2aa3ef5f8a7b1a02dbb4bfa9e8390fd63c540ab75dedd768050bf08312ae958",
"b3d5c59d1e0abc9eb5856f6e2ec2877483530a82614ab8dcb35e9ef25b18e7d5",
"4e7fab3118619bcb8084116118b06d4aa9058e060aa8827ac84fe1a7e4f01a60",
"fe1d7433a5caa2d462627a5fc4739e8eef4f1b32b762518c88bb38e6ada157f2",
"b0061f68a0addd155154b38a3c511f79b3ce7d013b9840636c4e1141d6b5052b",
"907414a6ffc37c0d6d50481cbe1bb66fd65f141cd8e4b14c68244980b373cd1f",
"bb063d405e85b830b2a67065de8d892afa6b66e6f42b6bc5a5782b5f2563b475",
"d386026b6e7f002648c2717fe996d60ef11b3ce4289ef0de29aecc605dc08215",
"8142a796d3d3dd718bbf55a75e91f93dfa7dd292127eb435e9e46f8f38d6cfb0",
"9a11ec4b4063bf0d69f0c40f7a2b6e3073165692fe35e63fd1781b478549c915",
"060f78c7a9e81f66a4a648e89e60ba33e3236151ef95b456dbff7d591413b104",
"8e16270ff122a9af71dda147af7dac9f464d2e9a5e7461a2016bb3995e956626",
"2f52cdb57b45c4edce11627f38ab42c2ba8e34b887cb9a4a3b999d2aecc8417f",
"11da64aed1fb2e6a71ae7958e988b0d0f962daa3d086ffad675100f2c5d84b9c",
"9d47d0b15a11e77e70fc4fb89e5a8eee98928094641b30c301a9ce5659ecd6c3",
"77ba0e161d78b3164cc575148c402360f250539d661a158197d2ef018e31037b",
"8ff68083fcb24ebd7b3fc6a97fc56769b7f21b1f3fd2dd371d43390fffd93b93",
"d436eb1e601445271b01d59b26d369780c4723ffd2f9b20e8d025139a5403d24",
"33a35e3fa2f7d52a772aa34a29e7b9f3c2e083f6a48f256a62485ba964df6724",
"cc612cef5ac06791d0afaf719b59dc6db3b278becd2d6b6e78e04b52a8d4afce",
"cacc3859f44063de92b1dbe3a56f2e4a168cbe329eab0fa98d9be141421ce888",
"1e992704bd5d198ab15cfa05e72b8b0adf2f23a0e3e1e6eb6d0064b0d8e2ef60",
"2a2186299819ccef2fb8a13e6786f56154531f1d9450f8aa7dcae2026bee1406",
"b38a87f9aa7cebfff1ef6654439d1dd59835d1283dd28cff788516cac1a7ec6d",
"4d0a7c8555c7f7178f4eb251930f21cc61c906f31080fc355453308c53249db0",
"ef80d8b4bb799f4d5bedea9b6e543e796093fa76c9ad82e3129bb44b96b39853",
"e946a7bba7bedd70d9fe0ef5b8a3eb78371b769fb8980194aa2481c34044c6e2",
"967b17f7fc63403c22137ae8646f0bafff7a629c0d6128353d3ffef0be973ccd",
"ed2d8a099d6022b22943ce8802bfdfa677992a8eb5db642eaf171a47bb7cfb93",
"c25fff9c57a30279560dc0956e4ffbbe991da68b6b71df83f67b545451754f4c",
"b5ebc2dbd1b9fa77d5c86c3bc6df457ef20d17ba12074e25683f423bacb674eb",
"bec83d531230c067a4d79ad8fac4616d1afa75fe2d92703745be02f92b84b133",
"dbaae2470d0d605ce62d045bc06e1e8e3287230ed672809e7bb9fd5756fe5a0c",
"200e34a3d466c8c2213591ad1a4f4c267bfddfb49405d69bf0f65611776b49b0",
"c2e7383cd05fa74cb25f69986f9e1df3262c622ac61ea8e259f430ab75ef3688",
"77f6f98d11a69341f96160d071b9901d64383dbdb69f1ce59cde451cd464b07e",
"01c619f632128255736e9146d7049efb1f0f627c7c1808141aa46e77ea158ed0",
"0002edc63f69c3491437ff252175d85924a510aa6e3ef0ed2ed7cf275a5bc7de",
"f0b938344110f81ee7109a3b59f00a370da6eeddfc1baf7782964cd8f686aa72",
"212aaeec48461b554f162f3347f5d8a1fa95c6dae2592dc41e6f2f74a3b6ff43",
"4e1ec595fdc4bf35816744a87789805694f5fde64c621e1f4cc6466dc1c1c2a2",
"50be788ee741e0ef1b71f835cff58ef6f9f831db62129c8d2cc99636cbb4266b",
"6f816a330bcb0170f1c8e2279b669290ea20a50b3fb3481108b71748b8e73250",
"2c28c1b897661752f9980a0a4e20ae87f7b0e3af1d79c32c455cab326d351962",
"8816d8c4cd2a5ccdb245447f59d1b271ac777faeb71a4a321e6f332a9f255e2f",
"89402784a5b1b7cdd928d110d8420c5ba3d9b4cde27db8b14679775fe5633888",
"451acc0fc12ccddcc35b40053d09a4cd95d7568d7049707c63811194ba03ef32",
"eca451cfb95fb5c742262435a271702d6004c8f2d9f4c0288a19bfa8bf9eee08",
"73151aff794a3edd4c6bd342da02f8c0c0ab776cbd47ee7bbf650eb716d4dd87",
"2601144aa216897cf05e428744f96a11f9d101f7d818f98cb561f054f92aeff0",
"a03c53f34a8ba0d8ee625bedee8452bddb7f32438f5c2f091f88dc3fa7d3cf5b",
"4dc990e20fc440d2573d763d677b2c2877ab39ebb0febf0a3f27ef9394dd53e0",
"709b8a7006fe52d4ee3b38bc5fd7bbfca973765d0744a3e1417785fe570e3031",
"045ba2a8570fc38f159b1246c83832cc6ffb7e18094a8003940594bda4696305",
"06a0ad7a1654c2b9b61958887ec53ff2b4aaee908ea498769631df3f9bc612c8",
"e75b440d666f0c38c6e21a54b341f9a8be6f10b044d181a1c0951456f9a3fa09",
"eecfaa386a31f8f56164842b8a96cba1c8f4ead1b716083f0be640f46aa9f2af",
"766465433d51e2424f1aed3128cfbea5cff9dfbb37f0718d60a41fb6ba5bd3a1",
"949d88afa12f29b1939ad75e308d47c77c9d52702a8493c36c910a6c3edef7c8",
"ec506de8dc949b76221b8312e1efe7dd8afa9043f589406b9554723613962e8e",
"46832a5c3a9ac9a1de0857f83df4ab9d837f6352a9c3d80302ace91c208be47d",
"bdb338337a45fc4c93a983b879ffda861aeecbfbf635744c03086a3842e34fff",
"4e08ae01afc232b9a9178a775602af681a6467bf3a300a6965113004e7177c72",
"f4e44c2b33d2891e8df3ec80905d47ddc4153ea89b711597bdf041c6c49555dd",
"274984371be433b27ebfb4368c8c7ee450403189b4eb73443cd9873affcb4c43",
"6b6ae8a135281d135c2bf58cc2a53b0130ed39c393ab36a46e494edbb24ee364",
"9defccce0d851f99647daaaab3e7f59cdfb432b391d388ed4386a045052d60e5"
],
"transactionsRoot": null,
"uncles": null
}
}
/createaccount
Create and fund a new account using the public key as the account ID.
POST
https://api.expand.network/chain/createaccount
Request Body
Remote procedural call URL.
The source account, from where the XLM will be withdrawn.
Amount of XLM to send to the newly created account.
Sample Request
Copy {
"chainId": "1500",
"from": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
"initialBalance": "5"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"newAccount": {
"publicKey": "GDHAD5ZRF35MJTEW4NWSNTUBQUSSVTT2NPWDSDYMLM7QANSCZKXOECZS",
"secretKey": "SDVFDBA43HEISQY7UPVJAJSKXHSVZGNZZOZGIJ4RLL7NJXTNSKCO6GBX"
},
"from": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
"gas": "100",
"data": "AAAAAgAAAADpj6fg3ucLOk6Bhu//xjLZukCRXxO5Pn3xfYlxA/sWMgAAAGQAWKCYAAAAEAAAAAEAAAAAAAAAAAAAAABmD8HcAAAAAAAAAAEAAAAAAAAAAAAAAADOAfcxLvrEzJbjbSbOgYUlKs56a+w5DwxbPwA2Qsqu4gAAAAAC+vCAAAAAAAAAAAA="
}
}
/sendtransaction
Submit a signed transaction to Stellar for processing.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The signed transaction to broadcast for inclusion in a ledger, serialized as a base64 string.
Sample Request
Copy {
"rawTransaction": "AAAAAgAAAADK19wCgQBrHYbni7IEXqbuH39ZZ6+CyjQd0pgMYs1LFQAAAGQADYdgAAAABgAAAAEAAAAAAAAAAAAAAABmDUAMAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmRUZXN0AAAAAAAAlYebzd+2+XWQwUfqzG15Geiys7ZyG3jfrYEVwKQYQxIAAAAAHc1lAAAAAAAAAAABYs1LFQAAAEDT1KH8ZqJvA0M0Ncg6RsekzR5BceG41DUDgR/f8xgZk16vEOVY2BZ2Eq+FmWTXdXRP2LX/uLSKh5xxCb4v3g8O",
"chainId": "1500"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"transactionHash": "3a6208b4c7da5173a5cbe5ff1f71b3c941573f0f6f68482ba3fc81fc071ac1aa"
}
}
/simulatetransaction
Submit a trial contract invocation to simulate how it would be executed by the network.
POST
https://api.expand.network/chain/simulatetransaction
Request Body
Remote procedural call URL.
A signed Stellar transaction, serialized as a base64 string.
Sample Request
Copy {
"chainId": "1500",
"rawTransaction": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAK6+UDC8UiAAAAAwAAAAEAAAAAAAAAAAAAAABmD/WzAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAJaW5jcmVtZW50AAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpZfQAAAuQAAACEAAAAAAAK64EAAAABt9XRvgAAAEA/PHP5Z5ZmpQTYf6UnbQPTBaIbhWlCznTGbt9G7yYQQSSzOLclrxNiv/+Oj+UaVO4T3mhFC5+VC/uSotgIJykA"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"result": {
"transactionData": "AAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpyuAAAAwAAAACEAAAAAAAAxO0=",
"minResourceFee": "50413",
"events": [
"AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAPAAAACWluY3JlbWVudAAAAAAAAAE=",
"AAAAAQAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJaW5jcmVtZW50AAAAAAAAAwAAAAI="
],
"results": [
{
"auth": [],
"xdr": "AAAAAwAAAAI="
}
],
"cost": {
"cpuInsns": "830456",
"memBytes": "1223985"
},
"latestLedger": 51103937
}
}
}
/decodetransaction
Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
A signed Stellar transaction, serialized as a base64 string.
Sample Request
Copy {
"chainId": "1500",
"rawTransaction": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"network": "1500",
"transactionEnvelope": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA",
"transactionHash": "8d6f0c658e59962c023da0f4b6a7e6973ce377d161a2134281bb17d410d2bf90",
"transactionFee": "100",
"source": "GBGJRTRQXVAR2IDSMWH34NSRSIRV7NMP5DVKAK34P6SPTW2MEXYXFMCO",
"sequence": "459518550999051",
"operations": [
{
"type": "changeTrust",
"line": {
"code": "ExpandDollar",
"issuer": "GCN75YMAUNO7WE3BOD3F6UDPEWRMZUTOXC6VYAS6ZWAO3ANONE6N6LHT"
},
"limit": "54.0000000"
}
],
"signatures": []
}
}
Starknet /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x002eb24d4fda7c0e4473c091da3bc0b2dfd1622d3d8334d0f5e921587aaeb01f&chainId=400
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "35689118110967661"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock/?chainId=400&blockNumber=164639
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "0x4ab1311e8211aac585ea106f54a38fda9d6d9f82df3c12d6768475bb47daa7a",
"miner": null,
"nonce": null,
"number": "164639",
"parentHash": "0x64ff22f43e22bee32e857b2dd59c389b6bd451cb53404b631602d2c8077cc03",
"size": null,
"timestamp": "1692600243",
"totalDifficulty": null,
"transactions": [
{
"calldata": [
"0x2",
"0x23c72abdf49dffc85ae3ede714f2168ad384cc67d08524732acea90df325",
"0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c",
"0x5d5495a5d59cdc0f45ca6dbefda525866910eb800530d47e75cc7a3b2becc87",
"0x64e5aa92"
],
"max_fee": "0x29ceb1c7616e4",
"nonce": "0x45",
"sender_address": "0x5d5495a5d59cdc0f45ca6dbefda525866910eb800530d47e75cc7a3b2becc87",
"signature": [
"0x65b5b3bf40d98a50c1c8419f731fc560ca91419e22cc817c79c581d6a8bd2a9",
"0x6a35a25f9e123029f8f8e235d9a1559dba46b358f71951615dda91de636cbc6"
],
"transaction_hash": "0x5c750d63ca77fc87c8770e7c95d06feb6cf6518f2538804eb9d9328f71c2101",
"type": "INVOKE",
"version": "0x1"
}
],
"transactionsRoot": null,
"uncles": null
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?address=0x02d6150113d899d8c9de05990974c115dd532bc4dbc71bde85210410b9b30ae5&chainId=400
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0x03916ca8924008be74ccdaebf8214704ebec30b2ca433dd29a4a7ebe91ab9243",
"transactionStatus": "ACCEPTED_ON_L2",
"blockNumber": 164636,
"timestamp": null,
"from": "0x7b1c654512354ef5447f8646ac20af60111f015612a57b1bfac21dee33b4907",
"to": null,
"value": null,
"transactionFees": "182195480376306",
"gas": "274000000000000",
"gasPrice": null,
"input": null,
"nonce": "26",
"network": null
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"chainId": "400",
"rawTransaction": "eyJpbnZva2VfdHJhbnNhY3Rpb24iOnsic2VuZGVyX2FkZHJlc3MiOiIweDAyNzM1ZTYwZjAzNDZhODgyNzYzNjI5MDIyMGU5OTUxMTdjYzE0MjgwNTQzZDVjZDVjOGQ1NDRkNzMzNGJlZjgiLCJjYWxsZGF0YSI6WyIweDEiLCIweDQ5ZDM2NTcwZDRlNDZmNDhlOTk2NzRiZDNmY2M4NDY0NGRkZDZiOTZmN2M3NDFiMTU2MmI4MmY5ZTAwNGRjNyIsIjB4ODNhZmQzZjRjYWVkYzZlZWJmNDQyNDZmZTU0ZTM4Yzk1ZTMxNzlhNWVjOWVhODE3NDBlY2E1YjQ4MmQxMmUiLCIweDAiLCIweDMiLCIweDMiLCIweDQ3ZGU0YTBhNjg1NTdmMzhiNzU0ZTZkODc1YWNkNDk3MmNiZDJiMjIyZGU5YmEzMmY0Y2UwOTAyYTMwODlmZiIsIjB4MjA4NTcxIiwiMHgwIl0sInR5cGUiOiJJTlZPS0UiLCJtYXhfZmVlIjoiMHg1MWViODViOWFiNSIsInZlcnNpb24iOiIweDEiLCJzaWduYXR1cmUiOlsiMHg0NTc4MjhmYzU5NTBiY2NkNWYwMjhjNjU5ZjI0ODZlZWU0ZDZkMmQ5NDcxMGI0NTZhNjYyYzBkZGJmZjkwOWIiLCIweDk1NjQxMDYzMWM3ZGVkOWZmNTIwNGE3ODVhNWY0NjhiMDNjYTQ5YjU1ZTgxMzZiMGNkNDFhNmRkYjExNzdmIl0sIm5vbmNlIjoiMHgyYSJ9fQ=="
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "400",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
zkSync /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x2571abBe2e5DdaE6043ef59153E76Ae3aA14Be70&chainId=324
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "33852722303674668"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=696293&chainId=324
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": "0",
"gasLimit": 4294967295,
"gasUsed": 3273403,
"hash": "0x978dd7094735b8621254f26a875f020413ef7a498ad5dce79ab322bf5c4e5313",
"miner": "0x0000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": 696293,
"parentHash": "0x0019d93c7755306ee4861d6e203fe3bf754fab46c24d74f9a700a46b236c023f",
"size": 0,
"timestamp": 1680490794,
"totalDifficulty": "0",
"transactions": [
"0x638118f1c0ee1ec486d54e3928839380cac1c32952b9938c6ce83ec068bb4552",
"0x3fe45d5c3d918d07e090f8f31b207d181ce6efd9032d013941303117722ad0ca",
"0x6f77fd8b4f58d843d43a41437cc31f02ad26c5593c52d2c0bd88bbcfc641d89a",
"0xdbf67fea5c4838ee5b4a4703fbe21975a810097a2aaa395bef68c5eeff40aa82",
"0x2747b2e2db61814ef366c335ba25bb35c440aa304ffaac3e5050300ea3df5ec3",
"0x4c88d08864543d2bda36087244336994f7e5b5b463a1270532175ad4c4563ac5"
],
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"uncles": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=324
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100000000"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Contract address whose storage is needed.
Slot index on the smart contract. By default, it is taken as 0.
Sample Request
Copy https://api.expand.network/chain/getstorage?address=0x32Fd44bB869620C0EF993754c8a00Be67C464806&chainId=324&index=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=324&transactionHash=0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xe43b77386a5e5bdffaa62b347044cfd28b71947b6c9869046a1df644a3b83bb0",
"transactionStatus": true,
"blockNumber": "26972503",
"timestamp": null,
"from": "0xBf1C2eD425398FD04ecf319BEbd39EC487eEFeDF",
"to": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
"value": "0",
"transactionFees": "47253200000000",
"gas": "1056669",
"gasPrice": "100000000",
"input": "0x095ea7b3000000000000000000000000f8b59f3c3ab33200ec80a8a58b2aa5f5d2a8944cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": 50,
"network": null
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Sample Request
Copy {
"rawTransaction": "0xf86d0d8405f5e100830927c0946fb447ae94f5180254d436a693907a1f5769690087038d7ea4c680008082027ba0d73a953d53eb64f90c7c91273df70074021ec9d6aa2280ba53527086a5d45f65a0273ee55497b2374af9b244af11a2e5a02f94137385fac51ef51f21908a18ca57",
"chainId": "324"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "324",
"transactionHash": "0x7d987e52e0b106a2171919775970089b052857046fbf32137c8c445f10d6d69f"
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
The raw transaction to be given for decoding.
Sample Request
Copy {
"rawTransaction": "0xf86d808405f5e100830927c0946fb447ae94f5180254d436a693907a1f5769690087038d7ea4c68000808202aca0535316a857d5c6f59ee228509cf9eb638905250548c7a7effcc6ebff22bca4dea012a9859bf2f663521c9832f1d118de7d548e119b5d9b07ff6d6d349025b3f8b2"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"parsedTx": {
"nonce": 0,
"gasPrice": {
"type": "BigNumber",
"hex": "0x05f5e100"
},
"gasLimit": {
"type": "BigNumber",
"hex": "0x0927c0"
},
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x038d7ea4c68000"
},
"data": "0x",
"chainId": 324,
"v": 684,
"r": "0x535316a857d5c6f59ee228509cf9eb638905250548c7a7effcc6ebff22bca4de",
"s": "0x12a9859bf2f663521c9832f1d118de7d548e119b5d9b07ff6d6d349025b3f8b2",
"from": "0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
"hash": "0x90521267c0d1e6f72398e1bc1d45552415145126656a385c07494c56832ea3c9",
"type": null
},
"assetChanges": {
"from": "0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"value": {
"type": "BigNumber",
"hex": "0x038d7ea4c68000"
}
}
}
}
Tron /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=TSgdbpW9UcUpMkyb3E3SuY8f3DJn4nYbux&chainId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "7498"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=48208733&chainId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "eca6c09ca08c8d0dddc1d09de5ac266ca200f2e236ca66f368fffe301e1827b0",
"miner": "4114f2c09d3de3fe82a71960da65d4935a30b24e1f",
"nonce": null,
"size": null,
"totalDifficulty": null,
"transactions": [
{
"ret": [
{
"contractRet": "SUCCESS"
}
],
"signature": [
"8e523c5a79d2232ea15bf63dab09a2adf10d75a88d0b1c04b7167106789e35635c6a71fc02f84b33aa881de91c1b50d8bc10b7113bc4ab151277395b3f141dc401"
],
"txID": "30adceb49a8490f67896d9c9c7d6a0ddb6c2ef01239b550afbdc53f35e05204b",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"amount": 3,
"owner_address": "4174d6b16fffe751fa24a3b8191261cf90ea430375",
"to_address": "41c626d897457111e3bfc1541029eb9cce2709a89b"
},
"type_url": "type.googleapis.com/protocol.TransferContract"
},
"type": "TransferContract"
}
],
"ref_block_bytes": "9b49",
"ref_block_hash": "39e7bbee118cadac",
"expiration": 1675226820000,
"fee_limit": 10,
"timestamp": 1675226763375
},
"raw_data_hex": "0a029b49220839e7bbee118cadac40a0dbb2dae0305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a154174d6b16fffe751fa24a3b8191261cf90ea430375121541c626d897457111e3bfc1541029eb9cce2709a89b180370efa0afdae03090010a"
},
{
"ret": [
{
"contractRet": "SUCCESS"
}
],
"signature": [
"af956f79c6f558798bef8232feb300429bb1bc791da1589383b27b84beca06925947db6817b617cd92e214bac8ce4dbfd54c0aefb4ec408db0ad682709fc189201"
],
"txID": "a63c688a237a50a44f2dab2c9b22ac17b54511a5b5ff6c25037885d231c67de9",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"data": "b6e405ef000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a63700000000000000000000000063b9f3f8616233aad5b35f7e48b828af2bfc1e9f000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000697542ce1786ee6cd01096b47e637d1ccd311f2700000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000004f3a00000000000000000000000000000000000000000000000000000000000043b1000000000000000000000000000000000000000000000000000000000000445d00000000000000000000000000000000000000000000000000000000000045890000000000000000000000000000000000000000000000000000000000004593000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000634ff41c0000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f80000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000c7ec0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a",
"owner_address": "416764e69712991cd2193c07a790f035d3a73af2a7",
"contract_address": "411fe7a0d8f7ace1f4486d473cd7294740ee0510cd"
},
"type_url": "type.googleapis.com/protocol.TriggerSmartContract"
},
"type": "TriggerSmartContract"
}
],
"ref_block_bytes": "9b49",
"ref_block_hash": "39e7bbee118cadac",
"expiration": 1675226820000,
"fee_limit": 500000000,
"timestamp": 1675226762181
},
"raw_data_hex": "0a029b49220839e7bbee118cadac40a0dbb2dae0305af00e081f12eb0e0a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412b50e0a15416764e69712991cd2193c07a790f035d3a73af2a71215411fe7a0d8f7ace1f4486d473cd7294740ee0510cd22840eb6e405ef000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a63700000000000000000000000063b9f3f8616233aad5b35f7e48b828af2bfc1e9f000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000c69f3ede17ce98ee9dcb4d1f8b2850790253a637000000000000000000000000697542ce1786ee6cd01096b47e637d1ccd311f2700000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000004f3a00000000000000000000000000000000000000000000000000000000000043b1000000000000000000000000000000000000000000000000000000000000445d00000000000000000000000000000000000000000000000000000000000045890000000000000000000000000000000000000000000000000000000000004593000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000634ff41c0000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f800000000000000000000000000000000000000000000000000000000063508f80000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000c7ec0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a70c597afdae030900180cab5ee01"
}
],
"transactionsRoot": null,
"uncles": null
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=1000&transactionHash=b13e765c34a70c735c273d7e24b1fd467fd399e5bec8e816709839cfcbf34f3a
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "b13e765c34a70c735c273d7e24b1fd467fd399e5bec8e816709839cfcbf34f3a",
"transactionStatus": "SUCCESS",
"blockNumber": null,
"timestamp": 1675231016887,
"from": {
"tronAddress": "TMkK9G2KfKoVPycYTC9C5D7oU5wn8tu3w5",
"hexAddress": "4181313a7d9ea7ab0b7c7372019150ec3197008e6f"
},
"to": {},
"transactionFees": null,
"gas": null,
"gasPrice": null,
"input": "0a02a0d322082def2f21354f1ac440d0adb6dce0305a6e080c12680a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412300a154181313a7d9ea7ab0b7c7372019150ec3197008e6f50017a1541b68942ddb8108d0201caab6efebbc14d0c7e22c8280370b7efb2dce030",
"nonce": null,
"network": null
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
The encoded transaction, obtained from signed transaction.
Remote procedural call URL.
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1000",
"transactionHash": "8735e61e3be580a2d707dbddab35900a57609608285c344c89577002922f990a"
}
}
Aptos /getbalance
Get the balance or number of the native token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL.
The public address to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance?address=0xccd1f5fae72dfe1f2f41c425e77170e2c3aef3d1e7f9f301453806bfbf565177&chainId=1400
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "1071721119"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=47654752&chainId=1400
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
"miner": null,
"nonce": null,
"number": "47654752",
"parentHash": null,
"size": null,
"timestamp": "1681636026911155",
"totalDifficulty": null,
"transactions": [
{
"version": "122660455",
"hash": "0xe2ae82c6c29ea7ab9aa66bdb8d9153a188b653498fefa0e51347419a3e79efed",
"state_change_hash": "0x47b9b8f124d155c55c396ac6047909312106186646738c12f150f3721f928fbc",
"event_root_hash": "0x3abbe8ac0d24cf244d33ff1242113abcccabc5724d1517f5ad0b38877ac4d630",
"state_checkpoint_hash": null,
"gas_used": "0",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "0xbe2434630c973a72e4b61c1bf4f18b6357352e0da1939f51f1b3f466f6705329",
"changes": [
{
"address": "0x1",
"state_key_hash": "0x5ddf404c60e96e9485beafcabb95609fed8e38e941a725cae4dcec8296fb32d7",
"data": {
"type": "0x1::block::BlockResource",
"data": {
"epoch_interval": "7200000000",
"height": "47654752",
"new_block_events": {
"counter": "47654753",
"guid": {
"id": {
"addr": "0x1",
"creation_num": "3"
}
}
},
"update_epoch_interval_events": {
"counter": "0",
"guid": {
"id": {
"addr": "0x1",
"creation_num": "4"
}
}
}
}
},
"type": "write_resource"
},
{
"address": "0x1",
"state_key_hash": "0x8048c954221814b04533a9f0a9946c3a8d472ac62df5accb9f47c097e256e8b6",
"data": {
"type": "0x1::stake::ValidatorPerformance",
"data": {
"validators": [
{
"failed_proposals": "0",
"successful_proposals": "10"
}
]
}
},
"type": "write_resource"
},
{
"address": "0x1",
"state_key_hash": "0x7b1615bf012d3c94223f3f76287ee2f7bdf31d364071128b256aeff0841b626d",
"data": {
"type": "0x1::timestamp::CurrentTimeMicroseconds",
"data": {
"microseconds": "1681636026911155"
}
},
"type": "write_resource"
}
],
"id": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
"epoch": "2231",
"round": "11072",
"events": [
{
"guid": {
"creation_number": "3",
"account_address": "0x1"
},
"sequence_number": "47654752",
"type": "0x1::block::NewBlockEvent",
"data": {
"epoch": "2231",
"failed_proposer_indices": [],
"hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
"height": "47654752",
"previous_block_votes_bitvec": "0x81ff97eeff69ef7e8fe5bdff7c",
"proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
"round": "11072",
"time_microseconds": "1681636026911155"
}
}
],
"previous_block_votes_bitvec": [
129,
255,
151,
238,
255,
105,
239,
126,
143,
229,
189,
255,
124
],
"proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
"failed_proposer_indices": [],
"timestamp": "1681636026911155",
"type": "block_metadata_transaction"
}
]
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=1400&transactionHash=0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d",
"transactionStatus": true,
"timestamp": "1687506074530639",
"from": "0x7ea47ff5231ccc1fa81bd90fc8367d7bdb8e25daa2b8294dff93715420ab5ba3",
"to": null,
"value": null,
"transactionFees": "323",
"gas": "200000",
"gasPrice": "100",
"input": null,
"nonce": null,
"network": null
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100"
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
The encoded transaction, obtained from signed transaction.
Remote procedural call URL.
Sample Request
Copy {
"chainId": "1400",
"rawTransaction": "gDjn3zwy3kvqbul7NgB81Ce5fZ9B1y3L508UwTV2ZVIeAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQRjb2luCHRyYW5zZmVyAQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQphcHRvc19jb2luCUFwdG9zQ29pbgACIM0mOLBts6prchQV2uykOl5NrjQrmdPLAJGO04eAMDw7CExLTAAAAAAA6AMAAAAAAABkAAAAAAAAABFtiWQAAAAAAgAgjhPwSNdxs13Zr3j92aNnTHzkrsJJzIh51gi/xKNaUw9AeqtnqL1X6gXm6GcPhf9jiO6ma+YOYhOGFh8F1XGMQg8IxOFBDVF2g1EToVMUSfUEzvdZk/AzgwZB8yTHoZjVDA=="
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1400",
"transactionHash": "0x0df58478f17d3e94a1f033ee981ef7c34bd34f8e2ae4572915062a3575f8bbe2"
}
}
Stellar RWA /settrustline
Implement a trustline between issuer and distributor.
POST
https://api.expand.network/rwa/settrustline
Request Body
/issue
Executes a payment operation to create (or mint) an asset on the Stellar network.
POST
https://api.expand.network/rwa/issue
Request Body
/transfer
Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account.
POST
https://api.expand.network/rwa/transfer
Request Body
/burn
Executes a transaction to burn or delete an asset.
POST
https://api.expand.network/rwa/burn
Request Body
/freeze
Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account.
POST
https://api.expand.network/rwa/freeze
Request Body
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Step 1: 👉 Navigate To expand.network homepage ( )
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details. By default, Ethereum.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Copy {
"chainId": "1500",
"from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"amount": "100",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"assetCode": "VELO"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"gas": "100",
"data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8FoAAAAAAAAAAEAAAAAAAAABgAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
}
}
Copy {
"chainId": "1500",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"assetCode": "ExpandDollar",
"amount": "54",
"to": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"gas": "100",
"data": "AAAAAgAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAGQB5a+YAAAAAwAAAAEAAAAAAAAAAAAAAABmD77nAAAAAAAAAAEAAAAAAAAAAQAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAAJFeHBhbmREb2xsYXIAAAAA2cjCkIUrJUAfl4jP3Dl+yiMfkPiX6YAw+HQSJ6SIIs0AAAAAIC+/AAAAAAAAAAAA"
}
}
Copy {
"chainId": "1500",
"from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"to": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
"amount": "100",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"assetCode": "VELO"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"to": "GDUY7J7A33TQWOSOQGDO776GGLM3UQERL4J3SPT56F6YS4ID7MLDERI4",
"gas": "100",
"data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8BMAAAAAAAAAAEAAAAAAAAAAQAAAADpj6fg3ucLOk6Bhu//xjLZukCRXxO5Pn3xfYlxA/sWMgAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
}
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"gas": "100",
"data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8C0AAAAAAAAAAEAAAAAAAAAAQAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
}
}
Copy {
"chainId": "1500",
"user": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"assetCode": "VELO"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"gas": "100",
"data": "AAAAAgAAAADZyMKQhSslQB+XiM/cOX7KIx+Q+JfpgDD4dBInpIgizQAAAMgB5a+YAAAAAwAAAAEAAAAAAAAAAAAAAABmD8EjAAAAAAAAAAIAAAAAAAAABQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAAFWRUxPAAAAAAAAAAAAAAAA"
}
}
Bridge We are providing connectivity across multiple chains via Bridges.
Following are the common functions implemented for Bridge Protocol:
Get the swap quotation for the given token pairs.
Get the balance of a particular token pair of an account.
Get details of a transaction.
Get the list of chains supported by Squid Router, on expand.network.
Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.
Get the route details as to how the tokens will be bridged, token amount, etc.
Available on Squid Router
Swap assets across multiple chains.
Loan your assets to the specified bridge.
Remove user liquidity across multiple chains.
Remote procedural call URL.
Public address of the distributor of asset.
The amount of asset to set trustline for.
Public address of the issuer of the asset.
The code of asset to set trustline for.
Remote procedural call URL.
Public address of the issuer of the asset.
The code of asset to be issued.
The amount at asset to be issued.
The public address of the distributor.
Remote procedural call URL.
Public address of sender of asset.
Public address of the receiver of the asset.
Amount of asset to transfer.
Public address of the issuer of the asset.
The code of the asset to transfer.
Remote procedural call URL.
Public address of the distributor of asset.
The amount of asset to burn
Public address of the issuer of the asset.
The code of asset to burn
Remote procedural call URL.
Public address of user to be freezed.
Public address of the issuer of the asset.
The code of the asset to freeze
Squid Router /gettransaction
Get details of a transaction.
GET
https://api.expand.network/bridge/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/bridge/gettransaction?bridgeId=200&transactionHash=0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"srcTx": {
"transactionId": "0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c",
"blockNumber": 18268161,
"callEventStatus": "",
"callEventLog": [],
"chainData": {
"chainName": "Ethereum",
"chainType": "evm",
"rpc": "https://eth-rpc.gateway.pokt.network",
"networkName": "Ethereum",
"chainId": 1,
"nativeCurrency": {
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"icon": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg"
},
"swapAmountForGas": "2000000",
"chainIconURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"blockExplorerUrls": [
"https://etherscan.io/"
],
"chainNativeContracts": {
"wrappedNativeToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"ensRegistry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
"multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
"usdcToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"axelarContracts": {
"gateway": "0x4F4495243837681061C4743b74B3eEdf548D56A5",
"forecallable": ""
},
"squidContracts": {
"squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"defaultCrosschainToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"squidMulticall": "0x4fd39C9E151e50580779bd04B1f7eCc310079fd3",
"squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
},
"estimatedRouteDuration": 960,
"estimatedExpressRouteDuration": 20
},
"transactionUrl": "https://etherscan.io/tx/0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c"
},
"dstTx": {
"transactionId": "0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9",
"blockNumber": 48266930,
"callEventStatus": "CrossMulticallExecuted",
"callEventLog": [
{
"contractAddress": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"args": {
"eventFragment": {
"name": "CrossMulticallExecuted",
"anonymous": false,
"inputs": [
{
"name": "payloadHash",
"type": "bytes32",
"indexed": true,
"components": null,
"arrayLength": null,
"arrayChildren": null,
"baseType": "bytes32",
"_isParamType": true
}
],
"type": "event",
"_isFragment": true
},
"name": "CrossMulticallExecuted",
"signature": "CrossMulticallExecuted(bytes32)",
"topic": "0x7c3aa10c5d96985be6de7d2e6fa79bdef95a95a9cb272f4113b3fe1ca89fedae",
"args": [
"0xc7dfe38f4bb44d51e72b967887a89b438b8daf162529b917bcd7b75e7d469505"
]
}
}
],
"chainData": {
"chainName": "Polygon",
"chainType": "evm",
"rpc": "https://polygon-rpc.com",
"networkName": "Polygon",
"chainId": 137,
"nativeCurrency": {
"name": "Polygon",
"symbol": "MATIC",
"decimals": 18,
"icon": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg"
},
"swapAmountForGas": "2000000",
"chainIconURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg",
"blockExplorerUrls": [
"https://polygonscan.com/"
],
"chainNativeContracts": {
"wrappedNativeToken": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
"ensRegistry": "",
"multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
"usdcToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
},
"axelarContracts": {
"gateway": "0x6f015F16De9fC8791b234eF68D486d2bF203FBA8",
"forecallable": "0x2d5d7d31F671F86C782533cc367F14109a082712"
},
"squidContracts": {
"squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"defaultCrosschainToken": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
"squidMulticall": "0x4fd39C9E151e50580779bd04B1f7eCc310079fd3",
"squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
},
"estimatedRouteDuration": 360,
"estimatedExpressRouteDuration": 20
},
"transactionUrl": "https://polygonscan.com/tx/0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9"
}
}
}
/getprice
Get the swap quotation for the given token pairs.
GET
https://api.expand.network/bridge/getprice
Query Parameters
Remote procedural call URL.
Destination token symbol.
Sample Request
Copy https://api.expand.network/bridge/getprice?bridgeId=200&srcTokenSymbol=WBTC&dstTokenSymbol=BNB&srcChainId=1&amountIn=100000&dstChainId=56
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"srcChainId": "1",
"dstChainId": "56",
"srcTokenSymbol": "WBTC",
"dstTokenSymbol": "BNB",
"amountIn": "100000",
"amountOut": "137408267249377874"
}
}
/chains
Get the list of chains supported by Squid Router, on expand.network.
GET
https://api.expand.network/bridge/chains
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/bridge/chains?bridgeId=200
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
{
"chainName": "Ethereum",
"chainId": "1"
},
{
"chainName": "Arbitrum",
"chainId": "42161"
},
{
"chainName": "optimism",
"chainId": "10"
},
{
"chainName": "linea",
"chainId": "59144"
},
{
"chainName": "base",
"chainId": "8453"
},
{
"chainName": "Avalanche",
"chainId": "43114"
},
{
"chainName": "Polygon",
"chainId": "137"
},
{
"chainName": "binance",
"chainId": "56"
},
{
"chainName": "Fantom",
"chainId": "250"
},
{
"chainName": "Moonbeam",
"chainId": "1284"
},
{
"chainName": "mantle",
"chainId": "5000"
},
{
"chainName": "celo",
"chainId": "42220"
},
{
"chainName": "kava",
"chainId": "2222"
},
{
"chainName": "filecoin",
"chainId": "314"
},
{
"chainName": "osmosis",
"chainId": "osmosis-1"
},
{
"chainName": "cosmoshub",
"chainId": "cosmoshub-4"
},
{
"chainName": "kujira",
"chainId": "kaiyo-1"
},
{
"chainName": "neutron",
"chainId": "neutron-1"
},
{
"chainName": "stargaze",
"chainId": "stargaze-1"
},
{
"chainName": "axelarnet",
"chainId": "axelar-dojo-1"
},
{
"chainName": "umee",
"chainId": "umee-1"
},
{
"chainName": "persistence",
"chainId": "core-1"
},
{
"chainName": "sommelier",
"chainId": "sommelier-3"
},
{
"chainName": "stride",
"chainId": "stride-1"
},
{
"chainName": "crescent",
"chainId": "crescent-1"
},
{
"chainName": "juno",
"chainId": "juno-1"
},
{
"chainName": "carbon",
"chainId": "carbon-1"
},
{
"chainName": "regen",
"chainId": "regen-1"
},
{
"chainName": "agoric",
"chainId": "agoric-3"
},
{
"chainName": "chihuahua",
"chainId": "chihuahua-1"
},
{
"chainName": "akash",
"chainId": "akashnet-2"
},
{
"chainName": "comdex",
"chainId": "comdex-1"
},
{
"chainName": "archway",
"chainId": "archway-1"
},
{
"chainName": "quicksilver",
"chainId": "quicksilver-2"
},
{
"chainName": "omniflixhub",
"chainId": "omniflixhub-1"
},
{
"chainName": "migaloo",
"chainId": "migaloo-1"
},
{
"chainName": "mars",
"chainId": "mars-1"
},
{
"chainName": "terra",
"chainId": "columbus-5"
},
{
"chainName": "assetmantle",
"chainId": "mantle-1"
},
{
"chainName": "gravitybridge",
"chainId": "gravity-bridge-3"
},
{
"chainName": "bitcanna",
"chainId": "bitcanna-1"
},
{
"chainName": "bitsong",
"chainId": "bitsong-2b"
},
{
"chainName": "cheqd",
"chainId": "cheqd-mainnet-1"
},
{
"chainName": "decentr",
"chainId": "mainnet-3"
},
{
"chainName": "desmos",
"chainId": "desmos-mainnet"
},
{
"chainName": "irisnet",
"chainId": "irishub-1"
},
{
"chainName": "impacthub",
"chainId": "ixo-5"
},
{
"chainName": "jackal",
"chainId": "jackal-1"
},
{
"chainName": "likecoin",
"chainId": "likecoin-mainnet-2"
},
{
"chainName": "lumnetwork",
"chainId": "lum-network-1"
},
{
"chainName": "sentinel",
"chainId": "sentinelhub-2"
}
]
}
/tokens
Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.
GET
https://api.expand.network/bridge/tokens
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/bridge/tokens?bridgeId=200&chain=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
{
"tokenSymbol": "USDC",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
{
"tokenSymbol": "ETH",
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
},
{
"tokenSymbol": "USDT",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
},
{
"tokenSymbol": "WETH",
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
{
"tokenSymbol": "WBTC",
"address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
},
{
"tokenSymbol": "AXL",
"address": "0x467719aD09025FcC6cF6F8311755809d45a5E5f3"
},
{
"tokenSymbol": "DAI",
"address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
},
{
"tokenSymbol": "WMAI",
"address": "0x05770332D4410b6D7f07Fd497E4c00F8F7bFb74A"
},
{
"tokenSymbol": "FRAX",
"address": "0x853d955aCEf822Db058eb8505911ED77F175b99e"
},
{
"tokenSymbol": "CRV",
"address": "0xD533a949740bb3306d119CC777fa900bA034cd52"
},
{
"tokenSymbol": "UNI",
"address": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
},
{
"tokenSymbol": "MKR",
"address": "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2"
},
{
"tokenSymbol": "ARB",
"address": "0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1"
},
{
"tokenSymbol": "LINK",
"address": "0x514910771AF9Ca656af840dff83E8264EcF986CA"
},
{
"tokenSymbol": "KNC",
"address": "0xdeFA4e8a7bcBA345F687a2f1456F5Edd9CE97202"
},
{
"tokenSymbol": "YFI",
"address": "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e"
},
{
"tokenSymbol": "REN",
"address": "0x408e41876cCCDC0F92210600ef50372656052a38"
},
{
"tokenSymbol": "FIDU",
"address": "0x6a445E9F40e0b97c92d0b8a3366cEF1d67F700BF"
},
{
"tokenSymbol": "GRT",
"address": "0xc944E90C64B2c07662A292be6244BDf05Cda44a7"
},
{
"tokenSymbol": "SNX",
"address": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"
},
{
"tokenSymbol": "MANA",
"address": "0x0F5D2fB29fb7d3CFeE444a200298f468908cC942"
},
{
"tokenSymbol": "ANT",
"address": "0xa117000000f279D81A1D3cc75430fAA017FA5A2e"
},
{
"tokenSymbol": "MLN",
"address": "0xec67005c4E498Ec7f55E092bd1d35cbC47C91892"
},
{
"tokenSymbol": "MATIC",
"address": "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0"
},
{
"tokenSymbol": "1INCH",
"address": "0x111111111117dC0aa78b770fA6A738034120C302"
},
{
"tokenSymbol": "BLZ",
"address": "0x5732046A883704404F284Ce41FfADd5b007FD668"
},
{
"tokenSymbol": "RAI",
"address": "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919"
},
{
"tokenSymbol": "ERN",
"address": "0xBBc2AE13b23d715c30720F079fcd9B4a74093505"
},
{
"tokenSymbol": "COTI",
"address": "0xDDB3422497E61e13543BeA06989C0789117555c5"
},
{
"tokenSymbol": "SUPER",
"address": "0xe53EC727dbDEB9E2d5456c3be40cFF031AB40A55"
},
{
"tokenSymbol": "DIA",
"address": "0x84cA8bc7997272c7CfB4D0Cd3D55cd942B3c9419"
},
{
"tokenSymbol": "RBC",
"address": "0xA4EED63db85311E22dF4473f87CcfC3DaDCFA3E3"
},
{
"tokenSymbol": "ENJ",
"address": "0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c"
},
{
"tokenSymbol": "TOKE",
"address": "0x2e9d63788249371f1DFC918a52f8d799F4a38C94"
},
{
"tokenSymbol": "GLM",
"address": "0x7DD9c5Cba05E151C895FDe1CF355C9A1D5DA6429"
},
{
"tokenSymbol": "HIGH",
"address": "0x71Ab77b7dbB4fa7e017BC15090b2163221420282"
},
{
"tokenSymbol": "INV",
"address": "0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68"
},
{
"tokenSymbol": "QNT",
"address": "0x4a220E6096B25EADb88358cb44068A3248254675"
},
{
"tokenSymbol": "RLY",
"address": "0xf1f955016EcbCd7321c7266BccFB96c68ea5E49b"
},
{
"tokenSymbol": "REQ",
"address": "0x8f8221aFbB33998d8584A2B05749bA73c37a938a"
},
{
"tokenSymbol": "RBN",
"address": "0x6123B0049F904d730dB3C36a31167D9d4121fA6B"
},
{
"tokenSymbol": "FOX",
"address": "0xc770EEfAd204B5180dF6a14Ee197D99d808ee52d"
},
{
"tokenSymbol": "SHIB",
"address": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"
},
{
"tokenSymbol": "SUSHI",
"address": "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2"
},
{
"tokenSymbol": "FXS",
"address": "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0"
},
{
"tokenSymbol": "OCEAN",
"address": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48"
},
{
"tokenSymbol": "PAXG",
"address": "0x45804880De22913dAFE09f4980848ECE6EcbAf78"
},
{
"tokenSymbol": "SAND",
"address": "0x3845badAde8e6dFF049820680d1F14bD3903a5d0"
},
{
"tokenSymbol": "AUDIO",
"address": "0x18aAA7115705e8be94bfFEBDE57Af9BFc265B998"
},
{
"tokenSymbol": "ELON",
"address": "0x761D38e5ddf6ccf6Cf7c55759d5210750B5D60F3"
},
{
"tokenSymbol": "MC",
"address": "0x949D48EcA67b17269629c7194F4b727d4Ef9E5d6"
},
{
"tokenSymbol": "CUBE",
"address": "0xDf801468a808a32656D2eD2D2d80B72A129739f4"
},
{
"tokenSymbol": "ADX",
"address": "0xADE00C28244d5CE17D72E40330B1c318cD12B7c3"
},
{
"tokenSymbol": "DEXT",
"address": "0xfB7B4564402E5500dB5bB6d63Ae671302777C75a"
},
{
"tokenSymbol": "DPI",
"address": "0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b"
},
{
"tokenSymbol": "METIS",
"address": "0x9E32b13ce7f2E80A01932B42553652E053D6ed8e"
},
{
"tokenSymbol": "MONA",
"address": "0x275f5Ad03be0Fa221B4C6649B8AeE09a42D9412A"
},
{
"tokenSymbol": "MUSE",
"address": "0xB6Ca7399B4F9CA56FC27cBfF44F4d2e4Eef1fc81"
},
{
"tokenSymbol": "ROOK",
"address": "0xfA5047c9c78B8877af97BDcb85Db743fD7313d4a"
},
{
"tokenSymbol": "SYLO",
"address": "0xf293d23BF2CDc05411Ca0edDD588eb1977e8dcd4"
},
{
"tokenSymbol": "TVK",
"address": "0xd084B83C305daFD76AE3E1b4E1F1fe2eCcCb3988"
},
{
"tokenSymbol": "WOO",
"address": "0x4691937a7508860F876c9c0a2a617E7d9E945D4B"
},
{
"tokenSymbol": "XCN",
"address": "0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18"
},
{
"tokenSymbol": "BUSD",
"address": "0x4Fabb145d64652a948d72533023f6E7A623C7C53"
},
{
"tokenSymbol": "AAVE",
"address": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9"
},
{
"tokenSymbol": "ALCX",
"address": "0xdBdb4d16EdA451D0503b854CF79D55697F90c8DF"
},
{
"tokenSymbol": "ALPHA",
"address": "0xa1faa113cbE53436Df28FF0aEe54275c13B40975"
},
{
"tokenSymbol": "AMP",
"address": "0xfF20817765cB7f73d4bde2e66e067E58D11095C2"
},
{
"tokenSymbol": "APW",
"address": "0x4104b135DBC9609Fc1A9490E61369036497660c8"
},
{
"tokenSymbol": "ASTRAFER",
"address": "0x97Bbbc5d96875fB78D2F14b7FF8d7a3a74106F17"
},
{
"tokenSymbol": "AUCTION",
"address": "0xA9B1Eb5908CfC3cdf91F9B8B3a74108598009096"
},
{
"tokenSymbol": "BAND",
"address": "0xBA11D00c5f74255f56a5E366F4F77f5A186d7f55"
},
{
"tokenSymbol": "BANK",
"address": "0x24A6A37576377F63f194Caa5F518a60f45b42921"
},
{
"tokenSymbol": "BAO",
"address": "0x374CB8C27130E2c9E04F44303f3c8351B9De61C1"
},
{
"tokenSymbol": "BDI",
"address": "0x0309c98B1bffA350bcb3F9fB9780970CA32a5060"
},
{
"tokenSymbol": "BICO",
"address": "0xF17e65822b568B3903685a7c9F496CF7656Cc6C2"
},
{
"tokenSymbol": "BIFI",
"address": "0x2791BfD60D232150Bff86b39B7146c0eaAA2BA81"
},
{
"tokenSymbol": "BIT",
"address": "0x1A4b46696b2bB4794Eb3D4c26f1c55F9170fa4C5"
},
{
"tokenSymbol": "BLOCKS",
"address": "0x8a6D4C8735371EBAF8874fBd518b56Edd66024eB"
},
{
"tokenSymbol": "BMI",
"address": "0x725C263e32c72dDC3A19bEa12C5a0479a81eE688"
},
{
"tokenSymbol": "BPT",
"address": "0x0eC9F76202a7061eB9b3a7D6B59D36215A7e37da"
},
{
"tokenSymbol": "C98",
"address": "0xAE12C5930881c53715B369ceC7606B70d8EB229f"
},
{
"tokenSymbol": "CIG",
"address": "0xCB56b52316041A62B6b5D0583DcE4A8AE7a3C629"
},
{
"tokenSymbol": "COMP",
"address": "0xc00e94Cb662C3520282E6f5717214004A7f26888"
},
{
"tokenSymbol": "CREAM",
"address": "0x2ba592F78dB6436527729929AAf6c908497cB200"
},
{
"tokenSymbol": "CVX",
"address": "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B"
},
{
"tokenSymbol": "DAOX",
"address": "0xE00639A1f59B52773b7d39d9F9beF07F6248dbAe"
},
{
"tokenSymbol": "DELTA",
"address": "0x9EA3b5b4EC044b70375236A281986106457b20EF"
},
{
"tokenSymbol": "DOG",
"address": "0xBAac2B4491727D78D2b78815144570b9f2Fe8899"
},
{
"tokenSymbol": "DOUGH",
"address": "0xad32A8e6220741182940c5aBF610bDE99E737b2D"
},
{
"tokenSymbol": "DYDX",
"address": "0x92D6C1e31e14520e676a687F0a93788B716BEff5"
},
{
"tokenSymbol": "EDEN",
"address": "0x1559FA1b8F28238FD5D76D9f434ad86FD20D1559"
},
{
"tokenSymbol": "ENS",
"address": "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72"
},
{
"tokenSymbol": "FLOAT",
"address": "0xb05097849BCA421A3f51B249BA6CCa4aF4b97cb9"
},
{
"tokenSymbol": "FNC",
"address": "0x7f280daC515121DcdA3EaC69eB4C13a52392CACE"
},
{
"tokenSymbol": "FODL",
"address": "0x4C2e59D098DF7b6cBaE0848d66DE2f8A4889b9C3"
},
{
"tokenSymbol": "FOLD",
"address": "0xd084944d3c05CD115C09d072B9F44bA3E0E45921"
},
{
"tokenSymbol": "FTM",
"address": "0x4E15361FD6b4BB609Fa63C81A2be19d873717870"
},
{
"tokenSymbol": "FTT",
"address": "0x50D1c9771902476076eCFc8B2A83Ad6b9355a4c9"
},
{
"tokenSymbol": "GET",
"address": "0x8a854288a5976036A725879164Ca3e91d30c6A1B"
},
{
"tokenSymbol": "GODS",
"address": "0xccC8cb5229B0ac8069C51fd58367Fd1e622aFD97"
},
{
"tokenSymbol": "GOG",
"address": "0x9AB7bb7FdC60f4357ECFef43986818A2A3569c62"
},
{
"tokenSymbol": "HOP",
"address": "0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC"
},
{
"tokenSymbol": "ICE",
"address": "0xf16e81dce15B08F326220742020379B855B87DF9"
},
{
"tokenSymbol": "ICHI",
"address": "0x903bEF1736CDdf2A537176cf3C64579C3867A881"
},
{
"tokenSymbol": "ILSI",
"address": "0x0acC0FEE1D86D2cD5AF372615bf59b298D50cd69"
},
{
"tokenSymbol": "ILV",
"address": "0x767FE9EDC9E0dF98E07454847909b5E959D7ca0E"
},
{
"tokenSymbol": "IMX",
"address": "0xF57e7e7C23978C3cAEC3C3548E3D615c346e79fF"
},
{
"tokenSymbol": "INJ",
"address": "0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30"
},
{
"tokenSymbol": "IQ",
"address": "0x579CEa1889991f68aCc35Ff5c3dd0621fF29b0C9"
},
{
"tokenSymbol": "JPEG",
"address": "0xE80C0cd204D654CEbe8dd64A4857cAb6Be8345a3"
},
{
"tokenSymbol": "KP3R",
"address": "0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44"
},
{
"tokenSymbol": "LDO",
"address": "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32"
},
{
"tokenSymbol": "LYRA",
"address": "0x01BA67AAC7f75f647D94220Cc98FB30FCc5105Bf"
},
{
"tokenSymbol": "MAID",
"address": "0x4Af698B479D0098229DC715655c667Ceb6cd8433"
},
{
"tokenSymbol": "MARS4",
"address": "0x16CDA4028e9E872a38AcB903176719299beAed87"
},
{
"tokenSymbol": "MASQ",
"address": "0x06F3C323f0238c72BF35011071f2b5B7F43A054c"
},
{
"tokenSymbol": "MIM",
"address": "0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3"
},
{
"tokenSymbol": "MULTI",
"address": "0x65Ef703f5594D2573eb71Aaf55BC0CB548492df4"
},
{
"tokenSymbol": "NFD",
"address": "0xDFDb7f72c1F195C5951a234e8DB9806EB0635346"
},
{
"tokenSymbol": "NFTL",
"address": "0x3c8D2FCE49906e11e71cB16Fa0fFeB2B16C29638"
},
{
"tokenSymbol": "OOKI",
"address": "0x0De05F6447ab4D22c8827449EE4bA2D5C288379B"
},
{
"tokenSymbol": "PENDLE",
"address": "0x808507121B80c02388fAd14726482e061B8da827"
},
{
"tokenSymbol": "PICKLE",
"address": "0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5"
},
{
"tokenSymbol": "POND",
"address": "0x57B946008913B82E4dF85f501cbAeD910e58D26C"
},
{
"tokenSymbol": "PREMIA",
"address": "0x6399C842dD2bE3dE30BF99Bc7D1bBF6Fa3650E70"
},
{
"tokenSymbol": "RADAR",
"address": "0x44709a920fCcF795fbC57BAA433cc3dd53C44DbE"
},
{
"tokenSymbol": "RAIL",
"address": "0xe76C6c83af64e4C60245D8C7dE953DF673a7A33D"
},
{
"tokenSymbol": "RLC",
"address": "0x607F4C5BB672230e8672085532f7e901544a7375"
},
{
"tokenSymbol": "RUNE",
"address": "0x3155BA85D5F96b2d030a4966AF206230e46849cb"
},
{
"tokenSymbol": "SAK3",
"address": "0xe9F84dE264E91529aF07Fa2C746e934397810334"
},
{
"tokenSymbol": "SOS",
"address": "0x3b484b82567a09e2588A13D54D032153f0c0aEe0"
},
{
"tokenSymbol": "SPELL",
"address": "0x090185f2135308BaD17527004364eBcC2D37e5F6"
},
{
"tokenSymbol": "SPS",
"address": "0x00813E3421E1367353BfE7615c7f7f133C89df74"
},
{
"tokenSymbol": "SRM",
"address": "0x476c5E26a75bd202a9683ffD34359C0CC15be0fF"
},
{
"tokenSymbol": "SYN",
"address": "0x0f2D719407FdBeFF09D87557AbB7232601FD9F29"
},
{
"tokenSymbol": "TGT",
"address": "0x108a850856Db3f85d0269a2693D896B394C80325"
},
{
"tokenSymbol": "THOR",
"address": "0xa5f2211B9b8170F694421f2046281775E8468044"
},
{
"tokenSymbol": "TLOS",
"address": "0x7825e833D495F3d1c28872415a4aee339D26AC88"
},
{
"tokenSymbol": "TRU",
"address": "0x4C19596f5aAfF459fA38B0f7eD92F11AE6543784"
},
{
"tokenSymbol": "TUSD",
"address": "0x0000000000085d4780B73119b644AE5ecd22b376"
},
{
"tokenSymbol": "UMA",
"address": "0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828"
},
{
"tokenSymbol": "VEGA",
"address": "0xcB84d72e61e383767C4DFEb2d8ff7f4FB89abc6e"
},
{
"tokenSymbol": "WNCG",
"address": "0xf203Ca1769ca8e9e8FE1DA9D147DB68B6c919817"
},
{
"tokenSymbol": "XFT",
"address": "0xABe580E7ee158dA464b51ee1a83Ac0289622e6be"
},
{
"tokenSymbol": "XRUNE",
"address": "0x69fa0feE221AD11012BAb0FdB45d444D3D2Ce71c"
},
{
"tokenSymbol": "YAM",
"address": "0x0AaCfbeC6a24756c20D41914F2caba817C0d8521"
},
{
"tokenSymbol": "YEL",
"address": "0x7815bDa662050D84718B988735218CFfd32f75ea"
},
{
"tokenSymbol": "YGG",
"address": "0x25f8087EAD173b73D6e8B84329989A8eEA16CF73"
},
{
"tokenSymbol": "XEN",
"address": "0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8"
},
{
"tokenSymbol": "SILO",
"address": "0x6f80310ca7f2c654691d1383149fa1a57d8ab1f8"
},
{
"tokenSymbol": "WLD",
"address": "0x163f8c2467924be0ae7b5347228cabf260318753"
},
{
"tokenSymbol": "BABYDOGE",
"address": "0xAC57De9C1A09FeC648E93EB98875B212DB0d460B"
},
{
"tokenSymbol": "OATH",
"address": "0xd20523b39fAF1D6e9023a4D6085f87B7b0DE7926"
},
{
"tokenSymbol": "GDX",
"address": "0x89901994b5Ed81cbbcBC4E5A7e0cC4e7F58e5458"
},
{
"tokenSymbol": "SWAP",
"address": "0xcc4304a31d09258b0029ea7fe63d032f52e44efe"
},
{
"tokenSymbol": "POLS",
"address": "0x83e6f1E41cdd28eAcEB20Cb649155049Fac3D5Aa"
},
{
"tokenSymbol": "ORBS",
"address": "0xff56Cc6b1E6dEd347aA0B7676C85AB0B3D08B0FA"
},
{
"tokenSymbol": "LUSD",
"address": "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
},
{
"tokenSymbol": "CBETH",
"address": "0xbe9895146f7af43049ca1c1ae358b0541ea49704"
},
{
"tokenSymbol": "RETH",
"address": "0xae78736Cd615f374D3085123A210448E74Fc6393"
},
{
"tokenSymbol": "REPV2",
"address": "0x221657776846890989a759BA2973e427DfF5C9bB"
},
{
"tokenSymbol": "KNC_E",
"address": "0x18fA72e0EE4C580a129b0CE5bD0694d716C7443E"
},
{
"tokenSymbol": "SUSD",
"address": "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51"
},
{
"tokenSymbol": "PWING",
"address": "0xDb0f18081b505A7DE20B18ac41856BCB4Ba86A1a"
},
{
"tokenSymbol": "STKATOM",
"address": "0x44017598f2AF1bD733F9D87b5017b4E7c1B28DDE"
},
{
"tokenSymbol": "UWU",
"address": "0x55C08ca52497e2f1534B59E2917BF524D4765257"
},
{
"tokenSymbol": "XSUSHI",
"address": "0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272"
},
{
"tokenSymbol": "YVBOOST",
"address": "0x9d409a0A012CFbA9B15F6D4B36Ac57A46966Ab9a"
},
{
"tokenSymbol": "AXLFIL",
"address": "0x6A7b717aE5Ed65F85BA25403D5063D368239828e"
},
{
"tokenSymbol": "STERN",
"address": "0xeA0cFDC2667bE69ED724c8069d358502fF41cA18"
},
{
"tokenSymbol": "AXLDEUS",
"address": "0x69e557b926F4eEf6d9400e36DBBFEb9600Af2880"
},
{
"tokenSymbol": "AXLLQDR",
"address": "0x98504C8afa7c74c87a0641a7bb0F7968d4e8F471"
},
{
"tokenSymbol": "WSTETH",
"address": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0"
},
{
"tokenSymbol": "SFRXETH",
"address": "0xac3E018457B222d93114458476f3E3416Abbe38F"
}
]
}
/getroute
Get the route details as to how the tokens will be bridged, token amount, etc.
GET
https://api.expand.network/bridge/getroute
Query Parameters
Remote procedural call URL.
Destination token symbol.
Sample Request
Copy https://api.expand.network/bridge/getroute?bridgeId=200&dstChainId=137&srcTokenSymbol=ETH&dstTokenSymbol=USDC&amountIn=100000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"fromAmount": "100000000000",
"sendAmount": "235",
"toAmount": "234",
"toAmountMin": "232",
"fromAmountUSD": "0.0002",
"route": {
"fromChain": [
{
"type": "SWAP",
"dex": {
"chainName": "Ethereum",
"dexName": "UniswapV2",
"swapRouter": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"factory": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"isCrypto": true
},
"target": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
],
"swapType": "crypto",
"squidCallType": 2,
"fromToken": {
"chainId": 1,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"coingeckoId": "ethereum",
"commonKey": "weth-wei"
},
"toToken": {
"name": "USDCoin",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"decimals": 6,
"chainId": 1,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
"coingeckoId": "usd-coin",
"commonKey": "uusdc"
},
"fromAmount": "100000000000",
"toAmount": "235",
"toAmountMin": "233",
"exchangeRate": "2350.0",
"priceImpact": "-2.1739130434782608",
"isFrom": true,
"dynamicSlippage": 0.8016032064128265
}
],
"toChain": [
{
"type": "SWAP",
"dex": {
"chainName": "Polygon",
"dexName": "Quickswap_v3",
"swapRouter": "0xf5b509bb0909a69b1c207e495f687a596c168e12",
"deployer": "0x2D98E2FA9da15aa6dC9581AB097Ced7af697CB92",
"quoter": "0xa15F0D7377B2A0C0c10db057f641beD21028FC89",
"isStable": true,
"isCrypto": true
},
"target": "0xf5b509bb0909a69b1c207e495f687a596c168e12",
"path": [
"0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
],
"poolFees": [
100
],
"swapType": "stable",
"squidCallType": 1,
"fromToken": {
"chainId": 137,
"address": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
"name": "axlUSDC",
"symbol": "axlUSDC",
"decimals": 6,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
"coingeckoId": "axlusdc",
"commonKey": "uusdc"
},
"toToken": {
"name": "USD Coin (PoS)",
"address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"symbol": "USDC.e",
"decimals": 6,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/usdc.svg",
"coingeckoId": "usd-coin",
"commonKey": "polygon-uusdc"
},
"fromAmount": "235",
"toAmount": "234",
"toAmountMin": "232",
"exchangeRate": "0.995744680851063829",
"priceImpact": "-4.1005802707930367",
"isFrom": false,
"dynamicSlippage": 1
}
]
},
"feeCosts": [
{
"name": "Gas Receiver Fee",
"description": "Estimated Gas Receiver fee",
"percentage": "0",
"token": {
"chainId": 1,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"coingeckoId": "ethereum",
"commonKey": "weth-wei"
},
"amount": "1149399910508601",
"amountUSD": "2.7063"
},
{
"name": "Express Fee",
"description": "Estimated Express fee",
"percentage": "0",
"token": {
"chainId": 1,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"coingeckoId": "ethereum",
"commonKey": "weth-wei"
},
"amount": "242830575072000",
"amountUSD": "0.5717"
}
],
"gasCosts": [
{
"type": "executeCall",
"token": {
"chainId": 1,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"coingeckoId": "ethereum",
"commonKey": "weth-wei"
},
"amount": "16292229866142000",
"amountUSD": "38.3610",
"gasPrice": "35029663377",
"maxFeePerGas": "71482808284",
"maxPriorityFeePerGas": "1500000000",
"estimate": "446000",
"limit": "446000"
}
],
"estimatedRouteDuration": 20,
"isExpressSupported": true,
"exchangeRate": "2340.0",
"aggregatePriceImpact": "-6.36",
"toAmountUSD": "0.0002"
}
}
/swap
Swap assets across multiple chains.
POST
https://api.expand.network/bridge/swap
Request Body
Remote procedural call URL.
Destination Token Symbol.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Address of the recipient of the token.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"bridgeId": "200",
"srcChainId": "1",
"dstChainId": "137",
"srcTokenSymbol": "WETH",
"dstTokenSymbol": "USDC",
"amountIn": "100000000000000",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "920000",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"value": "83660648338674",
"gas": "920000",
"data": "0x846a1bc6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000580000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d66600000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000000000000000265460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a3078636531364636393337353532306162303133373763653742383866354241384334384638443636360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f9c2b5746c946ef883ab2660bbbb1f10a5bdeab40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f9c2b5746c946ef883ab2660bbbb1f10a5bdeab4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000104a8c9ed67000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000008000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000018b4beef6870000000000000000000000000000000000000000000000000000000000026a3b00000000000000000000000000000000000000000000000000000000000264100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000005"
}
}
Sample Request
With gasPriority:
Copy {
"bridgeId": "200",
"srcChainId": "1",
"dstChainId": "137",
"srcTokenSymbol": "WETH",
"dstTokenSymbol": "USDC",
"amountIn": "1000000000000",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "920000",
"gasPriority": "medium",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"value": "121475874191084",
"gas": "339229",
"data": "0x846a1bc6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005800000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d66600000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000000000000000000000000000000000000000036e860000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000455534443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786365313646363933373535323061623031333737636537423838663542413843343846384436363600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b30000000000000000000000002a426b3bb4fa87488387545f15d01d81352732f90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000002a426b3bb4fa87488387545f15d01d81352732f9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000003840651cb35000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed000000000000000000000000fba3b7bb043415035220b1c44fb47564346393920000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003759f0000000000000000000000000000000000000000000000000000000000036c2700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006fb447ae94f5180254d436a693907a1f57696900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000750e4c4984a9e0f12978ea6742bc1c5d248f40ed0000000000000000000000000000000000000000000000000000000000000015"
}
}
Sample Request
With slippage:
Copy {
"bridgeId": "200",
"srcChainId": "1",
"dstChainId": "137",
"srcTokenSymbol": "WETH",
"dstTokenSymbol": "MATIC",
"amountIn": "1000000000000",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "920000",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"slippage": "3"
}
Sample Response
With slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0x4f193853Cc053e08405b6aBd003AEEEF3DD08cb8",
"value": "93218968720503",
"gas": "920000",
"data": "0x846a1bc6000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d6000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004c00000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000005a00000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000e8d4a5100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000010438ed1739000000000000000000000000000000000000000000000000000000e8d4a5100000000000000000000000000000000000000000000000000000000000000008fe00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004f193853cc053e08405b6abd003aeeef3dd08cb80000000000000000000000000000000000000000000000000000018d54f61af10000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d6000000000000000000000000254d06f33bdc5b8ee05b2ea472107e300226659a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000561555344430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6c79676f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30783466313933383533436330353365303834303562366142643030334145454546334444303863623800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000400000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000002c852e740b62308c46dd29b982fbb650d063bd0700000000000000000000000000000000000000000000000000000000000000010000000000000000000000002c852e740b62308c46dd29b982fbb650d063bd07000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000002c852e740b62308c46dd29b982fbb650d063bd070000000000000000000000000000000000000000000000000000000000000001"
}
}
Stargate /getliquidity
Get the balance of a particular token pair of an account.
GET
https://api.expand.network/bridge/getliquidity
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/bridge/getliquidity?bridgeId=100&poolAddress=0xdf0770dF86a8034b3EFEf0A1Bb3c889B8332FF56&srcChainId=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"poolId": "1",
"poolName": "USD Coin-LP",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"totalLiquidity": "44319250983738"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/bridge/gettransaction
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/bridge/gettransaction?bridgeId=100&network=mainnet&srcChainId=137&transactionHash=0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"srcUaAddress": "0xffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5",
"dstUaAddress": "0x3668c325501322ceb5a624e95b9e16a019cdebe8",
"updated": 1692598184,
"created": 1692596899,
"srcChainId": 109,
"dstChainId": 102,
"dstTxHash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
"dstTxError": null,
"srcTxHash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
"srcBlockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
"srcBlockNumber": "46565902",
"srcUaNonce": 106257,
"status": "DELIVERED",
"data": {
"srcTx": {
"blockHash": "0xe39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe02",
"blockNumber": 46565902,
"from": "0x23713B8033d058bF06AeEF1ac31f598FD6E63670",
"gas": 302431,
"gasPrice": "80611547567",
"maxFeePerGas": "100467218838",
"maxPriorityFeePerGas": "30000000000",
"hash": "0xe8a0ebe3d5c36879c5a951c9faf65608b8a9c8b2e7e3c8471e25f5767a390b28",
"input": "0xcfc93274000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006600000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e6367000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000000000000000",
"nonce": 11,
"to": "0xFFdF4Fe05899C4BdB1676e958FA9F21c19ECB9D5",
"transactionIndex": 32,
"value": "2002624217015228761",
"type": 2,
"accessList": [],
"chainId": "0x89",
"v": "0x0",
"r": "0x67567a964d1cc84ba5bb1e1f5450bdb6d3e6300036c2d187b976682652a9ee27",
"s": "0x3536dda5e452136cf26158fa98b9a63c7e6970b9ecfb646035366b217f417f11"
},
"dstTx": {
"blockHash": "0x0a0898e738723fee44fdbf29932b7d5543ca7835a52790c0a73e89f002e47992",
"blockNumber": 31038974,
"from": "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
"gas": 1743140,
"gasPrice": "3600000000",
"hash": "0xefd030f66e9c0aaf9bab4006e5bc2c86fb7e3091f6fb4d4b14d96dd1de25927f",
"input": "0x252f7b01000000000000000000000000000000000000000000000000000000000000006d0000000000000000000000003668c325501322ceb5a624e95b9e16a019cdebe80000000000000000000000000000000000000000000000000000000000055730e39eaa0b9001287d57e7c75b89c2012736f81616b94ac88020d873225249fe026162a55473874a43b353c1b32efb170ff5fdd27e7a4febf9d6382fd50390dea000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000e8000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000093f891a04b37d5c424fc5e8ccb7c4b07169f5a73a3e3fbf9c513f93a4251184fba94a3e9a07787079f5830dcc472de67633c3391040053598530290d166d43d2861caf999fa0dfeb3ffddf7ebdd484fbb5f6cda490a79c175c387320766857fa28aed71e20ce8080808080a040889b98d35fa12c1dadd68c3f8cf8156188d96ca1ce9fcba6b15171be8ace3e8080808080808080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093f891a00a797c7f5429e959b5e69b473878199bb2c2483b69860089498da0f8673bdd03a06aa5d1ef923b055973445e2f02fa6089652ae37946b4c6279ad204c0352d78b0a093b0cc513f3c7582bc7ea8ab699a171475abd986822df5693f4bba86cde76869a0ae5d734859d9245d7282cdbe822bdc067ab995bfe0a88d27be099b8a146dc97a80808080808080808080808080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b7ef90b7b20b90b7702f90b7301835c643ab901000000000000000000000000000000000000004000000040000010000180000000000400000440040000000010011200000000c400000000000000000000000000006000000000000000000008000000800000000000000000100100000020000000040000000000000000000000500000000000000000000081000010000000000100000000000000000010001000080000000000280000040000000000000080202000000000025000000004040000000200000000000000000000000000804000001042800008000001000000001000800001000000c00000108000000000001000800000000000000000800000200000000000000000000000000000100000f90a68f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5b8a00000000000000000000000000000000000000000000000001bcac01d71c999590000000000000000000000000000000000000000000000008a8c1252cc1222e00000000000000000000000000000000000000000000000a3d1497749a0ee00000000000000000000000000000000000000000000000000006ec152355a4889870000000000000000000000000000000000000000000000a3ed14376712b79959f89c94141a1fb33683c304da7c3fe6fc6a49b5c0c2dc42f884a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5a000000000000000000000000000000000000000000000000000000000000c6e5c80f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a0000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf62b8a000000000000000000000000000000000000000000000000017a0efb4592b99590000000000000000000000000000000000000000000000a3ed14376712b7995900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a3d57347b2b98c000000000000000000000000000000000000000000000000000017a0efb4592b9959f9013d940000000000000000000000000000000000001010f884a0e6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4a00000000000000000000000000000000000000000000000000000000000001010a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf62a00000000000000000000000004d73adb72bc3dd368966edd0f0b2148401a178e2b8a000000000000000000000000000000000000000000000000017a0efb4592b995900000000000000000000000000000000000000000000000017a0efb4592b9959000000000000000000000000000000000000000000000ea895645259761089a10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ea8ad05420dcf3c22faf8589475dc8e5f50c8221a82ca6af64af811caa983b65fe1a0df21c415b78ed2552cc9971249e32a053abce6087a0ae0fbf3f78db5174a3493a00000000000000000000000000000000000000000000000000ef47d84108d1959f8d9944d73adb72bc3dd368966edd0f0b2148401a178e2e1a0b0c632f55f1e1b3b2c3d82f41ee4716bb4c00f0f5d84cdafc141581bb8757a4fb8a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000000000000000f8d9949d88a2f4253b106a1f8e169485490f7230b4276ee1a0daebd99ba0f67a2d7a70d027ab177cad40ce040f65a9c4d98544a5463a172ebdb8a0000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500000000000000000000000000000000000000000000000008ac7230489e8000f901ba944d73adb72bc3dd368966edd0f0b2148401a178e2e1a0e9bded5f24a4168e4f3bf44e00298c993b22376aad8c58c7dda9718a54cbea82b901800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012a0000000000019f11006dffdf4fe05899c4bdb1676e958fa9f21c19ecb9d500663668c325501322ceb5a624e95b9e16a019cdebe8141a1fb33683c304da7c3fe6fc6a49b5c0c2dc42006d50616e6472613a20506978656c50726f776c657200000000000000000000000050616e6472613a20506978656c50726f776c657200000000000000000000000000000000000000000000000000000000000000000000000000000000000c6e5c23713b8033d058bf06aeef1ac31f598fd6e63670006668747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d57784262464733574a585654447172465550684d754c6d6548714b4e42426b7a5375765179796b37667466692f506978656c50726f776c65722d506f6c79676f6e2e6a736f6e00000000000000000000000000000000000000000000f8fb94ffdf4fe05899c4bdb1676e958fa9f21c19ecb9d5f842a0e11d2ca26838f15acb41450029a785bb3d6f909b7f622ebf9c45524ded76f411a00000000000000000000000000000000000000000000000000000000000019f11b8a0000000000000000000000000141a1fb33683c304da7c3fe6fc6a49b5c0c2dc4200000000000000000000000000000000000000000000000000000000000c6e5c000000000000000000000000000000000000000000000000000000000000006600000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e6367000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670f9013d940000000000000000000000000000000000001010f884a04dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63a00000000000000000000000000000000000000000000000000000000000001010a000000000000000000000000023713b8033d058bf06aeef1ac31f598fd6e63670a0000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020b8a0000000000000000000000000000000000000000000000000001b916a461c2c000000000000000000000000000000000000000000000000008ae2af4965357dd100000000000000000000000000000000000000000000033575fd8f56f4aa1dbd0000000000000000000000000000000000000000000000008ac71ddf1f1951d1000000000000000000000000000000000000000000000335761920c13ac649bd00000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"nonce": 6441901,
"to": "0xA27A2cA24DD28Ce14Fb5f5844b59851F03DCf182",
"transactionIndex": 6,
"value": "0",
"type": 0,
"v": "0x94",
"r": "0xc654980e14fa800c7913154d03fb92a64ad3ced94ebd0485d021dfbab29f7465",
"s": "0x475936be140c7e220b47949a01a14c6236379d4863fa6a35787dc782cd6fe04"
}
}
}
}
/swap
Swap assets across multiple chains.
POST
https://api.expand.network/bridge/swap
Request Body
Remote procedural call URL.
Amount of token to be swapped.
Address of the sender of the token.
Minimum amount accepted as the result of swap.
Maximum gas limit provided by the sender, for the transaction.
Address of the recipient of the token.
Symbol of token to be received as a result of swap.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"srcTokenSymbol": "USDC",
"amountIn": "10000",
"amountOutMin": "1000",
"gas": "10000",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"dstChainId": "137"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
"value": "5152267364791416",
"gas": "10000",
"data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority:
Copy {
"srcChainId": "1",
"bridgeId": "100",
"srcTokenSymbol": "USDC",
"amountIn": "10000",
"gas": "900000",
"gasPriority": "low",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"dstChainId": "137",
"amountOutMin": "100"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0x7612aE2a34E5A363E137De748801FB4c86499152",
"value": "7432363398213",
"gas": "385815",
"data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000277d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With slippage:
Copy {
"srcChainId": "1",
"srcTokenSymbol": "USDC",
"amountIn": "10000",
"amountOutMin": "100",
"gas": "10000",
"slippage": "4",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"dstChainId": "137"
}
Sample Response
With slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
"value": "408888691745393",
"gas": "10000",
"data": "0x9fbf10fc000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
/addliquidity
Loan your assets to the specified bridge.
POST
https://api.expand.network/bridge/addliquidity
Request Body
Remote procedural call URL.
Symbol of token to add liquidity.
Address of the sender of the token.
Amount of token to add liquidity.
Maximum gas limit provided by the sender, for the transaction.
Sample Request
Copy {
"srcChainId": "1",
"bridgeId": "100",
"srcTokenSymbol": "USDT",
"amountIn": "10000000",
"gas": "400000",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
"value": "0",
"gas": "400000",
"data": "0x87b21efc00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000989680000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
Sample Request
With gasPriority:
Copy {
"srcChainId": "1",
"bridgeId": "100",
"srcTokenSymbol": "USDC",
"amountIn": "10000",
"gas": "890000",
"gasPriority": "medium",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0x7612aE2a34E5A363E137De748801FB4c86499152",
"value": "0",
"gas": "133992",
"data": "0x87b21efc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
/removeliquidity
Remove user liquidity across multiple chains.
POST
https://api.expand.network/bridge/removeliquidity
Request Body
Remote procedural call URL.
Symbol of token to add liquidity.
Address of the sender of the token.
Amount of token to remove liquidity.
Maximum gas limit provided by the sender, for the transaction.
Sample Request
Copy {
"srcChainId": "1",
"bridgeId": "100",
"srcTokenSymbol": "USDT",
"amountOut": "10000000",
"gas": "400000",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
"value": "0",
"gas": "400000",
"data": "0xc4de93a500000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000989680000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
Sample Request
With gasPriority:
Copy {
"srcChainId": "1",
"bridgeId": "100",
"srcTokenSymbol": "USDC",
"amountOut": "10000",
"gas": "100000",
"gasPriority": "high",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xa67e9b68c41b0f26184d64c26e0b2b81466e5994",
"to": "0x7612aE2a34E5A363E137De748801FB4c86499152",
"value": "0",
"gas": "141639",
"data": "0xc4de93a500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
Uniswap V3 Available on Ethereum, Binance Smart Chain, Avalanche and Polygon.
/getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Different pool based on the fees. By default, it is selected as 3000.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=1300&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xdac17f958d2ee523a2206206994597c13d831ec7"
],
"amountsOut": [
"10000000000000000000",
"15671654661"
]
}
}
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Remote procedural call URL.
The token ID for uniswap V3 liquidity position.
Sample Request
Copy https://api.expand.network/dex/getuserliquidity?dexId=1300&tokenId=3238
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"liquidity": "0",
"tokenV3": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getpoolliquidity?dexId=1300&poolAddress=0xC12aF0C4AA39D3061c56cD3CB19f5e62dEeaeBdE
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "3560688052732075"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/gettokenliquidity?dexId=1300&poolAddress=0xC12aF0C4AA39D3061c56cD3CB19f5e62dEeaeBdE
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"wstETH": "1464524814018114",
"WETH": "586998274859845123"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquidityholders?dexId=1300&poolAddress=0xC2e9F25Be6257c210d7Adf0D4Cd6E3E881ba25f8
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "9032"
}
}
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
Remote procedural call URL.
The public address of the liquidity holder.
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
Sample Request
Copy https://api.expand.network/dex/getindividualposition?address=0xc36442b4a4522e871399cd717abdd847ab11fe88&poolAddresses=0x971194A53Dddc8Ccfa96d5DD1E42Cd9d15746827&dexId=1300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "21292566467643316140077",
"poolAddresses": {
"JBUCKETSWETH": {
"0x971194A53Dddc8Ccfa96d5DD1E42Cd9d15746827": "21292566467643316140077"
}
}
}
}
/getpoolindividualliquidity
Returns all user addresses, block numbers, and token position details for a specified pool address.
GET
https://historicallp.api.expand.network/dex/getpoolindividualliquidity
Query Parameters
Remote procedural call URL.
Index of the last page that user wants to query.
By default: startPage+9
Index of the start page that user wants to query.
By default: endPage-9
Sample Request
Copy https://historicallp.api.expand.network/dex/getpoolindividualliquidity?startPage=9&endPage=10&poolAddress=0xc63b0708e2f7e69cb8a1df0e1389a98c35a76d52&dexId=1300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "15",
"currentPages": "9-10",
"users": [
{
"userAddress": "0x2437db820de92d8dd64b524954fa0d160767c471",
"liquidityData": [
{
"blockNumber": "13277434",
"assets": {
"FRAX": "2001379910594238071141",
"USDC": "1810794482"
}
}
]
},
{
"userAddress": "0x2bf3473ff8a245f92137806fa69699d42ce35326",
"liquidityData": [
{
"blockNumber": "13275903",
"assets": {
"FRAX": "864998815672459340215598",
"USDC": "771907589299"
}
}
]
},
{
"userAddress": "0xb1baf9eb336f6795f3373be04b0a90215e08346d",
"liquidityData": [
{
"blockNumber": "13275699",
"assets": {
"FRAX": "261480042733082670908162",
"USDC": "246752791138"
}
}
]
},
{
"userAddress": "0x96adc904b512c6fe6e9ea64f4e0327c7920af981",
"liquidityData": [
{
"blockNumber": "13269412",
"assets": {
"FRAX": "50199999999122147415327",
"USDC": "45516565571"
}
}
]
},
{
"userAddress": "0xb1baf9eb336f6795f3373be04b0a90215e08346d",
"liquidityData": [
{
"blockNumber": "13268382",
"assets": {
"FRAX": "204831907264879767932778",
"USDC": "184322143085"
}
}
]
}
]
}
}
/gethistoricaltimeseries
Get the historical time series transactions for a specific pool address. Available on Ethereum only.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
Query Parameters
Starting block of the range.
Pool address whose time series is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1300&poolAddress=0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"priceData": [
{
"hash": "0x38987fde3da3213ed19d4ba5f35ad19427a7bb948a29d9d53ef314e8290303c4",
"timestamp": 1703751443,
"price": 0.00041976984339351357
},
{
"hash": "0xb761d35868ea8c5b9e3971dd7aa5fd21d3aebe2ecc438107ea887ed626e9e1f0",
"timestamp": 1703751443,
"price": 0.000419760992238418
},
{
"hash": "0x39aad80e4e83ae62204cb25d7c97961c4ec4ddaa89f73e9c34ac3769602a24bf",
"timestamp": 1703751431,
"price": 0.0004197578615022704
},
{
"hash": "0x5b4ab81a8addb871f537e9c2b778dd34864de232f3e56d33ba7fd835cbac1903",
"timestamp": 1703751407,
"price": 0.0004197562885194616
},
{
"hash": "0x331285df3da92120335b89c8afc41b66ef813a22754a2ad2929e9dc4739cc4ac",
"timestamp": 1703751383,
"price": 0.00041974726650371503
},
{
"hash": "0xc99d3ece4711f4e355eb538ce36650c0cee4ae6bddf965dfdfed4836a76e5d7b",
"timestamp": 1703751347,
"price": 0.00041973876117544354
},
{
"hash": "0x710533e3977ea754f485b3bd70583e8e9efce49c6474d4d2b6c9a84d3ea43c4c",
"timestamp": 1703751299,
"price": 0.00041932018198753956
},
{
"hash": "0x6b4c65707ced66be9bdfdc476e262f09f2faf288ff87701327734c6a4ea3cd54",
"timestamp": 1703751287,
"price": 0.00041973930702795154
},
{
"hash": "0x269db22d154768f562e0a9064f8ed1bb2f6d157b6b46124b3c021ab1553bce8f",
"timestamp": 1703751263,
"price": 0.0004194194863550368
},
{
"hash": "0x1e484c122e784479e3aa6b5c706100d2320945b0518b80125fec937a23e03f94",
"timestamp": 1703751203,
"price": 0.000419632602069267
},
{
"hash": "0x94928f3b93dccd23a966a09a6164c43fca9396865ae5537cb169064442fb6038",
"timestamp": 1703751155,
"price": 0.0004197467760294749
},
{
"hash": "0x945dba738ad85406361b2295bd7dc4df5d755d8d59c9ae1ec262a93dc26f2b27",
"timestamp": 1703751155,
"price": 0.0004197513702011714
},
{
"hash": "0xb998b508ca1d6965190e7a5dc93621cd88a5a8958cfccfbab747764028de8377",
"timestamp": 1703751155,
"price": 0.0004201607446060059
},
{
"hash": "0x6ca4feeb1c7cc7a5cbcd1dd67ec77d3c31fccbca490bb2e16e3773cb46f8f3a4",
"timestamp": 1703751143,
"price": 0.0004199672013049922
},
{
"hash": "0x95d7526c279240fe98ec4a710b4b3c510d527ccf8caacdab3ee8aaffc3c874c8",
"timestamp": 1703751095,
"price": 0.00042029036707271275
},
{
"hash": "0x6f9b15d401da224600f65d14c29a49598967ec211e3847f4e8541364291a52d2",
"timestamp": 1703751083,
"price": 0.0004204936256776377
}
]
}
}
/gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address. Available on Ethereum only.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
Query Parameters
Starting block of the range.
Pool address whose transactions is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8&dexId=1300&startBlock=18709774&endBlock=18711525
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"transactions": [
{
"transactionHash": "0xd8c46225c354721655d84389d0017bb92bca0d49219c63b1c0e6b0cfe07442c7",
"transactionDetails": {
"blockHash": "0x99073be585a7b262b39280b278ba3757f9d2d357f6eb0a3a32bd38fdeb51d38e",
"blockNumber": "18711525",
"from": "0x8d5acf995dae10bdbbada2044c7217ac99edf5bf",
"gas": "456262",
"gasPrice": "44449889625",
"maxFeePerGas": "58008491929",
"maxPriorityFeePerGas": "100000000",
"hash": "0xd8c46225c354721655d84389d0017bb92bca0d49219c63b1c0e6b0cfe07442c7",
"input": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000003096c00000000000000000000000000000000000000000000000000000000000309a800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043a77aabd0077ffc700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043a77aabd0077ffc70000000000000000000000008d5acf995dae10bdbbada2044c7217ac99edf5bf00000000000000000000000000000000000000000000000000000000656d825b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
"nonce": "531",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"transactionIndex": "126",
"value": "78000000000000000000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x1ac7d0ed1e2047f0535c7d1762c0ef862fc5f247285de80ad3667500261710c0",
"s": "0x3b29d6d0489d3a3352aafd9638f3003b0d2ecd48986506b110a0c266e5269adc",
"yParity": "0x1"
}
},
{
"transactionHash": "0xc8280fdcf97f561ccae5bc4a571ffbbf187a1c7d4dc44062e3055647c47edfea",
"transactionDetails": {
"blockHash": "0x3429b4e7bc88936e97ed52e261ef012f4b87ab44e941a61c62dfc0be8c15756d",
"blockNumber": "18709774",
"from": "0x9c5c934672d289ffa05252841078bae754dc7eb1",
"gas": "444856",
"gasPrice": "36458104843",
"maxFeePerGas": "54302243486",
"maxPriorityFeePerGas": "616099394",
"hash": "0xc8280fdcf97f561ccae5bc4a571ffbbf187a1c7d4dc44062e3055647c47edfea",
"input": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb80000000000000000000000000000000000000000000000000000000000030a980000000000000000000000000000000000000000000000000000000000030bc40000000000000000000000000000000000000000000000000000002e90edd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e90edd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009c5c934672d289ffa05252841078bae754dc7eb100000000000000000000000000000000000000000000000000000000656d2fb7",
"nonce": "87",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"transactionIndex": "73",
"value": "0",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x222ac5e262c781fc92abac25683602ed20be24d2c08853d5bd85ddab50283363",
"s": "0x7e43e2b4c406ffc3d0e9e956d87d97b37858e4176cc7501fee28ff7d7fe1976c",
"yParity": "0x1"
}
},
{
"transactionHash": "0x5eddbfc2dadaa56c29cb20ac863e3381875702000231c725450414f0b841dff8",
"transactionDetails": {
"blockHash": "0x6cae8b44cc42e7754f51494b0e01c2db1a21f4874484557d31d515fc6e2928ca",
"blockNumber": "18710651",
"from": "0xe63ef6b5cbaad5be3d6b984ebe8627b275ba2011",
"gas": "484500",
"gasPrice": "36104085907",
"maxFeePerGas": "42198419459",
"maxPriorityFeePerGas": "2480176656",
"hash": "0x5eddbfc2dadaa56c29cb20ac863e3381875702000231c725450414f0b841dff8",
"input": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000308f40000000000000000000000000000000000000000000000000000000000030b4c00000000000000000000000000000000000000000000000000000000029f6300000000000000000000000000000000000000000000000000007d43134c4d848600000000000000000000000000000000000000000000000000000000020364b4000000000000000000000000000000000000000000000000006ccabcaeb83d2d000000000000000000000000e63ef6b5cbaad5be3d6b984ebe8627b275ba201100000000000000000000000000000000000000000000000000000000656d5933",
"nonce": "16",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"transactionIndex": "52",
"value": "0",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0xe9d43c3d98a9ab874af15be82bf0564be4bb12c32d25ab2c2d855614dc9dee21",
"s": "0x66f23ef791845f58be1f34c92c77f265b69ff37eed121ae15368574af7a9226b",
"yParity": "0x0"
}
},
{
"transactionHash": "0x3d6193001b90ba7cbbeafd0fdee714d5b53bcfd115c660cbcce6e1205b7ad75d",
"transactionDetails": {
"blockHash": "0xb0d4a62d43dda996d815806a53e905b21897b73a9152f0d41ec70e985b263b84",
"blockNumber": "18709824",
"from": "0x24affae9c683b7615d4130300288e348e4b5d091",
"gas": "634666",
"gasPrice": "41077993391",
"maxFeePerGas": "61616990086",
"maxPriorityFeePerGas": "0",
"hash": "0x3d6193001b90ba7cbbeafd0fdee714d5b53bcfd115c660cbcce6e1205b7ad75d",
"input": "0x1cff79cd000000000000000000000000ebc926a16ad7837e9a26c2eb22557ebbe2e6bbd5000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e43123dd7600000000000000000000000000000000000000000000000000000000656d2ff30000000000000000000000008ad599c3a0ff1de082011efddc58f1908eb6e6d8000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000001edc280dae4314000000000000000000000000000000000000000000000000001edc280dae431400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "77830",
"to": "0x5050e08626c499411b5d0e0b5af0e83d3fd82edf",
"transactionIndex": "0",
"value": "9201664",
"type": "2",
"accessList": [
{
"address": "0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8",
"storageKeys": [
"0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7786",
"0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458d8",
"0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a4",
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0x0000000000000000000000000000000000000000000000000000000000000004",
"0x00000000000000000000000000000000000000000000000000000000000002c7",
"0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7788",
"0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458d9",
"0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a3",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"0x4599bbaa72a0f54af58cb2739cf429f4c2b98d872f82d2ddc59ada0987fe7787",
"0x0d77e2d712980b9f161379006fa1cd3d3620dc913971aa0df321a1d9aed458da",
"0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a1",
"0xc4e36790523d49948822155ef94f257b8a953b27f5171ffa2bd285edc0b036a2",
"0x00000000000000000000000000000000000000000000000000000000000002c8",
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
{
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"storageKeys": [
"0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b",
"0x037115957c78e37f987a242ae6019b6d91ee5fe4035e6bd8dbead7487b2a0cdd",
"0xc58bfc1a94e2de102d0112db2443321126998201ea69c15631ad885e318d85cd",
"0xfc581e2e1d759407b26acc35e3d0231aeae791f35404c37eeed17c8cdf81bcfd",
"0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3",
"0x861bc8718284ac24ff11398a41cd3dcfa30f40a29e63274364e80d202c20402c",
"0xb95dd07fa1ed783744109930e951789ad0898d42d588ae87377539fa5fd5e26c",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"0x14f06863b217bb724f48eeeae7a44747755f25ffffde525fba804b12abcd115f"
]
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"storageKeys": [
"0x46907554d4b34c274883fc6378e0b8984501b080086b3ca0038d889b8150bd13",
"0x037115957c78e37f987a242ae6019b6d91ee5fe4035e6bd8dbead7487b2a0cdd",
"0xfc581e2e1d759407b26acc35e3d0231aeae791f35404c37eeed17c8cdf81bcfd"
]
},
{
"address": "0x9a5f2e0db22ff289d0cc40ef654a19a5b012d8aa",
"storageKeys": []
},
{
"address": "0xebc926a16ad7837e9a26c2eb22557ebbe2e6bbd5",
"storageKeys": []
},
{
"address": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
"storageKeys": []
}
],
"chainId": "1",
"v": "0x0",
"r": "0x2157a9e7e20319376325fb86f904a8811c7707295e39254dc526f965557329c1",
"s": "0x3e7d0676a70b97527bd6dab06745e6f2bd39181e7b1fa3b05ebd64a2c7264537",
"yParity": "0x0"
}
}
]
}
}
/getpoolchartdata
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval. Available on Ethereum only.
GET
https://historicaltrade.api.expand.network/dex/getpoolchartdata
Query Parameters
15 mins(by default), 30 mins, 60 mins, and 90 mins.
Pool address whose transactions is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/getpoolchartdata?dexId=1300&poolAddress=0xcbcdf9626bc03e24f779434178a73a0b4bad62ed
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "WBTC/WETH",
"chartData": {
"18883002 to 18883071": [
{
"open_price": "18028736548182664098",
"close_price": "18019572775252506027",
"low_price": "18019572775252507000",
"high_price": "18028736548182663000",
"transactions": [
{
"blockNumber": "18883025",
"price": "18027092476164612096",
"amount": {
"token0": 271152565,
"token1": 48880923644042360000
}
},
{
"blockNumber": "18883032",
"price": "18022510256963586048",
"amount": {
"token0": 205966414,
"token1": 37120318089050090000
}
}
]
}
],
"18882933 to 18883002": [
{
"open_price": "18028736548182664098",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18028736548182663000",
"transactions": []
}
],
"18882863 to 18882933": [
{
"open_price": "18028736548182664098",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18028736548182663000",
"transactions": []
}
],
"18882794 to 18882863": [
{
"open_price": "18028736548182664098",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18028736548182663000",
"transactions": []
}
],
"18882725 to 18882794": [
{
"open_price": "18028736548182664098",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18028736548182663000",
"transactions": []
}
],
"18882656 to 18882725": [
{
"open_price": "18028736548182664098",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18028736548182663000",
"transactions": []
}
],
"18882586 to 18882656": [
{
"open_price": "18025675444338970819",
"close_price": "18028736548182664098",
"low_price": "18022510256963586000",
"high_price": "18137912692925088000",
"transactions": [
{
"blockNumber": "18882599",
"price": "18136372839549007872",
"amount": {
"token0": 112284732,
"token1": 20364377637408390000
}
},
{
"blockNumber": "18882640",
"price": "18137912692925087744",
"amount": {
"token0": 137832839,
"token1": 25000000000000000000
}
}
]
}
]
}
}
}
/getpooltradedata
Get the trade data from the pool within a specified block range, for the specified event type. Available on Ethereum only.
GET
https://historicaltrade.api.expand.network/dex/getpooltradedata
Query Parameters
Starting block of the range.
Pool address whose data is to be fetched.
Transfer, Swap, Burn or Mint(by default).
Sample Request
Copy https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0x5777d92f208679db4b9778590fa3cab3ac9e2168&dexId=1300&eventType=Swap
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "DAI/USDC",
"transactions": [
{
"blockNumber": "18883082",
"transactionHash": "0x7bb91700afc23ed9579e3e75870a6d822d5c9e9106a0afb4f894a48e1d3b1836",
"values": {
"0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"2": "-773851782813653396142645",
"3": "773994216704",
"4": "79231558998781270027361",
"5": "454941727155991731855001",
"6": "-276324",
"sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"amount0": "-773851782813653396142645",
"amount1": "773994216704",
"sqrtPriceX96": "79231558998781270027361",
"liquidity": "454941727155991731855001",
"tick": "-276324"
},
"eventType": "Swap",
"data": {
"data": "0xffffffffffffffffffffffffffffffffffffffffffff5c216929d5728d7345cb000000000000000000000000000000000000000000000000000000b435a67d000000000000000000000000000000000000000000000010c726c37299ca15ec6100000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
]
}
},
{
"blockNumber": "18883077",
"transactionHash": "0xea5e9ba9947be9a0eb100f168f0f094e408ac52b162ce822b0c9635e15293a4e",
"values": {
"0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"2": "-6664975302918764090197",
"3": "6666190611",
"4": "79231424221064230419989",
"5": "454941727155991731855001",
"6": "-276324",
"sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"amount0": "-6664975302918764090197",
"amount1": "6666190611",
"sqrtPriceX96": "79231424221064230419989",
"liquidity": "454941727155991731855001",
"tick": "-276324"
},
"eventType": "Swap",
"data": {
"data": "0xfffffffffffffffffffffffffffffffffffffffffffffe96b0e3128c478a2cab000000000000000000000000000000000000000000000000000000018d55ff130000000000000000000000000000000000000000000010c724e49efb2e4d3e1500000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
]
}
},
{
"blockNumber": "18883066",
"transactionHash": "0x106dcf2be3ad40c5f27bd818c8ae75d10271af6e61e45c8b38d82447d13eb38c",
"values": {
"0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"1": "0x163C5e051049e92915017Fe7BB9b8ce6182bcBb1",
"2": "7110951881905262918177",
"3": "-7110826137",
"4": "79231423060262337608341",
"5": "454941727155991731855001",
"6": "-276324",
"sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"recipient": "0x163C5e051049e92915017Fe7BB9b8ce6182bcBb1",
"amount0": "7110951881905262918177",
"amount1": "-7110826137",
"sqrtPriceX96": "79231423060262337608341",
"liquidity": "454941727155991731855001",
"tick": "-276324"
},
"eventType": "Swap",
"data": {
"data": "0x0000000000000000000000000000000000000000000001817c480527b2a97a21fffffffffffffffffffffffffffffffffffffffffffffffffffffffe582967670000000000000000000000000000000000000000000010c724e07f3cedd37a9500000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"0x000000000000000000000000163c5e051049e92915017fe7bb9b8ce6182bcbb1"
]
}
},
{
"blockNumber": "18883050",
"transactionHash": "0x1e133891d6d5a109575ee9778ca99340b93b1a83c061cef8ce9c9f7280510a9d",
"values": {
"0": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"1": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"2": "-948340157679668203715232",
"3": "948511118707",
"4": "79231424298613658735017",
"5": "454941727155991731855001",
"6": "-276324",
"sender": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"recipient": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"amount0": "-948340157679668203715232",
"amount1": "948511118707",
"sqrtPriceX96": "79231424298613658735017",
"liquidity": "454941727155991731855001",
"tick": "-276324"
},
"eventType": "Swap",
"data": {
"data": "0xffffffffffffffffffffffffffffffffffffffffffff372e6085a7d6a31a8560000000000000000000000000000000000000000000000000000000dcd7ab15730000000000000000000000000000000000000000000010c724e4e583106dd1a900000000000000000000000000000000000000000000605670c11fccb1cd5e99fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89c",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
"0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"
]
}
}
]
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Remote procedural call URL.
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token) ,
2
for erc20 -> base ("to" address should be of equivalent wrapped token) .
By default, 0.
Different pool based on the fees. By default, it is selected as 3000.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1300",
"amountIn": "1000000000000000",
"amountOutMin": "0",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"poolFees": "2975",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "173376"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0",
"gas": "173376",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f300000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d84400000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority (medium):
Copy {
"dexId": "1300",
"amountIn": "1000000000",
"amountOutMin": "0",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "173376",
"gasPriority": "medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0",
"gas": "155748",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f3000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1300",
"amountIn": "1000000",
"amountOutMin": "999831028599930500",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1711931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "933376",
"gasPriority": "high",
"slippage": "1"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0",
"gas": "933376",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f300000000000000000000000000000000000000000000000000000000000f42400000000000000000000000000000000000000000000000000da2b80fc5b5349c000000000000000000000000000000000000000000000000000000000000008000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000"
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Address of the first token being added.
Address of the second token being added.
Different pool based on the fees.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
The token ID for uniswap V3 liquidity position.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1300",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"poolFees": "3000",
"amountADesired": "1000000000000000",
"amountBDesired": "1294471768449933344",
"amountAMin": "0",
"amountBMin": "0",
"deadline": "1666193668",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "5446762"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "5446762",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d8440000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedd24fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffede1400000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000011f6e3370a3ae0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006350190400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority (medium):
Copy {
"dexId": "1300",
"tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"tokenB": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amountADesired": "1000000000000000",
"amountBDesired": "999",
"amountAMin": "0",
"amountBMin": "0",
"poolFees":"3000",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline":"1699966737054",
"gas": "123444",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "664118",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000164883164560000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc800fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc8f000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcde9da9e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1300",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"poolFees": "3000",
"amountADesired": "1000000000000000",
"amountBDesired": "1294471768449933344",
"amountAMin": "0",
"amountBMin": "0",
"deadline": "1666193668",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "5446762",
"slippage": "5"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "5446762",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000016488316456000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000bb8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed1a8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed29800000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000011f6e3370a3ae0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006350190400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000"
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
The token ID for uniswap V3 liquidity position.
Minimum amount of Token A.
Maximum amount of Token A.
Maximum amount of Token B.
Recipient for sweep tokens.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the first token being removed.
Address of the second token being removed.
Different pools based on the fees.
The liquidity to be removed.
Minimum amount of Token B.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1300",
"tokenId": "38177",
"tokenA":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"liquidity": "499737032187727318211",
"amountAMin": "0",
"amountBMin": "0",
"deadline": "1763180052",
"recipient": "0x0000000000000000000000000000000000000000",
"amountAMax": "340282366920938463463374607431768211455",
"amountBMax": "340282366920938463463374607431768211455",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2421200",
"poolFees":"3000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "2421200",
"data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe000000000000000000000000000000000000000000000000000000000000952100000000000000000000000000000000000000000000001b173e970df1700cc300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006917fe14000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000009521000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1300",
"tokenId": "609214",
"tokenA": "0x9813037ee2218799597d83D4a5B6F3b6778218d9",
"liquidity": "202694601337334530",
"chainId": "1",
"amountAMin": "0",
"amountBMin": "0",
"recipientA": "0x0000000000000000000000000000000000000000",
"amountAMax": "340282366920938463463374607431768211455",
"amountBMax": "340282366920938463463374607431768211455",
"amountMinimumA": "0",
"recipientB": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"deadline": "1700642704004",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"gas": "80000",
"poolFees": "3000",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "362868",
"data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe0000000000000000000000000000000000000000000000000000000000094bbe00000000000000000000000000000000000000000000000002d01daa7e99eb02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018bf6344a84000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000094bbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d900000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With slippage:
Copy {
"dexId": "1300",
"tokenId": "38177",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"liquidity": "499737032187727318211",
"amountAMin": "10000000",
"amountBMin": "10000000",
"deadline": "1763180052",
"recipient": "0x0000000000000000000000000000000000000000",
"amountAMax": "340282366920938463463374607431768211455",
"amountBMax": "340282366920938463463374607431768211455",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2421200",
"poolFees": "3000",
"slippage": "9.50"
}
Sample Response
With slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "2421200",
"data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe000000000000000000000000000000000000000000000000000000000000952100000000000000000000000000000000000000000000001b173e970df1700cc300000000000000000000000000000000000000000000000000000000008a179000000000000000000000000000000000000000000000000000000000008a1790000000000000000000000000000000000000000000000000000000006917fe14000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000009521000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000008a179000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000008a179000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000"
}
}
STON.fi /getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=2300&path=EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA,EQB5Wjo7yXdaB70yBoN2YEv8iVPjAdMObf_Dq40ELLaPllNb&amountIn=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "1",
"path": [
"EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"EQB5Wjo7yXdaB70yBoN2YEv8iVPjAdMObf_Dq40ELLaPllNb"
],
"amountsOut": [
"1",
"22018"
]
}
}
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Remote procedural call URL.
Public address of liquidity provider.
Sample Request
Copy https://api.expand.network/dex/getuserliquidity?tokenA=EQBT2Ee4Lx5w9uI7oMly5upXNs3ABWL_Fwk1uiM74gZCGaYt&tokenB=EQC47093oX5Xhb0xuk2lCr2RhS8rj-vul61u4W2UH5ORmG_O&address=UQAAjw7MBB_2-DvNKsjtOAPJBeqTK8iiDl8Xyv37zbIRbKrt&dexId=2300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenA": "12544748660283056",
"tokenB": "295478740252006"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getpoolliquidity?poolAddress=EQAZFS5dJ8STrKcn5VnptYsoKILXbAYaDhdJJjbzUrNkDdH_&dexId=2300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "149487260181"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/gettokenliquidity?poolAddress=EQD1c0gDs91J-9FzeiC_V9VbizFxDUs09P6eIO4Fe4l2WDbm&dexId=2300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenA": "19467094",
"tokenB": "1028"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquidityholders?poolAddress=EQAZFS5dJ8STrKcn5VnptYsoKILXbAYaDhdJJjbzUrNkDdH_&dexId=2300
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "157"
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as the result of swap.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
If a base token is involved in the swap;
0
for jetton -> jetton,
1
for native -> jetton,
2
for jetton -> native.
By default, 0
.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
The query id, used to identify your transaction.
Sample Request
Copy {
"dexId": "2300",
"amountIn": "100",
"amountOutMin": "0",
"path": [
"EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO"
],
"from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"referralAddress": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"queryId": "1",
"involveBaseToken": "0",
"gas": "123"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1100",
"to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
"value": "320000000",
"message": "te6ccsEBAgEAogAANwFnD4p+pQAAAAAAAAABFkgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQPy5RAwEA0SWThWGAEPckSDVNSvvmJOKMGCE4qb+zE0NdQGXsIPpYy63RDznBAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQEr8ADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvoaQiNw="
}
}
Sample Request
With Slippage:
Copy {
"dexId": "2300",
"amountIn": "100",
"amountOutMin": "0",
"path": [
"EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO"
],
"from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"referralAddress": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"queryId": "1",
"slippage": "10",
"involveBaseToken": "0",
"gas": "123"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1100",
"to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
"value": "320000000",
"message": "te6ccsEBAgEAogAANwFnD4p+pQAAAAAAAAABFkgA7zuZAqJxsqAciTilI8/iTnGEeq62piAAHtRKd6wOcJwQPy5RAwEA0SWThWGAEPckSDVNSvvmJOKMGCE4qb+zE0NdQGXsIPpYy63RDznBAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQEr8ADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvoaQiNw="
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Address of the first token being added.
Address of the second token being added.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
The query id, used to identify your transaction.
Sample Request
Copy {
"dexId": "2300",
"tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
"amountADesired": "1100",
"amountBDesired": "411858",
"amountAMin": "1",
"amountBMin": "1",
"queryId": "166978170",
"from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"gas": "230000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"jetton0Transaction": {
"chainId": "1100",
"to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
"value": "320000000",
"message": "te6ccsEBAgEAYQAAOAFpD4p+pQAAAAAJ8+J6IETIAO87mQKicbKgHIk4pSPP4k5xhHqutqYgAB7USnesDnCcED8uUQMBAE38+eWPgBD3JEg1TUr75iTijBghOKm/sxNDXUBl7CD6WMut0Q85wgN+Gc78"
},
"jetton1Transaction": {
"chainId": "1100",
"to": "0:f74345def726901e85075be154c7b5066f30a3386c8df01ed3e76fc20cff4ad4",
"value": "320000000",
"message": "te6ccsEBAgEAYgAAOQFrD4p+pQAAAAAJ8+J6MGSNKADvO5kConGyoByJOKUjz+JOcYR6rramIAAe1Ep3rA5wnBA/LlEDAQBN/Pnlj4AClYDlisUiRlr5snu9gkBGuLy568QE/pN3i1RO3LpEmwIDgzC5aA=="
}
}
}
Sample Request
With Slippage:
Copy {
"dexId": "2300",
"tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
"amountADesired": "1100",
"amountBDesired": "411858",
"amountAMin": "1",
"amountBMin": "1",
"slippage": "1",
"queryId": "166978170",
"from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"gas": "230000"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"jetton0Transaction": {
"chainId": "1100",
"to": "0:73d110ca89db91fcb58feaa567a0448a8db0635a1c6076509dea8439c6d351be",
"value": "320000000",
"message": "te6ccsEBAgEAYQAAOAFpD4p+pQAAAAAJ8+J6IETIAO87mQKicbKgHIk4pSPP4k5xhHqutqYgAB7USnesDnCcED8uUQMBAE38+eWPgBD3JEg1TUr75iTijBghOKm/sxNDXUBl7CD6WMut0Q85wgN+Gc78"
},
"jetton1Transaction": {
"chainId": "1100",
"to": "0:f74345def726901e85075be154c7b5066f30a3386c8df01ed3e76fc20cff4ad4",
"value": "320000000",
"message": "te6ccsEBAgEAYgAAOQFrD4p+pQAAAAAJ8+J6MGSNKADvO5kConGyoByJOKUjz+JOcYR6rramIAAe1Ep3rA5wnBA/LlEDAQBN/Pnlj4AClYDlisUiRlr5snu9gkBGuLy568QE/pN3i1RO3LpEmwIDgzC5aA=="
}
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Address of the first token being removed.
Address of the second token being removed.
Total amount of liquidity to be removed from the given pool.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
The query id, used to identify your transaction.
Sample Request
Copy {
"dexId": "2300",
"tokenA": "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA",
"tokenB": "EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO",
"liquidity": "20",
"queryId": "0",
"from": "UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R",
"gas": "230000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1100",
"to": "0:dbcb1554a8c4a09df5d1120e18b2286a1b23c75369d7a0f5d6e87b0878217b17",
"value": "520000000",
"message": "te6ccsEBAQEAMQAAAF1ZXwe8AAAAAAAAAAARSABjMZRthjd/kgnklQr3d38FRPs5ZM4DLQtoFW/KCEgJX2HFnx0="
}
}
TON /getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R&chainId=1100
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "496234820"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block(sequence) number.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=36065243&chainId=1100
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"shards": [
{
"workchain": -1,
"seqno": 36065243,
"shard": "-9223372036854775808",
"rootHash": "I8mULmKFPQ4aZE8jb7aAS2D/ZkvOUJ81CC836DOs92I=",
"fileHash": "Dw7g/1xxAeobH//sKtlKXaWN8kLSDeF1oJdts57ISqg=",
"transactions": [
{
"account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
"lt": "44595612000001",
"hex": "b540c4f87280725f4da43113598d632064e47e0520b3f466d4aa8a7e50dbd426",
"transactionHash": "tUDE+HKAcl9NpDETWY1jIGTkfgUgs/Rm1KqKflDb1CY="
},
{
"account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
"lt": "44595612000002",
"hex": "ab62f61a7cf841172087a7b0c0d30ccf97145dd62f04f622beebed70f4343fa6",
"transactionHash": "q2L2Gnz4QRcgh6ewwNMMz5cUXdYvBPYivuvtcPQ0P6Y="
},
{
"account": "Ef9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVbxn",
"lt": "44595612000003",
"hex": "67bb812a77a49376f930788915fb4d8d383f8fe217507684e753f1f1b4c50644",
"transactionHash": "Z7uBKnekk3b5MHiJFftNjTg/j+IXUHaE51Px8bTFBkQ="
}
]
}
]
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=1100
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": "3308000"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
The transaction(digest) hash.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=1100&transactionHash=whPbUe52HoCgrmkd9n1DpEmPC00rt5IqMb0NxdsjJec&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707378056,
"data": "te6cckECBwEAAaQAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAoc6sapEOtKW9AAdZAcbY46vM/ezW4lAeTLXpAsgL2TzT+x1uW2wAAKHIDIuADZcSFiAABRh5/1oAQIDAQGgBACCcmg71vLS+ZR3K7oq8Ku7shAhrC5E1x4q4buP3YBxyUZiyJ9ah8PG0skx0/zqz2Am0tDouaGuy3fgOaxRurkruAsCFwyINMjD0JAYYePjEQUGANVIAPFLwHy4w4LZWhR+6u+SLQ0K7iJqOaEEMnHS76yXRXljAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQErzD0JAAYUWGAAAFDnVjVIhMuJCxAAAAAANDSQMzk3tpA0Mrawtzo0QACcQHvoD6AAAAAAAAAAAB0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFvAAAAAAAAAAAAAAAABLUUtpEnlC4z33SeGHxRhIq/htUa7i3D8ghbwxhQTn44E/NZboQ==",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44477257000003",
"hash": "HgLzLs1zrDiXTIEyLZG9LiKDoMVI/tfDZkn/8C0fA6A="
},
"fee": "999403",
"storage_fee": "8403",
"other_fee": "991000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "1000000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44477257000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
Remote procedural call URL.
The public address of the user.
Maximum number of transactions in response.
Maximum: 100
Sample Request
Copy https://api.expand.network/chain/getusertransactions?address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R&chainId=1100
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707378056,
"data": "te6cckECBwEAAaQAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAoc6sapEOtKW9AAdZAcbY46vM/ezW4lAeTLXpAsgL2TzT+x1uW2wAAKHIDIuADZcSFiAABRh5/1oAQIDAQGgBACCcmg71vLS+ZR3K7oq8Ku7shAhrC5E1x4q4buP3YBxyUZiyJ9ah8PG0skx0/zqz2Am0tDouaGuy3fgOaxRurkruAsCFwyINMjD0JAYYePjEQUGANVIAPFLwHy4w4LZWhR+6u+SLQ0K7iJqOaEEMnHS76yXRXljAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQErzD0JAAYUWGAAAFDnVjVIhMuJCxAAAAAANDSQMzk3tpA0Mrawtzo0QACcQHvoD6AAAAAAAAAAAB0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFvAAAAAAAAAAAAAAAABLUUtpEnlC4z33SeGHxRhIq/htUa7i3D8ghbwxhQTn44E/NZboQ==",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44477257000003",
"hash": "HgLzLs1zrDiXTIEyLZG9LiKDoMVI/tfDZkn/8C0fA6A="
},
"fee": "999403",
"storage_fee": "8403",
"other_fee": "991000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "1000000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44477257000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
},
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707345059,
"data": "te6cckECBgEAAXUAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAocgMi4AP1ppjC3lF+VuJ5qYnL1j4NwBpLv4tcTgb/kb3b80bb0AAAKG+TuzNDZcQEowABRgN3PoAQIDAQGgBACCcg6eayTeKemeCPHsYR2MgNatcHDUVkfPjp42zEzBbs6zaDvW8tL5lHcruirwq7uyECGsLkTXHirhu4/dgHHJRmIBFwyNP8jAYagQYDDUCQUA1UgA8UvAfLjDgtlaFH7q75ItDQruImo5oQQycdLvrJdFeWMADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvMBhqABhRYYAAAUOQGRcAEy4gJRgAAAAA0NJAzOTe2kDQytrC3OjRAAKAshZAB////5QAAALoAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOk5Vgw=",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44470144000003",
"hash": "rSlvQAHWQHG2OOrzP3s1uJQHky16QLIC9k80/sdblts="
},
"fee": "113567",
"storage_fee": "13567",
"other_fee": "100000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "100000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44470144000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
}
]
}
}
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Remote procedural call URL.
Public addess of the user.
Comma-separated value of tokens to get value of. Maximum 10 at a time.
By default, false.
If true, tokens with balance > 0 will be listed.
Sample Request
Copy https://api.expand.network/chain/portfolio?chainId=1100&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"native": "496234820",
"jettons": [
{
"name": "GAGARIN",
"symbol": "GGR",
"address": "EQDetcmWrfHLPRPVh3LoFvwso0zsjFnpmmXTKWj7s1ycNgu2",
"balance": "0",
"USDPrice": "0.09126314435356501"
},
{
"name": "WEMIX",
"symbol": "oWEMIX",
"address": "EQCf7Nb341dxOE3N0jimngRxGEV8T3zo-eU2EZVs_nchNhhZ",
"balance": "0",
"USDPrice": "NA"
},
{
"name": "Mantle",
"symbol": "jMNT",
"address": "EQAEuikLQVh2lDMrV99nTHqFL_TXEyCEJ1xKMuPT60tfvdps",
"balance": "0",
"USDPrice": "0.7233562122618723"
}
]
}
}
Sui Note: Supported version - Node v18+
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
The address of token to get the balance of.
Sample Request
Copy https://api.expand.network/chain/getbalance/?address=0x01e1877687e9beadee82f63df4d936b53e96ec3d4c81d28f47074e4cd182bce4&chainId=101
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "172120"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
Remote procedural call URL.
The block(Checkpoint) number or block hash.
Sample Request
Copy https://api.expand.network/chain/getblock?blockNumber=4925305&chainId=101
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": {
"computationFee": "319667546316",
"storageFee": "1667423348400",
"storageRebate": "1188416311632",
"nonRefundableStorageFee": "12004205168"
},
"hash": "gZArqpuwddYeuxyK582fs5tTYeagBw6NBU1RD314hzC",
"miner": null,
"nonce": null,
"number": "4925305",
"parentHash": "8cFaKwc7s52Mt8csDbcqRizCTXGzRLFFkUf8cpw7pb2D",
"size": null,
"timestamp": "1686567354670",
"totalDifficulty": null,
"transactions": [
"8SoUvGSix7Ds3qnLRh2Pe2dGHPsnMWM6wv7j8g2XBBs8",
"8zEWsQkgTdFtqzeGu6aBUgDe6Hysqdfv7LEhDxt4so8p",
"C8j1ZR3immv3a6bGRUwFnEZ8SNd794nKFL4acLu4pg1C",
"CaYL9Vg57rHSwsgaHhT8WoXXDfftcozbtaKiJVgk7qA7",
"Fkm8avKi2qxeTS8aDKeohyn4DT1psoC8Et8jPEXQuxhS",
"GECi5Pe5MNgUzPSUcwDp1CcBxUiHiZegs4LPvRb21wTU",
"JAznEFvDf3Wm3C8uyPi1kNEBJcj88x4HgfyPATUUjEGz"
],
"transactionsRoot": null,
"uncles": null
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/chain/getgasprice?chainId=101
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"gasPrice": 820
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Remote procedural call URL.
Object Id whose storage is needed.
Sample Request
Copy https://api.expand.network/chain/getstorage?chainId=101&address=0x2c0c60250556852f3391645418c3a1939557ef3f86197bfd8d5f08e42bf8a562
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"data": {
"data": {
"objectId": "0x2c0c60250556852f3391645418c3a1939557ef3f86197bfd8d5f08e42bf8a562",
"version": "5832321",
"digest": "4U8VJLHhmwcSLQKZ4E94i3LpVkfTEgqTs2JvJnaHjAWE",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x4e6c09c10308e273b01f9be9f4eebc4cd47408156dcf580036946ca17468efbd"
},
"previousTransaction": "BTA1oPx1mxoh8eE7abaZjn68661kmK5HR778Xh5wnDhV",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "3247896304",
"id": {
"id": "0x2c0c60250556852f3391645418c3a1939557ef3f86197bfd8d5f08e42bf8a562"
}
}
}
}
}
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Remote procedural call URL.
The transaction(digest) hash.
Sample Request
Copy https://api.expand.network/chain/gettransaction?chainId=101&transactionHash=fcT9BaBGgRXHo2ngJAVAPACnYVUPtu1qAmUqLACNGZ2
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"hash": "fcT9BaBGgRXHo2ngJAVAPACnYVUPtu1qAmUqLACNGZ2",
"transactionStatus": "success",
"blockNumber": "5851982",
"timestamp": "1687511099697",
"from": "0x3171f5feed9f73a6ce73764c8c713816c8ad02b3cd2c72bfb46421bee417f488",
"to": null,
"value": null,
"transactionFees": {
"computationFee": "820000",
"storageFee": "8048400",
"storageRebate": "6568452",
"nonRefundableStorageFee": "66348"
},
"gas": {
"payment": [
{
"objectId": "0xe68aa8790c973b9b56de6082570aa24a6b07827e11e8d7c76de36c8a55f7e1a2",
"version": 5752185,
"digest": "DUGMzaGpSsQHS5DvcZmCTFupJxRWEmjm1H3YcCyNRv4p"
}
],
"owner": "0x1d632d46ff70491033fefc4e6398dceaa4943dcf62512b4d57378b5ab703bc5e",
"price": "820",
"budget": "10000000"
},
"gasPrice": 820,
"input": [
{
"type": "object",
"objectType": "sharedObject",
"objectId": "0xa12497d95f761a3d7337e1f690c4dbbee5bc6fa52302a97d10249e856062aee5",
"initialSharedVersion": "4338970",
"mutable": true
}
],
"nonce": null,
"network": null
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
Signature, received after signing the transaction.
Sample Request
Copy {
"chainId": "101",
"rawTransaction": "AAACAAjoAwAAAAAAAAAgjoLsljoRhNzWIhv109/7Y5u+3rE+m3cIAS6+9fY1CV0CAgABAQAAAQEDAAAAAAEBAHU9KMxqJHko4cO7vudRc1fUWhlgTsWqhC49Sd/RqeJ3AWLHsjiaUXCf24QTPngz4YscltY7WXx8EEvwMWY3bQi2EgAAAAAAAAAgAnvVen24ygZdxuPGTP5c0y9v4Q6gBEBrVZToO1VwKO91PSjMaiR5KOHDu77nUXNX1FoZYE7FqoQuPUnf0anid+gDAAAAAAAAEJAtAAAAAAAA",
"signature": "AIZ7D4E4VKOy2biUd2O7Wayjjj+voVX1fUtX7Hx5Ga/twHIZ1BbfMrMoPDLIWU774K0199NZXrFIw+aILTTj7Q5Dii+a4T1FLWxQvLizpwhD6VXBW4qPG0vYYOJ2O0GuhQ=="
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "101",
"transactionHash": "67yEnYvTfkNnKPtxrLfYomhWoi5cH7XCPbVQtjJ3UAW9"
}
}
DEX & Aggregators Provides connectivity across the various decentralized exchanges available on the EVM and Non-EVM chains.
Following are the common APIs implemented for all the DEXs :-
Returns the swap quotation for the given token pairs for the specified DEX.
Returns the balance of a particular token pair of an account.
Returns the total liquidity for a specified pool.
Returns the individual token liquidity within the specified liquidity pool.
Returns the total number of liquidity holders in the specified pool.
Returns the liquidity position for a specified user address across all the pools for a specified DEX.
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
Returns a list of all the quotes for a pool on different DEXs.
Get the historical time series transactions for a specific pool address.
gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address.
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
Get the trade data from the pool within a specified block range, for the specified event type.
getpoolindividualliquidity
Get all user addresses, block numbers, and token position details for a specified pool address. Available for Uniswap V2,V3 and Sushiswap only.
Get detailed information for user transactions on various DEXs, including transaction type, block-related details, decoded parameters and many more.
Retrieves quotes from various DEXs & aggregators in a unified manner. For a specified pair address, this endpoint will return the respective quotes for each DEX in which the pair address is present.
Initiate a swap transaction on a specified DEX.
Add liquidity to a specified pool in a specified DEX.
Remove liquidity from a specified pool for a specified DEX.
Returns the aggregated prepared swap quotes for every DEX, in which the pair address is present.
If the user wants to get the list of the price of the pool on multiple DEXs, they can do the same using /getpools endpoint.
/getpools
Returns a list of all the quotes for a pool on different DEXs.
GET
https://api.expand.network/dex/getpools
Query Parameters
Comma-separated values of token pair.
Sample Request
Copy https://api.expand.network/dex/getpools?dexId=1500,1400,1300&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=100000000000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
{
"dexId": "1300",
"value": "99431"
},
{
"dexId": "1400",
"value": "130999"
},
{
"dexId": "1500",
"value": "99977"
}
]
}
/quoteaggregator
Returns a list of all the quotes for a pool on different DEXs.
GET
https://api.expand.network/dex/quoteaggregator
Query Parameters
Comma-separated values of token pair.
Comma-separated values of dexes to exclude.
Sample Request
Copy https://api.expand.network/dex/quoteaggregator?path=0xdac17f958d2ee523a2206206994597c13d831ec7%2C0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=1000000&chainId=1&excludedDexes=1000,1100,1400
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
{
"dexName": "UniswapV3",
"dexId": "1300",
"amountIn": "1000000",
"path": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"1000000",
"992453714315716405"
]
},
{
"dexName": "CurveV2",
"dexId": "1500",
"amountIn": "1000000",
"path": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"1000000",
"1000311335077777268"
]
},
{
"dexName": "0x",
"dexId": "1600",
"amountIn": "1000000",
"path": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"1000000",
"1015039771697507808"
]
},
{
"dexName": "1inch",
"dexId": "1700",
"amountIn": "1000000",
"path": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"1000000",
"994152586419056980"
]
}
]
}
/getwalletposition
Get detailed information for user transactions on various DEXs, including transaction type, block-related details, decoded parameters and many more.Available for Uniswap V2, Uniswap V3, SushiSwap V2, Curve V2, and Balancer V2.
GET
https://historicallp.api.expand.network/dex/getwalletposition
Query Parameters
The page number that the user wants to fetch.
By default, 1.
Public address of the user.
Sample Request
Copy https://historicallp.api.expand.network/dex/getwalletposition?address=0xEf1B32354C3d8A273331Cd532D1576bB819B6E36&pageToken=3
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"currentPage": "3",
"totalPages": "3",
"transactions": {
"UniswapV3": [
{
"block_signed_at": "2024-02-18T14:02:11Z",
"block_height": 19255151,
"tx_offset": 249,
"log_offset": 402,
"tx_hash": "0x98ff38d750c787d0c34d7aa51051be6034943659a575e55d088ed0c3ad255a9e",
"raw_log_topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000073ea3d8ba3d7380201b270ec504b33ed5e478542",
"0x000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09"
],
"sender_contract_decimals": 6,
"sender_name": "USD Coin",
"sender_contract_ticker_symbol": "USDC",
"sender_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sender_address_label": null,
"raw_log_data": "0x000000000000000000000000000000000000000000000000000000023a5e3b6f",
"decoded": {
"name": "Transfer",
"signature": "Transfer(indexed address from, indexed address to, uint256 value)",
"params": [
{
"name": "from",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0x73ea3d8ba3d7380201b270ec504b33ed5e478542"
},
{
"name": "to",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0xe37e799d5077682fa0a244d46e5649f71457bd09"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"decoded": true,
"value": "9569188719"
}
]
}
}
],
"UniswapV2": [
{
"block_signed_at": "2024-01-14T12:17:47Z",
"block_height": 19005074,
"tx_offset": 79,
"log_offset": 1167,
"tx_hash": "0xbea1249137babc68449502e14c293fc02bd4679711231a241e4475c53261624f",
"raw_log_topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000de0b295669a9fd93d5f28d9ec85e40f4cb697bae",
"0x00000000000000000000000052e2e6b3ba385ed9690eef11f72b2fe27ba1f8ca"
],
"sender_contract_decimals": 0,
"sender_name": "# UsdcLB.com",
"sender_contract_ticker_symbol": "# UsdcLB.com - Visit to claim bonus",
"sender_address": "0xbbac5b019876534c3c399f56e150684c5015f670",
"sender_address_label": null,
"raw_log_data": "0x000000000000000000000000000000000000000000000000000000000000204f",
"decoded": {
"name": "Transfer",
"signature": "Transfer(indexed address from, indexed address to, uint256 value)",
"params": [
{
"name": "from",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
},
{
"name": "to",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0x52e2e6b3ba385ed9690eef11f72b2fe27ba1f8ca"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"decoded": true,
"value": "8271"
}
]
}
}
],
"SushiSwapV2": [
{
"block_signed_at": "2024-01-14T12:17:47Z",
"block_height": 19005074,
"tx_offset": 79,
"log_offset": 1264,
"tx_hash": "0xbea1249137babc68449502e14c293fc02bd4679711231a241e4475c53261624f",
"raw_log_topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000de0b295669a9fd93d5f28d9ec85e40f4cb697bae",
"0x0000000000000000000000001e888882d0f291dd88c5605108c72d414f29d460"
],
"sender_contract_decimals": 0,
"sender_name": "# UsdcLB.com",
"sender_contract_ticker_symbol": "# UsdcLB.com - Visit to claim bonus",
"sender_address": "0xbbac5b019876534c3c399f56e150684c5015f670",
"sender_address_label": null,
"raw_log_data": "0x000000000000000000000000000000000000000000000000000000000000204f",
"decoded": {
"name": "Transfer",
"signature": "Transfer(indexed address from, indexed address to, uint256 value)",
"params": [
{
"name": "from",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
},
{
"name": "to",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0x1e888882d0f291dd88c5605108c72d414f29d460"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"decoded": true,
"value": "8271"
}
]
}
}
],
"BalancerV2": [],
"PancakeV2": [],
"CurveV2": [],
"extraTransactions": []
}
}
}
/swapaggregator
Returns the aggregated prepared swap quotes for every DEX, in which the pair address is present.
POST
https://api.expand.network/dex/swapaggregator
Request Body
Comma-separated values of token pair.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Comma-separated values of dexes to exclude.
If true, prepared transaction from the dex providing best swap value will be provided.
Address of the recipient of the token.
Sample Request
Copy {
"path":["0xdac17f958d2ee523a2206206994597c13d831ec7","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"amountIn": "1000000000000000" ,
"gas": "800000" ,
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"chainId": "1",
"bestSwap": true
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"path": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountIn": "1000000000000000",
"dexName": "0x",
"dexId": "1600",
"chainId": "1",
"amountsOut": "68406348077699870412427961",
"transactionPayload": {
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"value": "0",
"gas": "800000",
"data": "0x415565b0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000380488990848cf40c95ff600000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000001f000000000000000000000000000000000000000000000000000000000000001f000000000000000000000000000000000000000000000000000000000000001ca000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f0000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000000000760000000000000000000000000000000000000000000000000000000000000088000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000ac00000000000000000000000000000000000000000000000000000000000000c200000000000000000000000000000000000000000000000000000000000000d800000000000000000000000000000000000000000000000000000000000000fe0000000000000000000000000000000000000000000000000000000000000116000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000144000000000000000000000000000000000000000000000000000000000000015c0000000000000000000000000000000000000000000000000000000000000174000000000000000000000000000000000000000000000000000000000000018a00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000143757276650000000000000000000000000000000000000000000000000000000000000000000000000071afd498d00000000000000000000000000000000000000000000028079e26b7fdc0fc33a10000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c73df02124000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002556e697377617056320000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000000545d1f2e7711e185d2200000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f164fc0ec4e93095b804a4795bbe1e041497b92a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000143757276650000000000000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000002b4669c49d3ac9e11fedf00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a5407eae9ba41422680e2e00537571bcc53efbfda6417ed6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000001b7fbb6ddcdc68b5c119f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000042dac17f958d2ee523a2206206994597c13d831ec7000064a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000646b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f53796e61707365000000000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000001a2acd5c34fdef88bc7f5000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000800000000000000000000000001116898dda4015ed8ddefb84b6e8bc24528af2d89169558600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b446f646f563200000000000000000000000000000000000000000000000000000000000000000000000016bcc41e90000000000000000000000000000000000000000000000172bf43bcf81c46997206000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000400000000000000000000000003058ef90929cb8180174d74c507176cca6835d730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025375736869537761700000000000000000000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000001206bd159b78d8dcc42c0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000000be5a3083ea8c50764422000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bdac17f958d2ee523a2206206994597c13d831ec70000646b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000000000000002556e6973776170563200000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000007384a5c7e97c7f487bc8000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f164fc0ec4e93095b804a4795bbe1e041497b92a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000001942616c616e6365725632000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000000460e85ccfe4d6f5611a8000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002079c58f70905f734641735bc61e45c19dd9ad60bc0000000000000000000004e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e900000000000000000000000000000000000000000000000391c72d1f80ddf34d2be000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000042dac17f958d2ee523a2206206994597c13d831ec70001f4a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480001f46b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e90000000000000000000000000000000000000000000000023f59f9b49322ad7a98a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bdac17f958d2ee523a2206206994597c13d831ec70001f46b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000001c63a4e353defe854318000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000042dac17f958d2ee523a2206206994597c13d831ec7000bb8c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb86b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000f2967365905c1ea0205000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000042dac17f958d2ee523a2206206994597c13d831ec70001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f46b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000e2f8231f62ace053698000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000042dac17f958d2ee523a2206206994597c13d831ec7000bb82260fac5e5542a773aa44fbcfedf7c193bc2c599000bb86b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c43727970746f436f6d00000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000af3dd13213ad902a2b2000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000ceb90e4c17d626be0facd78b79c9c87d7ca181b300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000253686962615377617000000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000870dbfd814b5d36022b000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000003f7724180aa6b939894b5ca4314783b0b36b32900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000002556e6973776170563200000000000000000000000000000000000000000000000000000000000000000016bcc41e9000000000000000000000000000000000000000000000000848951b626417dbc1fe000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f164fc0ec4e93095b804a4795bbe1e041497b92a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000158b0996829befd120b4000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd000000000000000000000000100000000000000000000000000000000000001100000000000000000000000000000000fd579806b7c202d6ff5c59f88e6cdb1d"
}
}
}
Sample Request
With gasPriority:
Copy {
"path": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000000000000000",
"gas": "900000",
"gasPriority": "medium",
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"UniswapV2": {
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "129281",
"data": "0x38ed1739000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000a8062eeaa97b0cc055510ea125faa2cb37c1b3d0000000000000000000000000000000000000000000000000000018c32f0c64d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
},
"SushiswapV2": {
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "130412",
"data": "0x38ed1739000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000a8062eeaa97b0cc055510ea125faa2cb37c1b3d0000000000000000000000000000000000000000000000000000018c32f0c64d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
},
"UniswapV3": {
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"value": "0",
"gas": "135138",
"data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e4472b43f3000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000002b39fdff3ce100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000a8062eeaa97b0cc055510ea125faa2cb37c1b3d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000"
},
"BalancerV2": {
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "900000",
"data": "0x52bbbe2900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000a8062eeaa97b0cc055510ea125faa2cb37c1b3d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a8062eeaa97b0cc055510ea125faa2cb37c1b3d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b98afd92ce70000000000000000000000000000000000000000000000000000018c32f0c64dd6855f0a3c26a1b1b2785ba2604758c0878169bc00010000000000000000031700000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000003265ca90c89a00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000"
},
"0x": {
"from": "0x0a8062EeAA97b0CC055510eA125faA2cb37C1b3d",
"to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"value": "0",
"gas": "900000",
"data": "0x415565b00000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000039260375dfd000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000012556e6973776170563300000000000000000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000393bfdd33f44000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e592427a0aece92de3edee1f18e0157c058615640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000426b175474e89094c44da98b954eedeac495271d0f0001f45d3a536e4d6dbd6114cc1ead35777bab948e3643000bb8c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000015fa5d5f74000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd000000000000000000000000100000000000000000000000000000000000001100000000000000000000000000000000d81c918122efc4f7e183db03a87bef01"
}
}
}
Following is a sequence diagram for swap() process:-
Following is a sequence diagram for addLiquidity() process:-
Following is a sequence diagram for removeLiquidity() process:-
Curve v2 Below is the list of tokens we currently support for these endpoints. We are happy to add support for additional tokens upon request.
Supported Mainnet Token Pairssteth - ETH/stETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
threepool - DAI/USDC/USDT
0x6b175474e89094c44da98b954eedeac495271d0f, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xdac17f958d2ee523a2206206994597c13d831ec7
FRAXsDAI - FRAX/sDAI
0x853d955acef822db058eb8505911ed77f175b99e, 0x83f20f44975d03b1b09e64809b757c47f942beea
FRAXPYUSD - FRAX/PYUSD
0x853d955acef822db058eb8505911ed77f175b99e, 0x6c3ea9036406852006290770bedfcaba0e23a0e8
frxETHWETH - WETH/frxETH
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0x5e8422345238f34275888049021821e8e08caa1f
stETHng - ETH/stETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
fraxusdc - FRAX/USDC
0x853d955acef822db058eb8505911ed77f175b99e, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
tricrypto2 - USDT/WBTC/WETH
0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
TriCryptoUSDT - USDT/WBTC/WETH
0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
stETHfrxETH - stETH/frxETH
0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0x5e8422345238f34275888049021821e8e08caa1f
alUSDFRAXBP - alUSD/FRAX/BASIS
0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 0x3175df0976dfa876431c2e9ee6bc45b65d3473cc
PayPool - PYUSD/USDC
0x6c3ea9036406852006290770bedfcaba0e23a0e8, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
mkUSDUSDC - mkUSD/USDC
0x4591dbff62656e7859afe5e45f6f47d3669fbb28, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
TriCryptoUSDC - USDC/WBTC/WETH
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
frxeth - ETH/frxETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x5e8422345238f34275888049021821e8e08caa1f
OETH - ETH/OETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3
cvxCrvCrv - cvxCrv/Crv
0xd533a949740bb3306d119cc777fa900ba034cd52, 0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7
ETHxwstETH - ETHx/wstETH
0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xa35b1b31ce002fbf2058d22f30f95d405200a15b
cvxFxsFxs - cvxFXS/FXS
0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0, 0xfeef77d3f69374f66429c91d732a244f074bdf74
FRAXFPI - FRAX/FPI
0x853d955acef822db058eb8505911ed77f175b99e, 0x5ca135cb8527d76e932f34b5145575f9d8cbe08e
mim - MIM/DAI/USDC/USDT
0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490
crvUSDUSDC - USDC/crvUSD
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
alETHfrxETH - alETH/frxETH
0x0100546f2cd4c9d97f798ffc9755e47865ff7ee6, 0x5e8422345238f34275888049021821e8e08caa1f
aave - DAI/USDC/USDT
0x028171bca77440897b824ca71d1c56cac55b68a3, 0xbcca60bb61934080951369a648fb03df4f96263c, 0x3ed3b47dd13ec9a98b44e6204a523e766b225811
crvUSDUSDT - USDT/crvUSD
0xdac17f958d2ee523a2206206994597c13d831ec7, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
/getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=1500&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amountIn=10000000000000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
],
"amountsOut": [
"10000000000000000000",
"9998342"
]
}
}
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Remote procedural call URL.
Public address of liquidity provider.
Sample Request
Copy https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1500&tokenA=0x6b175474e89094c44da98b954eedeac495271d0f&tokenB=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokenC=0xdac17f958d2ee523a2206206994597c13d831ec7
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",
"tokenA": "0",
"tokenB": "0",
"tokenC": "0",
"liquidity": "0"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getpoolliquidity?dexId=1500&poolAddress=0xc5424b857f758e906013f3555dad202e4bdb4567
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "6906912970691008135418"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/gettokenliquidity?dexId=1500&poolAddress=0xdebf20617708857ebe4f679508e7b7863a8a8eee
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"aDAI": "4410821251140993186643520",
"aUSDC": "4427459634996",
"aUSDT": "12345097594917"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquidityholders?dexId=1500&poolAddress=0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": 1467
}
}
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
Remote procedural call URL.
The public address of the liquidity holder.
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
Sample Request
Copy https://api.expand.network/dex/getindividualposition?address=0x9bb98140F36553dB71fe4a570aC0b1401BC61B4F&dexId=1500
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "1807177360143696334",
"poolAddresses": {
"DAIUSDCUSDT": {
"0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7": "1797671437464531430"
},
"ETHstETH": {
"0xdc24316b9ae028f1497c275eb9192a3ea0f67022": "9505922679164904"
}
}
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000000000000",
"amountOutMin": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x3df021240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000009382b488300"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000000000",
"amountOutMin": "101368",
"gas": "800000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900" ,
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "213623",
"data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1500",
"amountIn": "1000000",
"amountOutMin": "949846",
"path": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1711931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "933376",
"gasPriority": "high",
"slippage": "4"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
"value": "0",
"gas": "933376",
"data": "0x3df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000ea554"
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Comma separated values of token addresses.
Amount of tokens to add liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": [
"100000000000000",
"10000000000000"
],
"amountOut": "10136848990976",
"gas": "800000",
"gasPriority": "high",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "362868",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
Sample Request
With slippage:
Copy {
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage":"2.0001"
}
Sample Response
With slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000908f69d0683"
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Comma separated values of token addresses.
Amount of tokens to remove liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value. By default, 1. 0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000",
"amountOut": [ "100000000000000", "10000000000000" ],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"gasPriority": "medium",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "362868",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "10"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000051dac207a0000000000000000000000000000000000000000000000000000000082f79cd9000"
}
}
0x (Aggregator) /getprice
Returns the best swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses/token symbol whose price is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=1600&path=Weth,sushi&amountIn=1000000000000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "1000000000000000000",
"path": [
"Weth",
"sushi"
],
"amountsOut": "2909311628175970000000"
}
}
/getliquiditysources
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
GET
https://api.expand.network/dex/getliquiditysources
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquiditysources?dexId=1602
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
"0x",
"Aave_V2",
"Aave_V3",
"ApeSwap",
"Balancer_V2",
"Curve",
"Curve_V2",
"Dfyn",
"DODO",
"DODO_V2",
"FirebirdOneSwap",
"IronSwap",
"KyberDMM",
"KyberElastic",
"MeshSwap",
"MultiHop",
"QuickSwap",
"QuickSwap_V3",
"SushiSwap",
"Synapse",
"Uniswap_V3",
"WaultSwap",
"WOOFi"
]
}
/swap
Initiate a swap transaction on the DEX providing best swap quote.
POST
https://api.expand.network/dex/swap
Request Body
Comma-separated values of token addresses/token symbol, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as the result of swap.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1600",
"amountIn": "1000000000000000000",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"gas": "990089"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"value": "0",
"gas": "990089",
"data": "0x415565b00000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000f1e6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000002537573686953776170000000000000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000f2432000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000005d0000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd0000000000000000000000001000000000000000000000000000000000000011000000000000000000000000000000004e434de786aa6912b1f38bbb7ec2c899"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1600",
"amountIn": "1000000000000000000",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"gas": "990089",
"gasPriority": "low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x6AFb0df2F5ab5012568991549544dbC44Dfb6483",
"to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"value": "0",
"gas": "561499",
"data": "0x415565b00000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000f1e6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000002537573686953776170000000000000000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000f2432000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000005d0000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd0000000000000000000000001000000000000000000000000000000000000011000000000000000000000000000000004e434de786aa6912b1f38bbb7ec2c899"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1600",
"amountIn": "1000000000000000",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"amountOutMin": "10000000",
"gas": "990089",
"gasPriority": "medium",
"slippage": "8"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"to": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
"value": "0",
"gas": "990089",
"data": "0x415565b00000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000003a200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000025375736869537761700000000000000000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000003a3000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ad01c20d5886137e056775af56915de824c8fce5000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000000000000000000000000000000000000000000869584cd000000000000000000000000100000000000000000000000000000000000001100000000000000000000000000000000ac1a97fb6d31c9dcfa5aef7c46912632"
}
}
Uniswap V2 /getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=1000&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xdac17f958d2ee523a2206206994597c13d831ec7"
],
"amountsOut": [
"10000000000000000000",
"15682130807"
]
}
}
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Remote procedural call URL.
Public address of liquidity provider.
Sample Request
Copy https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11",
"liquidity": "2087379027763486",
"tokenA": "91297717639957",
"tokenB": "153006474077467970"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getpoolliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "312219425553389289"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/gettokenliquidity?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"WETH": "16984981267096993883931",
"USDT": "31586831096555"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquidityholders?poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "2572"
}
}
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
Remote procedural call URL.
The public address of the liquidity holder.
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
The number of pools for which the user intends to fetch the individual position.
By default: 50, Maximum: 9,950
Sample Request
Copy https://api.expand.network/dex/getindividualposition?dexId=1000&address=0x6Fb447Ae94F5180254D436A693907a1f57696900
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "2370404879481514",
"poolAddresses": {
"DAIWETH": {
"0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11": "2370404879481514"
}
}
}
}
/getpoolindividualliquidity
Returns all user addresses, block numbers, and token position details for a specified pool address.
GET
https://historicallp.api.expand.network/dex/getpoolindividualliquidity
Query Parameters
Remote procedural call URL.
Index of the last page that user wants to query.
By default: startPage+9
Index of the start page that user wants to query.
By default: endPage-9
Sample Request
Copy https://historicallp.api.expand.network/dex/getpoolindividualliquidity?startPage=211&endPage=212&poolAddress=0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "434",
"currentPages": "211-212",
"users": [
{
"userAddress": "0x5e34e63c37ce88e0d404c3ba149317ddf5f4ecaa",
"liquidityData": [
{
"blockNumber": "10975329",
"assets": {
"WETH": "87432734717490961",
"USDT": "30000000"
}
}
]
},
{
"userAddress": "0xf00a67934445876587ceda02728d493faa980b7a",
"liquidityData": [
{
"blockNumber": "10975289",
"assets": {
"WETH": "3494751089343567443",
"USDT": "1196562631"
}
}
]
},
{
"userAddress": "0xcd9410d3fe8916267f82dc13d7bbdba99e5643f7",
"liquidityData": [
{
"blockNumber": "10975229",
"assets": {
"WETH": "125975496436173808",
"USDT": "43126850"
}
}
]
},
{
"userAddress": "0xbffd0519e7bc626bf6ce4a31503bcb0a4075295b",
"liquidityData": [
{
"blockNumber": "10975228",
"assets": {
"WETH": "2999874086297596538",
"USDT": "1027021840"
}
}
]
},
{
"userAddress": "0x38d744e972419efe95df2aa6c047df9cd01579c5",
"liquidityData": [
{
"blockNumber": "10975194",
"assets": {
"WETH": "1425646890758547175",
"USDT": "488181735"
}
}
]
},
{
"userAddress": "0x40285fc5233fff0da4bf2c5f93e187fb4ab3306a",
"liquidityData": [
{
"blockNumber": "10975176",
"assets": {
"WETH": "1152868937561643841",
"USDT": "395000000"
}
}
]
}
]
}
}
/gethistoricaltimeseries
Get the historical time series transactions for a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
Query Parameters
Starting block of the range.
Pool address whose time series is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?poolAddress=0x517f9dd285e75b599234f7221227339478d0fcc8&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "DAI/MKR",
"priceData": [
{
"hash": "0x0700027e70d6d216810815c38a0959fe0635867ea2480ab1f6e20d3c98731ff0",
"timestamp": 1703748059,
"price": "0.0006244081987727642"
},
{
"hash": "0x1c3b182bb64097b756b03aaa3717663af8064ecf3e05f02f7b6e339785558f1f",
"timestamp": 1703747891,
"price": "0.0006261003865058129"
},
{
"hash": "0xec8964514a2cb94d565c84794cf7125333f2a18e376764fc24c5fd32df09a93e",
"timestamp": 1703747855,
"price": "0.0006274642197158615"
},
{
"hash": "0x4ece3e41b95e78c882ce79ec2fa80bd7eef0503a6d7b759bc3336cc9fc40867b",
"timestamp": 1703747843,
"price": "0.00062797052848499"
},
{
"hash": "0xf4e8eb0cc1661d952dc0e2d5d5ee2b16dd66b5f8a275fd3d148dd9ce53ed7964",
"timestamp": 1703746955,
"price": "0.0006318073557952554"
},
{
"hash": "0xcae75ad1f4b23672972cc793b8dfa97e5c257f368ed3b6d72afb1bcb92444ea5",
"timestamp": 1703746403,
"price": "0.0006311921656383271"
},
{
"hash": "0xbf1eef520c783cd699c1b040b8c1274c90ff4cc76b24994fb95123e3a9b360d5",
"timestamp": 1703746355,
"price": "0.0006303980131723315"
},
{
"hash": "0xddf411be6d49bcddcc306cae01f4a3d7bbee240a295ba18e1a762e3a3290f302",
"timestamp": 1703746319,
"price": "0.000629607991380723"
},
{
"hash": "0x31e8736e4e7eb1f862bfc4a66414859bb49102390bb97736facf4613035a81e5",
"timestamp": 1703745695,
"price": "0.0006261412353574351"
},
{
"hash": "0x6dea226fba19c1da6e96feb49511e1fef3a27cbded505e3d597bb9e5f5121e9e",
"timestamp": 1703745083,
"price": "0.0006301614630221084"
},
{
"hash": "0xc1ae0d5cb6774c9b76c3f005eb136b9fb5951c0d32f1027806d755ff45760b0d",
"timestamp": 1703744891,
"price": "0.000629113433416803"
},
{
"hash": "0x20937932802b6eb955192a589c7e0143127554fa60f05a429dc25f5cc6342f5e",
"timestamp": 1703743655,
"price": "0.0006273380063042033"
},
{
"hash": "0xaf2d9bfae18358fb785d4a7ae8b35099c63777c557e92db96c98bc0b41531071",
"timestamp": 1703743631,
"price": "0.0006255421068541817"
},
{
"hash": "0x161d09fdd5e30165040ebd65832b35337fd608d47e119a139f608b2045410409",
"timestamp": 1703742575,
"price": "0.0006215430273569083"
},
{
"hash": "0xc264388fba6edb499d5846a456217a4ddf0668d156356c8695ab34c6be55ce23",
"timestamp": 1703742515,
"price": "0.0006222533452384632"
}
]
}
}
/gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
Query Parameters
Starting block of the range.
Pool address whose transactions is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&dexId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"transactions": [
{
"transactionHash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
"transactionDetails": {
"blockHash": "0xa870d68aa85ea355176dd1f49912cb0df145a967a8a6789a2e9a9ca659aabfc5",
"blockNumber": "18879055",
"from": "0xcc4ea98876f3ee733712ac64137c34e637fc2dae",
"gas": "203074",
"gasPrice": "30150130093",
"maxFeePerGas": "41820000000",
"maxPriorityFeePerGas": "110000000",
"hash": "0xe02a5ced07a09949bb143486c5d57947d0b904d7ffa620637e2b11a4810ff645",
"input": "0xf305d719000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000e210966f48000000000000000000000000000000000000000000000000000000e0ef3985c30000000000000000000000000000000000000000000000164f0244c4ce3dffe6000000000000000000000000cc4ea98876f3ee733712ac64137c34e637fc2dae00000000000000000000000000000000000000000000000000000000658c7c4b",
"nonce": "212",
"to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
"transactionIndex": "88",
"value": "413589505640828440000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0xc01569d522e3ed0c193fbc1e6cf689d61ab1affdcdba0eab79fa09afe441415f",
"s": "0x4fe253f33af8c7efa878194c1d074b4b4ff662016eb47a7dd0d1948f30b45e73",
"yParity": "0x0"
}
}
]
}
}
/getpoolchartdata
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
GET
https://historicaltrade.api.expand.network/dex/getpoolchartdata
Query Parameters
15 mins(by default), 30 mins, 60 mins, and 90 mins.
Pool address whose transactions is to be fetched.
Sample Request
Copy https://historicaltrade.api.expand.network/dex/getpoolchartdata?dexId=1000&poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&interval=60
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"chartData": {
"18882523 to 18882800": [
{
"open_price": "419005433942909",
"close_price": "419447697581705",
"low_price": "418943818861548",
"high_price": "422263827518504",
"transactions": [
{
"blockNumber": "18882529",
"price": "418986597113367",
"amount": {
"token0": "2400000000",
"token1": "1005567833072081114"
}
},
{
"blockNumber": "18882531",
"price": "421498241454276",
"amount": {
"token0": "679221347",
"token1": "286290603318704585"
}
},
{
"blockNumber": "18882538",
"price": "418975454284176",
"amount": {
"token0": "376508407",
"token1": "157747780864636534"
}
},
{
"blockNumber": "18882543",
"price": "418968454985399",
"amount": {
"token0": "513835000",
"token1": "215280656067422305"
}
},
{
"blockNumber": "18882543",
"price": "418963677671102",
"amount": {
"token0": "93100000",
"token1": "39005518391179607"
}
},
{
"blockNumber": "18882548",
"price": "418960589212921",
"amount": {
"token0": "300000000",
"token1": "125688176763876449"
}
},
{
"blockNumber": "18882560",
"price": "418954948262823",
"amount": {
"token0": "417601922",
"token1": "174956391625965577"
}
},
{
"blockNumber": "18882561",
"price": "418947749154645",
"amount": {
"token0": "498134300",
"token1": "208692243761724622"
}
},
{
"blockNumber": "18882565",
"price": "421805099375960",
"amount": {
"token0": "42147657986",
"token1": "17778097065248708608"
}
}
]
}
]
}
}
}
/getpooltradedata
Get the trade data from the pool within a specified block range, for the specified event type
GET
https://historicaltrade.api.expand.network/dex/getpooltradedata
Query Parameters
Starting block of the range.
Pool address whose data is to be fetched.
Transfer, Swap, Burn or Mint(by default).
Sample Request
Copy https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc&dexId=1000&eventType=Burn
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"transactions": [
{
"blockNumber": "18880403",
"transactionHash": "0x47d3993957a8497a7549276c96b3c18987586075f5882124cfd477fd989cd3fd",
"values": {
"0": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"1": "1596637993",
"2": "671389840781055738",
"3": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"sender": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"amount0": "1596637993",
"amount1": "671389840781055738",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
},
"eventType": "Burn",
"data": {
"data": "0x000000000000000000000000000000000000000000000000000000005f2ac32900000000000000000000000000000000000000000000000009514180c58f96fa",
"topics": [
"0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496",
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
]
}
},
{
"blockNumber": "18879029",
"transactionHash": "0x22c9fcffc57264eb4270f2ecf0d4f23b39a3871adcee89414285f3a1e1f152e2",
"values": {
"0": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"1": "970041191908",
"2": "413293955455183879313",
"3": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"sender": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"amount0": "970041191908",
"amount1": "413293955455183879313",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
},
"eventType": "Burn",
"data": {
"data": "0x000000000000000000000000000000000000000000000000000000e1daf5ede4000000000000000000000000000000000000000000000016679b16c2e259fc91",
"topics": [
"0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496",
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
]
}
}
]
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as the result of swap.
Address of the recipient of the token.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token),
2
for erc20 -> base ("to" address should be of equivalent wrapped token).
By default, 0
.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId":"1000",
"amountIn": "1000000000000000",
"amountOutMin": "0",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1665990894",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "173376"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "173376",
"data": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1000",
"amountIn": "10000000000",
"amountOutMin": "0",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline": "1765990894",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"gas": "273376",
"gasPriority": "high"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "187586",
"data": "0x38ed173900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000356db816602c85e2075774bb77d13995c8bab023000000000000000000000000000000000000000000000000000000006942e1ee00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1000",
"amountIn": "10000000000000",
"amountOutMin": "0",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1701931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "173376",
"gasPriority": "low",
"slippage": "10"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "173376",
"data": "0x38ed1739000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000486999ef3cec9000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000000065716afb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Address of the first token being added.
Address of the second token being added.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1000",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amountADesired": "1000000000000000",
"amountBDesired": "1332066335118442626",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "166978170",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "230000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "230000",
"data": "0xe8e33700000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d84400000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000127c734631fdc0820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000009f3e27a"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1000",
"tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amountADesired": "1000",
"amountBDesired": "997726184637093",
"amountAMin": "0",
"amountBMin": "0",
"poolFees":"3000",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline":"1699965863785",
"gas": "0",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "201790",
"data": "0xe8e33700000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000038b6d3ad182a500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcddc8769"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "1000",
"tokenA": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amountADesired": "1000000",
"amountBDesired": "640706397834636",
"amountAMin": "100",
"amountBMin": "100",
"to": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"deadline": "1712015780705",
"from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"gas": "230000",
"slippage": "5.00001"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65Ae3fa16d6379E72F4B4c2401c1B7C69731",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "230000",
"data": "0xe8e33700000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000246b8153f8d8c000000000000000000000000000000000000000000000000000000000000005f000000000000000000000000000000000000000000000000000000000000005f00000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c697310000000000000000000000000000000000000000000000000000018e9c17ab61"
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Address of the first token being removed.
Address of the second token being removed.
Total amount of liquidity to be removed from the given pool.
Minimum amount of Token A.
Minimum amount of Token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value. By default, 1. 0 <= slippage value <= 10
Sample Request
Copy {
"dexId": "1000",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"liquidity": "20759430672661383",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1669720626",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "420000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "420000",
"data": "0xbaa2abde000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d8440000000000000000000000000000000000000000000000000049c0979afbbb870000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385ea32"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "1000",
"tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amountAMin": "0",
"amountBMin": "0",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline":"1700033844291",
"liquidity":"65051302687488",
"gas": "123444",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "200648",
"data": "0xbaa2abde0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000003b29efc9f30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bd1e9d443"
}
}
Sample Request
With slippage:
Copy {
"dexId": "1000",
"tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"liquidity": "3834508059710445",
"amountAMin": "100",
"amountBMin": "100",
"to": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"deadline": "1669720626",
"from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"gas": "420000",
"slippage": "5.01"
}
Sample Response
With slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"value": "0",
"gas": "420000",
"data": "0xbaa2abde0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000d9f76fac993ed000000000000000000000000000000000000000000000000000000000000005f000000000000000000000000000000000000000000000000000000000000005f0000000000000000000000004970798f8e5a77598ca4da778eb6d12303aeefc9000000000000000000000000000000000000000000000000000000006385ea32"
}
}
Derivative Provides functionality to fetch details across derivative protocol.
Following are the common functions implemented for derivative :-
ERC20 /gettokendetails
Get the name, symbol and decimals of provided token address. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/gettokendetails
Query Parameters
/getuserallowance
Get the amount that the spender is allowed to withdraw on behalf of the owner. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/getuserallowance
Query Parameters
/getuserbalance
Get the balance of the given token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/fungibletoken/getuserbalance
Query Parameters
/historical/transactions
Retrieves all the transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/transactions
Query Parameters
/historical/weth
Retrieves all the WETH transfers for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/weth
Query Parameters
/historical/logs
Retrieves all the logs for the given address in the given range.
GET
https://api.expand.network/fungibletoken/historical/logs
Query Parameters
/approve
Sets amount as the allowance of spender over the user’s tokens. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
POST
https://api.expand.network/fungibletoken/approve
Request Body
/transfer
Moves amount tokens from the user’s account to the recipient. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
POST
https://api.expand.network/fungibletoken/transfer
Request Body
/transferfrom
Transfers tokens from sender to recipient using the allowance mechanism. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
POST
https://api.expand.network/fungibletoken/transferfrom
Request Body
/convertbasetokentowraptoken
Converts base token to wrap token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
POST
https://api.expand.network/fungibletoken/convertbasetokentowraptoken
Request Body
/convertwraptokentobasetoken
Converts wrap token to base token. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Starknet, Base, and zkSync.
POST
https://api.expand.network/fungibletoken/convertwraptokentobasetoken
Request Body
Sample Request
With gasPriority(medium):
Fungible Tokens Provides functionalities to transfer tokens, allows others to transfer tokens on behalf of the token holder, and converts base to wrap token and vice versa.
Following are the common functions implemented for the Fungible Tokens:-
Following is a sequence diagram for approve() process:-
Following is a sequence diagram for transfer() process:-
Following is a sequence diagram for transferFrom() process:-
Following is a sequence diagram for convertBaseTokenToWrapToken() process:-
Following is a sequence diagram for convertWrapTokenToBaseToken() process:-
1inch (Aggregator) /getprice
Returns the best swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
/getliquiditysources
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
GET
https://api.expand.network/dex/getliquiditysources
Query Parameters
/swap
Initiate a swap transaction on the DEX providing best swap quote.
POST
https://api.expand.network/dex/swap
Request Body
Uniswap X /getorders
Returns the details of the specified order.
GET
https://api.expand.network/dex/getorders
Query Parameters
/createorder
Initiate a transaction to generate the order values.
POST
https://api.expand.network/dex/createorder
Request Body
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Trader Joe /getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Sample Request
With gasPriority (medium):
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Balancer v2 Below is the list of tokens we currently support for the mentioned endpoints. We are happy to add support for additional tokens upon request.
Supported Mainnet Token Pairs (For add & remove liquidity)WETH/DAI
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x6B175474E89094C44Da98b954EedeAC495271d0F
wstETH/WETH
0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
BAL/WETH
0xba100000625a3754423978a60c9317c58a424e3D, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
gOHM/DAI/WETH
0x0ab87046fBb341D058F17CBC4c1133F25a20a52f, 0x6B175474E89094C44Da98b954EedeAC495271d0F, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
rETH/WETH
0xae78736Cd615f374D3085123A210448E74Fc6393, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
wstETH/bb-a-USD
0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0, 0xA13a9247ea42D743238089903570127DdA72fE44
STG/bb-a-USD
0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6, 0xA13a9247ea42D743238089903570127DdA72fE44
auraBAL/B-80BAL-20WETH
0x616e8BfA43F920657B3497DBf40D6b1A02D4608d, 0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56
GNO/WETH
0x6810e776880c02933d47db1b9fc05908e5386b96, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
TEMPLE/DAI
0x470EBf5f030Ed85Fc1ed4C2d36B9DD02e77CF1b7, 0x6B175474E89094C44Da98b954EedeAC495271d0F
RPL/rETH
0xd33526068d116ce69f19a9ee46f0bd304f21a51f, 0xae78736cd615f374d3085123a210448e74fc6393
BADGER/WBTC
0x3472a5a71965499acd81997a54bba8d852c6e53d, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
WETH/AKITA
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x3301Ee63Fb29F863f2333Bd4466acb46CD8323E6
AURA/WETH
0xc0c293ce456ff0ed870add98a0828dd4d2903dbf, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
rETH/bb-a-USD
0xae78736Cd615f374D3085123A210448E74Fc6393, 0xa13a9247ea42d743238089903570127dda72fe44
NOTE/WETH
0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
DIGG/WBTC/graviAURA
0x798D1bE841a82a273720CE31c822C61a67a601C3, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xba485b556399123261a5f9c95d413b4f93107407
rETH/BADGER
0xae78736Cd615f374D3085123A210448E74Fc6393, 0x3472A5A71965499acd81997a54BBA8D852C6E53d
COMP/wstETH
0xc00e94cb662c3520282e6f5717214004a7f26888, 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
COW/GNO
0xDEf1CA1fb7FBcDC777520aa7f396b4E015F497aB, 0x6810e776880C02933D47DB1b9fc05908e5386b96
WETH/LINK
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x514910771AF9Ca656af840dff83E8264EcF986CA
Supported Testnet Token Pairs (For add & remove liquidity)USDC/WETH
0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1
wstETH/WETH
0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1
/getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Sample Request
With gasPriority (medium):
PancakeSwap /getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
/gethistoricaltimeseries
Get the historical time series transactions for a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
Query Parameters
/gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
Query Parameters
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Sushiswap /getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
/getpoolindividualliquidity
Returns all user addresses, block numbers, and token position details for a specified pool address.
GET
https://historicallp.api.expand.network/dex/getpoolindividualliquidity
Query Parameters
/gethistoricaltimeseries
Get the historical time series transactions for a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
Query Parameters
/gethistoricaltransactions
Get the historical transactions focusing on swaps associated with a specific pool address.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
Query Parameters
/getpoolchartdata
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
GET
https://historicaltrade.api.expand.network/dex/getpoolchartdata
Query Parameters
/getpooltradedata
Get the trade data from the pool within a specified block range, for the specified event type
GET
https://historicaltrade.api.expand.network/dex/getpooltradedata
Query Parameters
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
of the destination chain.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
of the destination chain.
Refer to the page for details.
Source Chain Id. By default, Ethereum mainnet.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
By default, Ethereum mainnet.
Refer to the page for details.
Refer to the page for details.
Destination chain Id. Refer to the page for details.
Source Chain Id. By default, Ethereum mainnet.
Refer to the page for details.
Refer to the page for details.
Source Chain Id. By default, Ethereum mainnet.
Refer to the page for details.
Refer to the page for details.
Source Chain Id. By default, Ethereum mainnet.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Comma-separated values of Dex Id. Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Users can fetch details for all orders corresponding to the specified address and the specified sub-account number.
Users can fetch details for a specific order using the specified order id.
Users will be able to fetch the fill details of the order.
Users will be able to fetch a list of their assets deposited in dYdX.
Users will be able to fetch their historical profit and loss.
Users will be able to fetch the position of an user.
Users will be able to fetch the details of a subaccount of a user.
User will be able to fetch the details of the transfer transaction.
Copy https://api.expand.network/fungibletoken/gettokendetails?tokenAddress=0xEB1112Ac78D537853150E2a07E8b765E29d3F019
Copy {
"status": 200,
"msg": "success",
"data": {
"symbol": "HASH",
"name": "HASH",
"decimal": "18"
}
}
Copy https://api.expand.network/fungibletoken/getuserallowance?owner=0x6Fb447Ae94F5180254D436A693907a1f57696900&tokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f&spender=0xBA12222222228d8Ba445958a75a0704d566BF2C8
Copy {
"status": 200,
"msg": "success",
"data": {
"allowance": "999000000000000000000"
}
}
Copy https://api.expand.network/fungibletoken/getuserbalance?tokenAddress=0x6B175474E89094C44Da98b954EedeAC495271d0F&address=0x63056E00436Da25BcF48A40dfBbDcc7089351006&chainId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "90344000000000000000"
}
}
Copy https://api.expand.network/fungibletoken/historical/transactions?tokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"blockNumber": "18968825",
"timeStamp": "1704796271",
"hash": "0x6df96285db80a5c1792a056bf9f38c63e9f250572c2f5afac945bcf996a145e5",
"nonce": "21",
"blockHash": "0xe8cf4dda5e648b707ff2837741708176122cb2196559c20c8618debf8c991997",
"from": "0x3f2488a54c8b397525ff85ce5d32ac5f27dd8ce5",
"contractAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
"to": "0x1715a3e4a142d8b698131108995174f37aeba10d",
"value": "193485657300000000000",
"tokenName": "Dai Stablecoin",
"tokenSymbol": "DAI",
"tokenDecimal": "18",
"transactionIndex": "114",
"gas": "216896",
"gasPrice": "12898560151",
"gasUsed": "189283",
"cumulativeGasUsed": "10458631",
"input": "deprecated",
"confirmations": "67",
"methodId": "0xad58bdd1",
"methodSignature": "relayTokens(address,address,uint256)"
},
]
}
}
Copy https://api.expand.network/fungibletoken/historical/weth
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"blockNumber": "17320271",
"timeStamp": "1684824623",
"hash": "0x051aac77f464921c72bb628fea7e1f57663b28e0286d20c69e830498307f15d5",
"nonce": "367",
"blockHash": "0x3dc921095193718262dcf3f07b52f1921351bef675a8617dd6f1badde6093f19",
"from": "0x55d5c232d921b9eaa6b37b5845e439acd04b4dba",
"contractAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"to": "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b",
"value": "449713740022466855",
"tokenName": "Wrapped Ether",
"tokenSymbol": "WETH",
"tokenDecimal": "18",
"transactionIndex": "112",
"gas": "212952",
"gasPrice": "37761736473",
"gasUsed": "149768",
"cumulativeGasUsed": "10771742",
"input": "deprecated",
"confirmations": "1"
}
]
}
}
Copy https://api.expand.network/fungibletoken/historical/logs?tokenAddress=0x6B175474E89094C44Da98b954EedeAC495271d0F&type=Approval
Copy {
"status": 200,
"msg": "success",
"data": {
"logs": [
{
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x000000000000000000000000975f7b8e68e99c04807e94f72d63e98ec21f5ad5",
"0x0000000000000000000000001715a3e4a142d8b698131108995174f37aeba10d"
],
"params": {
"src": "0x975f7b8e68e99c04807e94f72d63e98ec21f5ad5",
"guy": "0x1715a3e4a142d8b698131108995174f37aeba10d",
"wad": "127000000000000000000"
},
"data": "0x000000000000000000000000000000000000000000000006e27aa3200a9c0000",
"blockNumber": "17320089",
"blockHash": "0x39b65a913a44fefa4f1432dc00927839cf8ba6bcbc778afb3effaf5c91a2a5d1",
"timeStamp": "1684822391",
"gasPrice": "37991235385",
"gasUsed": "46158",
"logIndex": "302",
"transactionHash": "0x8b9159d1fc58b9dd33a0f8ebcb6980bca0416c3836bb08771c2cac5737dbadba",
"transactionIndex": "109"
}
]
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1000000000000000000000",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"gas": "100000",
"chainId": "1"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "100000",
"data": "0x095ea7b3000000000000000000000000828b154032950c8ff7cf8085d841723db269605600000000000000000000000000000000000000000000003635c9adc5dea00000"
}
}
Copy {
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1000000000000000000000",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"gas": "100000",
"gasPriority":"medium",
"chainId": "1"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "55277",
"data": "0x095ea7b3000000000000000000000000828b154032950c8ff7cf8085d841723db269605600000000000000000000000000000000000000000000003635c9adc5dea00000"
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1",
"to": "0x3E1Ca9fe2FC3021408d0E869BD3AFb167F889F38",
"gas": "2307200"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "2307200",
"data": "0xa9059cbb0000000000000000000000003e1ca9fe2fc3021408d0e869bd3afb167f889f380000000000000000000000000000000000000000000000000000000000000001"
}
}
Copy {
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1000000000000",
"to": "0x3E1Ca9fe2FC3021408d0E869BD3AFb167F889F38",
"gas": "2307200",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "61884",
"data": "0xa9059cbb0000000000000000000000003e1ca9fe2fc3021408d0e869bd3afb167f889f38000000000000000000000000000000000000000000000000000000e8d4a51000"
}
}
Copy {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"tokenAddress": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
"amount": "10000000000000",
"reciever":"0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "390000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "2307200",
"data": "0x23b872dd00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000094a5e554dc172a472421291ae6e6c0e3c150286f0000000000000000000000000000000000000000000000000000000000000046"
}
}
Copy {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"tokenAddress": "0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",
"amount": "10000000000000",
"reciever":"0x56D2208EfD27Fe9C67e3879DeBCe35833B9D4cC7",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "390000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "62126",
"data": "0x23b872dd000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a00000000000000000000000094a5e554dc172a472421291ae6e6c0e3c150286f0000000000000000000000000000000000000000000000000000000000000046"
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"gas": "2307200",
"chainId": "1",
"amount":"10"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0xa",
"gas": "2307200",
"data": "0xd0e30db0"
}
}
Copy {
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"gas": "2307200",
"gasPriority":"medium",
"chainId": "1",
"amount":"10"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0xa",
"gas": "31058",
"data": "0xd0e30db0"
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "5",
"gas": "2307200",
"chainId": "1"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "2307200",
"data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000000005"
}
}
Copy {
"from": "0xE4c0ddb2695415466be83f2A99b44b043CB55590",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "100000000000",
"gas": "2307200",
"gasPriority":"medium",
"chainId": "1"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xE4c0ddb2695415466be83f2A99b44b043CB55590",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "43189",
"data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000174876e800"
}
}
Get the name, symbol and decimals of provided token address.
Get the amount that the spender is allowed to withdraw on behalf of the owner.
Get the balance of the given token for the provided public address.
Retrieves all the transfers for the given address in the given range.
Retrieves all the WETH transfers for the given address in the given range.
Retrieves all the logs for the given address in the given range.
Sets amount as the allowance of spender over the user's tokens.
Moves amount tokens from the user’s account to the recipient.
Moves amount tokens from sender to recipient using the allowance mechanism.
convertbasetokentowraptoken
Converts base token to wrap token.
convertwraptokentobasetoken
Converts wrap token to base token.
Copy https://api.expand.network/dex/getprice?path=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE%2C0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=1000000000000000000&dexId=1700
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "1000000000000000000",
"path": [
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"1000000000000000000",
"1987156918504513709869"
]
}
}
Copy https://api.expand.network/dex/getliquiditysources?dexId=1702
Copy {
"status": 200,
"msg": "success",
"data": [
"Aave",
"Curve",
"Curve V2",
"Kyber DMM",
"1inch Limit Order Protocol V2",
"1inch Limit Order Protocol V3",
"SushiSwap",
"Baguette",
"Canary",
"ELK",
"Lydia",
"OliveSwap",
"Pangolin",
"TraderJoe",
"Yetti",
"Thorus",
"Hakuswap",
"Platypus",
"WOOFi",
"Axial",
"ElasticSwap",
"GMX",
"Nerve Finance",
"RadioShack",
"KyberSwap Elastic",
"SwapSicle",
"Kyber DMM Static",
"Aave V3",
"TraderJoe V2",
"DODO",
"WOOFi V2",
"Trident",
"TraderJoe V2.1",
"Nomiswap-epcs",
"Uniswap V3",
"Balancer V2",
"PMM11",
"Wombat"
]
}
Copy {
"dexId": "1700",
"amountIn": "100000000000000",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"gas": "873376",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x356db816602c85e2075774bb77d13995c8bab023",
"to": "0x1111111254eeb25477b68fb85ed929f73a960582",
"data": "0x0502b1c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000002b88d0919cc91530000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000180000000000000003b6d0340c3d03e4f041fd4cd388c549ee2a29a9e5075882f8b1ccac8",
"value": "100000000000000",
"gas": "873376",
"gasPrice": "25001512486"
}
}
Copy {
"dexId": "1700",
"amountIn": "100000000000000",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"gas": "873376",
"gasPriority": "medium",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x356db816602c85e2075774bb77d13995c8bab023",
"to": "0x1111111254eeb25477b68fb85ed929f73a960582",
"data": "0x0502b1c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000002b88d0919cc91530000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000180000000000000003b6d0340c3d03e4f041fd4cd388c549ee2a29a9e5075882f8b1ccac8",
"value": "100000000000000",
"gas": "273379",
"gasPrice": "25001512486"
}
}
Copy {
"dexId": "1700",
"amountIn": "100000000000000",
"path": [
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"gas": "873376",
"slippage": "10",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x356db816602c85e2075774bb77d13995c8bab023",
"to": "0x1111111254eeb25477b68fb85ed929f73a960582",
"data": "0x0502b1c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005af3107a400000000000000000000000000000000000000000000000000002d72efff94823a90000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000180000000000000003b6d0340a478c2975ab1ea89e8196811f51a7b7ade33eb118b1ccac8",
"value": "100000000000000",
"gas": "873376",
"gasPrice": "50274668539"
}
}
Copy https://api.expand.network/dex/getorders?status=filled&dexId=1900&orderHashes=0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8%2C0xa553e8984c77d9a1c784aea07560add932d91b8812b737573e209223aeea7ff6%2C0x63138358f0b8a02353f954aa19bfb806d444f7c8f4b30791ab879746f6a7803c&filler=0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa&sort=desc
Copy {
"status": 200,
"msg": "success",
"data": {
"orders": [
{
"outputs": [
{
"recipient": "0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa",
"startAmount": "591320512",
"endAmount": "478679792",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
{
"recipient": "0x27213e28d7fda5c57fe9e5dd923818dbccf71c47",
"startAmount": "888313",
"endAmount": "719098",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
],
"encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e078990000000000000000000000000000000000000000000000000000000065e078d5000000000000000000000000ff8ba4d1fc3762f6154cc942ccf30049a2a0cec60000000000000000000000000000000000000000000000000000000000000064000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000028feb7595a81000000000000000000000000000000000000000000000000000028feb7595a8100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000b07508e0de659b7d6dd550a1cf1a796fec4fc9aa04683280a4602321de3951e71e985d2bdca265de130a03b9ed0c7e2db0cfb3030000000000000000000000000000000000000000000000000000000065e078e1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000233ed5c0000000000000000000000000000000000000000000000000000000001c8812f0000000000000000000000000b07508e0de659b7d6dd550a1cf1a796fec4fc9aa000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000d8df900000000000000000000000000000000000000000000000000000000000af8fa00000000000000000000000027213e28d7fda5c57fe9e5dd923818dbccf71c47",
"signature": "0xf5555c296173a78d3d21857c118e2f010c93b46784bbcec2f24617bc92d55cbd08b85ebe947914fa51c624e59d5064ca9185f29a43cdd57ab47acca4ab86c6f11c",
"input": {
"endAmount": "184625000000000000",
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"startAmount": "184625000000000000"
},
"orderStatus": "expired",
"createdAt": 1709209713,
"quoteId": "5a7a0078-1ce8-4299-8efe-27188b97eb2d",
"chainId": 1,
"orderHash": "0x63138358f0b8a02353f954aa19bfb806d444f7c8f4b30791ab879746f6a7803c",
"type": "Dutch"
},
{
"outputs": [
{
"recipient": "0x87470d42336085c026f8820ec2c045dac35fbdbc",
"startAmount": "204570086190905200",
"endAmount": "170183988404523934",
"token": "0x0000000000000000000000000000000000000000"
},
{
"recipient": "0x37a8f295612602f2774d331e562be9e61b83a327",
"startAmount": "307316103441520",
"endAmount": "255659471814507",
"token": "0x0000000000000000000000000000000000000000"
}
],
"encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e07b980000000000000000000000000000000000000000000000000000000065e07bd4000000000000000000000000beb5fd030ffb0fbc95d68113c1c796eff65526d70000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000002da83b80000000000000000000000000000000000000000000000000000000002da83b8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000087470d42336085c026f8820ec2c045dac35fbdbc046832f75942e709d73e7d7270f9bb37da4abf2ea444079292430d9aac5311020000000000000000000000000000000000000000000000000000000065e07be0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d6c768d7147770000000000000000000000000000000000000000000000000025c9d6f8f4f939e00000000000000000000000087470d42336085c026f8820ec2c045dac35fbdbc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000117809b2dec700000000000000000000000000000000000000000000000000000e8855c003f6b00000000000000000000000037a8f295612602f2774d331e562be9e61b83a327",
"signature": "0x3e10ba4612a444595daae894318347655618ba2723f593bd17d5330073fd62766def626c700dc23f4d2f9a6e6b715c8c6dbf84239448047ac4dce8b98086f7d11c",
"input": {
"endAmount": "766000000",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"startAmount": "766000000"
},
"orderStatus": "expired",
"createdAt": 1709210480,
"quoteId": "8d95324e-b5f3-4a8d-8c96-8382098b300f",
"chainId": 1,
"orderHash": "0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8",
"type": "Dutch"
},
{
"outputs": [
{
"recipient": "0xcbd78860218160f4b463612f30806807fe6e804c",
"startAmount": "121834072160578522",
"endAmount": "92076727033605479",
"token": "0x0000000000000000000000000000000000000000"
},
{
"recipient": "0x37a8f295612602f2774d331e562be9e61b83a327",
"startAmount": "183025646710934",
"endAmount": "138322574412026",
"token": "0x0000000000000000000000000000000000000000"
}
],
"encodedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065e078d10000000000000000000000000000000000000000000000000000000065e0790d0000000000000000000000007321ac264b89254ea749a0657d41a9a2ebf8e3da0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000001c0a67f4000000000000000000000000000000000000000000000000000000001c0a67f400000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000cbd78860218160f4b463612f30806807fe6e804c04683296acee06afe8267e927b719b6a9b951b8173321e70415204fa6e5bed020000000000000000000000000000000000000000000000000000000065e07919000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b0d77170ababda00000000000000000000000000000000000000000000000001471f4b9eeb2d67000000000000000000000000cbd78860218160f4b463612f30806807fe6e804c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a675faa8309600000000000000000000000000000000000000000000000000007dcdbbe988fa00000000000000000000000037a8f295612602f2774d331e562be9e61b83a327",
"signature": "0xb61c68104d8dec8e6e22c33df473983e48db079f3e4cf572437bbcad0aeda7732c5e1f7a270031bca4145793b3b558f549fdb08b619209ffc79053a644ab5bbc1b",
"input": {
"endAmount": "470444020",
"token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"startAmount": "470444020"
},
"orderStatus": "expired",
"createdAt": 1709209767,
"quoteId": "91126fe6-e306-4f45-b8c8-6505bb5ba353",
"chainId": 1,
"orderHash": "0xa553e8984c77d9a1c784aea07560add932d91b8812b737573e209223aeea7ff6",
"type": "Dutch"
}
]
}
}
Copy {
"dexId": "1900",
"amountIn": "100000",
"path": [
"0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1"
],
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"decayStartTime": "1707110948",
"decayEndTime": "1707113948",
"amountOutMin": "10000000000",
"deadline": "1707313948"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"domain": {
"name": "Permit2",
"chainId": "1",
"verifyingContract": "0x000000000022d473030f116ddee9f6b43ac78ba3"
},
"types": {
"PermitWitnessTransferFrom": [
{
"name": "permitted",
"type": "TokenPermissions"
},
{
"name": "spender",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "witness",
"type": "ExclusiveDutchOrder"
}
],
"TokenPermissions": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"ExclusiveDutchOrder": [
{
"name": "info",
"type": "OrderInfo"
},
{
"name": "decayStartTime",
"type": "uint256"
},
{
"name": "decayEndTime",
"type": "uint256"
},
{
"name": "exclusiveFiller",
"type": "address"
},
{
"name": "exclusivityOverrideBps",
"type": "uint256"
},
{
"name": "inputToken",
"type": "address"
},
{
"name": "inputStartAmount",
"type": "uint256"
},
{
"name": "inputEndAmount",
"type": "uint256"
},
{
"name": "outputs",
"type": "DutchOutput[]"
}
],
"OrderInfo": [
{
"name": "reactor",
"type": "address"
},
{
"name": "swapper",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "additionalValidationContract",
"type": "address"
},
{
"name": "additionalValidationData",
"type": "bytes"
}
],
"DutchOutput": [
{
"name": "token",
"type": "address"
},
{
"name": "startAmount",
"type": "uint256"
},
{
"name": "endAmount",
"type": "uint256"
},
{
"name": "recipient",
"type": "address"
}
]
},
"values": {
"permitted": {
"token": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"amount": {
"type": "BigNumber",
"hex": "0x0186a0"
}
},
"spender": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"nonce": {
"type": "BigNumber",
"hex": "0x01"
},
"deadline": "1707313948",
"witness": {
"info": {
"reactor": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"swapper": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"nonce": {
"type": "BigNumber",
"hex": "0x01"
},
"deadline": "1707313948",
"additionalValidationContract": "0x0000000000000000000000000000000000000000",
"additionalValidationData": "0x"
},
"decayStartTime": "1707110948",
"decayEndTime": "1707113948",
"exclusiveFiller": "0x0000000000000000000000000000000000000000",
"exclusivityOverrideBps": {
"type": "BigNumber",
"hex": "0x00"
},
"inputToken": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"inputStartAmount": {
"type": "BigNumber",
"hex": "0x0186a0"
},
"inputEndAmount": {
"type": "BigNumber",
"hex": "0x0186a0"
},
"outputs": [
{
"token": "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1",
"startAmount": {
"type": "BigNumber",
"hex": "0x02363e7f00"
},
"endAmount": {
"type": "BigNumber",
"hex": "0x02363e7f00"
},
"recipient": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
]
}
},
"serializedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065c072240000000000000000000000000000000000000000000000000000000065c07ddc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000a15e551c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c100000000000000000000000000000000000000000000000000000002363e7f0000000000000000000000000000000000000000000000000000000002363e7f00000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
Copy {
"dexId": "1900",
"amountIn": "100000",
"path": [
"0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1"
],
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"decayStartTime": "1707110948",
"decayEndTime": "1707113948",
"amountOutMin": "10000000000",
"slippage": "5",
"deadline": "1707313948"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"domain": {
"name": "Permit2",
"chainId": "1",
"verifyingContract": "0x000000000022d473030f116ddee9f6b43ac78ba3"
},
"types": {
"PermitWitnessTransferFrom": [
{
"name": "permitted",
"type": "TokenPermissions"
},
{
"name": "spender",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "witness",
"type": "ExclusiveDutchOrder"
}
],
"TokenPermissions": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"ExclusiveDutchOrder": [
{
"name": "info",
"type": "OrderInfo"
},
{
"name": "decayStartTime",
"type": "uint256"
},
{
"name": "decayEndTime",
"type": "uint256"
},
{
"name": "exclusiveFiller",
"type": "address"
},
{
"name": "exclusivityOverrideBps",
"type": "uint256"
},
{
"name": "inputToken",
"type": "address"
},
{
"name": "inputStartAmount",
"type": "uint256"
},
{
"name": "inputEndAmount",
"type": "uint256"
},
{
"name": "outputs",
"type": "DutchOutput[]"
}
],
"OrderInfo": [
{
"name": "reactor",
"type": "address"
},
{
"name": "swapper",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "additionalValidationContract",
"type": "address"
},
{
"name": "additionalValidationData",
"type": "bytes"
}
],
"DutchOutput": [
{
"name": "token",
"type": "address"
},
{
"name": "startAmount",
"type": "uint256"
},
{
"name": "endAmount",
"type": "uint256"
},
{
"name": "recipient",
"type": "address"
}
]
},
"values": {
"permitted": {
"token": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"amount": {
"type": "BigNumber",
"hex": "0x0186a0"
}
},
"spender": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"nonce": {
"type": "BigNumber",
"hex": "0x01"
},
"deadline": "1707313948",
"witness": {
"info": {
"reactor": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"swapper": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"nonce": {
"type": "BigNumber",
"hex": "0x01"
},
"deadline": "1707313948",
"additionalValidationContract": "0x0000000000000000000000000000000000000000",
"additionalValidationData": "0x"
},
"decayStartTime": "1707110948",
"decayEndTime": "1707113948",
"exclusiveFiller": "0x0000000000000000000000000000000000000000",
"exclusivityOverrideBps": {
"type": "BigNumber",
"hex": "0x00"
},
"inputToken": "0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb",
"inputStartAmount": {
"type": "BigNumber",
"hex": "0x0186a0"
},
"inputEndAmount": {
"type": "BigNumber",
"hex": "0x0186a0"
},
"outputs": [
{
"token": "0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1",
"startAmount": {
"type": "BigNumber",
"hex": "0x02363e7f00"
},
"endAmount": {
"type": "BigNumber",
"hex": "0x02363e7f00"
},
"recipient": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}
]
}
},
"serializedOrder": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065c072240000000000000000000000000000000000000000000000000000000065c07ddc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c4000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000a15e551c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c100000000000000000000000000000000000000000000000000000002363e7f0000000000000000000000000000000000000000000000000000000002363e7f00000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994"
}
}
Copy {
"dexId": "1900",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "173376",
"signature": "0xc2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b",
"serializedOrder": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"gas": "173376",
"value": "0",
"data": "0x3f62192e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000041c2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b00000000000000000000000000000000000000000000000000000000000000"
}
}
Copy {
"dexId": "1900",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "173376",
"gasPriority": "low",
"signature": "0xc2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b",
"serializedOrder": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
"gas": "173376",
"value": "0",
"data": "0x3f62192e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000006515b768000000000000000000000000000000000000000000000000000000006516e43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000006000da47483062a0d734ba3dc7576ce6a0b645c400000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b0c82c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000041c2f9557dcc27ff17ecf91211a6a0af6ead44acf6a7d7322d0f40afefca596a843b5d95698332867a11eb3a3f9984ac3639581b765138fc0cc88322a889dffd1d1b00000000000000000000000000000000000000000000000000000000000000",
"gasPrice": "44261131336"
}
}
Copy https://api.expand.network/dex/getprice?dexId=2100&path=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7%2C0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB&amountIn=1000000000000000000
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "1000000000000000000",
"path": [
"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"
],
"amountsOut": "57798768565384314383"
}
}
Copy https://api.expand.network/dex/getuserliquidity?tokenA=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7&tokenB=0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E&address=0x41917217DD34CEAd24Daa02b4Ca07bDE9E5FcD1d&dexId=2100&id=8376649
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0xD446eb1660F766d533BeCeEf890Df7A69d26f7d1",
"liquidity": "0",
"tokenA": "0",
"tokenB": "0"
}
}
Copy https://api.expand.network/dex/getpoolliquidity?dexId=2100&poolAddress=0xD446eb1660F766d533BeCeEf890Df7A69d26f7d1&id=8376653
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "18984902854076810313408139190182580659015940571489"
}
}
Copy https://api.expand.network/dex/gettokenliquidity?dexId=2100&poolAddress=0x9f8973FB86b35C307324eC31fd81Cf565E2F4a63
Copy {
"status": 200,
"msg": "success",
"data": {
"JOE": "3227032040427534312517737",
"WAVAX": "41007188287627115196537"
}
}
Copy {
"dexId": "2100",
"amountIn": "10000000000",
"amountOutMin": "100",
"path": [
"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
],
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1753156839",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "100000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "100000",
"data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"
}
}
Copy {
"dexId": "2100",
"amountIn": "10000000000",
"amountOutMin": "100",
"path": [
"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
],
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1753156839",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "100000",
"gasPriority": "high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "179199",
"data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"
}
}
Copy {
"dexId": "2100",
"amountIn": "10000000000",
"amountOutMin": "100",
"path": [
"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
],
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1753156839",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "100000",
"slippage": "6"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "100000",
"data": "0x2a443fae00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e599400000000000000000000000000000000000000000000000000000000687f0ce7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountA": "10000000000000000",
"amountB": "1000",
"amountAMin": "1000000000",
"amountBMin": "100",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1706678170",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "530000",
"strategy": "bidask"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "530000",
"data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000007fd0f9000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountA": "10000000000000000",
"amountB": "1000",
"amountAMin": "1000000000",
"amountBMin": "100",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1706678170",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "530000",
"strategy": "bidask",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "541453",
"data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000389fd980000000000000000000000000000000000000000000000000000000000000005f00000000000000000000000000000000000000000000000000000000007fd0fd000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountA": "10000000000000000",
"amountB": "1000",
"amountAMin": "1000000000",
"amountBMin": "100",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1706678170",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "530000",
"strategy": "bidask",
"slippage": "5"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "530000",
"data": "0xa3c7271a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000007fd0f9000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065b9d79a000000000000000000000000000000000000000000000000000000000000000bfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000001aa535d3d0c000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountBMin": "150",
"amountAMin": "9140195223753",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1705994811",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "0",
"binStep": "20",
"ids": [
"8375816",
"8375817",
"8375818",
"8375819",
"8375820",
"8375821",
"8375822",
"8375823",
"8375824",
"8375825",
"8375826"
],
"amounts": [
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6092234575456602778057561670181153099728",
"27680318192948304012362129290692653566283",
"49451196782276463859932823798226771515026",
"49649387794231952910105025177550757137373",
"49747539066384995844387966236176975326734",
"49845022333457547462772063936365946907208",
"49759874534344782452838208519883050222759"
]
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "0",
"data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000008501e16e8c90000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountBMin": "150",
"amountAMin": "9140195223753",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"deadline": "1705994811",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "0",
"gasPriority": "high",
"binStep": "20",
"ids": [
"8375816",
"8375817",
"8375818",
"8375819",
"8375820",
"8375821",
"8375822",
"8375823",
"8375824",
"8375825",
"8375826"
],
"amounts": [
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6092234575456602778057561670181153099728",
"27680318192948304012362129290692653566283",
"49451196782276463859932823798226771515026",
"49649387794231952910105025177550757137373",
"49747539066384995844387966236176975326734",
"49845022333457547462772063936365946907208",
"49759874534344782452838208519883050222759"
]
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "466268",
"data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000008501e16e8c90000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7"
}
}
Copy {
"dexId": "2100",
"tokenA": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
"tokenB": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
"amountBMin": "150",
"amountAMin": "9140195223753",
"to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"slippage": "7",
"deadline": "1705994811",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"gas": "0",
"binStep": "20",
"ids": [
"8375816",
"8375817",
"8375818",
"8375819",
"8375820",
"8375821",
"8375822",
"8375823",
"8375824",
"8375825",
"8375826"
],
"amounts": [
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6125082604576892342340742933771827806208",
"6092234575456602778057561670181153099728",
"27680318192948304012362129290692653566283",
"49451196782276463859932823798226771515026",
"49649387794231952910105025177550757137373",
"49747539066384995844387966236176975326734",
"49845022333457547462772063936365946907208",
"49759874534344782452838208519883050222759"
]
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "43114",
"from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
"to": "0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",
"value": "0",
"gas": "0",
"data": "0xc22159b6000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000007bb2639254a000000000000000000000000000000000000000000000000000000000000008c000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e59940000000000000000000000000000000000000000000000000000000065af6a3b000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000007fce0800000000000000000000000000000000000000000000000000000000007fce0900000000000000000000000000000000000000000000000000000000007fce0a00000000000000000000000000000000000000000000000000000000007fce0b00000000000000000000000000000000000000000000000000000000007fce0c00000000000000000000000000000000000000000000000000000000007fce0d00000000000000000000000000000000000000000000000000000000007fce0e00000000000000000000000000000000000000000000000000000000007fce0f00000000000000000000000000000000000000000000000000000000007fce1000000000000000000000000000000000000000000000000000000000007fce1100000000000000000000000000000000000000000000000000000000007fce12000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000011e749b320370f2ffb725d59b83e134fd000000000000000000000000000000051585b5e27eade350ea520385aa349494b0000000000000000000000000000009152f2111edd2c814572e815769b40169200000000000000000000000000000091e80c44706e125e67a2ac3942edf58bdd0000000000000000000000000000009231e383c6d15f59c343db6e36486aee0e000000000000000000000000000000927b3a1bebb9d6fdc33c4f660035ceaa48000000000000000000000000000000923b2b3d4d8e1fe24bae173e9ca7a884a7"
}
}
Copy https://api.expand.network/dex/getprice?dexId=1400&path=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=10000000000000000000
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"10000000000000000000",
"15680384060944301565791"
]
}
}
Copy https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1400
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x0b09deA16768f0799065C475bE02919503cB2a35",
"liquidity": "29039335004710280",
"tokenA": "929003303177645.5",
"tokenB": "1036081671349582300"
}
}
Copy https://api.expand.network/dex/getpoolliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "21939886662955269687535"
}
}
Copy https://api.expand.network/dex/gettokenliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
Copy {
"status": 200,
"msg": "success",
"data": {
"wstETH": "241859600516947967997",
"bb-a-USD": "503400928836915874116420"
}
}
Copy https://api.expand.network/dex/getliquidityholders?dexId=1400&poolAddress=0x1b65fe4881800B91d4277ba738b567CbB200A60d
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": 44
}
}
Copy https://api.expand.network/dex/getindividualposition?address=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d&dexId=1400&poolAddresses=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "0",
"poolAddresses": {
"WETHAURA": {
"0xc29562b045D80fD77c69Bec09541F5c16fe20d9d": "0"
}
}
}
}
Copy {
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1668973383"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "800000",
"data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002c0334c96d792e4b26b841d28f53235281cec1be1f200020000000000000000038a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000b9bd68a77ccf8314c0dfe51bc291c77590c4e9e600020000000000000000038500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000e0fcbf4d98f0ad982db260f86cf28b49845403c500000000000000000000050400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000060d604890feaa0b5460b28a424407c24fe89374a0000000000000000000004fc00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000ae78736cd615f374d3085123a210448e74fc6393000000000000000000000000a13a9247ea42d743238089903570127dda72fe440000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000060d604890feaa0b5460b28a424407c24fe89374a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff29a1"
}
}
Copy {
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"gasPriority": "medium",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"deadline": "1668973383"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "213628",
"data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000007600000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000056042ed016f826165c2e5976fe5bc3df540c5ad0af700000000000000000000058b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000025accb7943fd73dda5e23ba6329085a3c24bfb6a00020000000000000000038700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a13a9247ea42d743238089903570127dda72fe4400000000000000000000035d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000033700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb20000000000000000000000fe00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000070b7d3b3209a59fb0400e17f67f3ee8c37363f4900020000000000000000018f00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000ae78736cd615f374d3085123a210448e74fc63930000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000a13a9247ea42d743238089903570127dda72fe44000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000000002d60b84491589974263d922d9cc7a3152618ef6000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000201000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
}
}
Copy {
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1668973383",
"slippage": "5"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "800000",
"data": "0x945bcec900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000076000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000056042ed016f826165c2e5976fe5bc3df540c5ad0af700000000000000000000058b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000025accb7943fd73dda5e23ba6329085a3c24bfb6a00020000000000000000038700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a13a9247ea42d743238089903570127dda72fe4400000000000000000000035d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000033700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb20000000000000000000000fe00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000070b7d3b3209a59fb0400e17f67f3ee8c37363f4900020000000000000000018f00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000ae78736cd615f374d3085123a210448e74fc63930000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000a13a9247ea42d743238089903570127dda72fe44000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000000002d60b84491589974263d922d9cc7a3152618ef6000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001fd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
}
}
Copy {
"dexId": "1400",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"amountIn": ["0","100000000"],
"amountOut": "2331262690208301876",
"fromInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0xb95cac289f1f16b025f703ee985b58ced48daf93dad2f7ef00020000000000000000006300000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c1000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000205a4f10affcc334000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
Copy {
"dexId": "1400",
"amountIn": [
"1000000000000000000",
"1000000000000000000"
],
"amountOut": "0",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"deadline": "1710209834351",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"gas": "273376",
"fromInternalBalance": false,
"gasPriority": "low"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "223199",
"data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a7640000"
}
}
Copy {
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountIn": [
"0",
"100000000"
],
"amountOut": "2331262690208301876",
"fromInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "7.02"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000001e14e409521f6600000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
Copy {
"dexId": "1400",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"amountOut": ["0","100000000"],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0x8bdb39139f1f16b025f703ee985b58ced48daf93dad2f7ef00020000000000000000006300000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c1000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000021af98a4ace1d115000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
Copy {
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountOut": [
"100",
"100000000"
],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "362868",
"data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe0000000000000000000000000000000000000000000000000000000000094bbe00000000000000000000000000000000000000000000000002d01daa7e99eb02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018bf6344a84000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000094bbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d900000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000"
}
}
Copy {
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountOut": [
"100",
"100000000"
],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "6.01"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0x8bdb39130b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000059a2c700000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000021af98a4ace1d115"
}
}
Copy https://api.expand.network/dex/getprice?dexId=1200&path=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c,0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82&amountIn=10000000000000000000
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
],
"amountsOut": [
"10000000000000000000",
"771915564765835452853"
]
}
}
Copy https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1200&tokenA=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c&tokenB=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x0eD7e52944161450477ee417DE9Cd3a859b14fD0",
"liquidity": "0",
"tokenA": "0",
"tokenB": "0"
}
}
Copy https://api.expand.network/dex/getpoolliquidity?dexId=1200&poolAddress=0x460b4193Ec4C1a17372Aa5FDcd44c520ba658646
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "2790235114583215"
}
}
Copy https://api.expand.network/dex/gettokenliquidity?dexId=1200&poolAddress=0x460b4193Ec4C1a17372Aa5FDcd44c520ba658646
Copy {
"status": 200,
"msg": "success",
"data": {
"CTK": "73040589498",
"WBNB": "163589136764841979343"
}
}
Copy https://api.expand.network/dex/getliquidityholders?dexId=1200&poolAddress=0x460b4193Ec4C1a17372Aa5FDcd44c520ba658646
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "40"
}
}
Copy https://api.expand.network/dex/getindividualposition?poolAddresses=0xC05654C66756eBB82c518598c5f1ea1a0199a563&address=0x8f295a22a4a5ef346192d2b2d4c483d9f76b2a67&poolSize=1000&dexId=1200
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "0",
"poolAddresses": {
"USTmAMZN": {
"0xC05654C66756eBB82c518598c5f1ea1a0199a563": "0"
}
}
}
}
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1200&poolAddress=0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae&startBlock=18675000&endBlock=18675639
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDT/WBNB",
"priceData": [
{
"hash": "0xa4e7be3c64891136a667454270401c96862b530242a8b66d2935512d26eea240",
"timestamp": 1655192852,
"price": "0.004358852942015572"
},
{
"hash": "0xfc445916adc369b5a7717808b2d2380407aa707d7b81bcda9705b9ac0cc43caf",
"timestamp": 1655192852,
"price": "0.004337034359420212"
},
{
"hash": "0x05c2f77bc5157eba0db611c967955be3e54c15abf61a6e655010449336291651",
"timestamp": 1655192852,
"price": "0.004337047750174369"
},
{
"hash": "0x91adb38cf7f98fc03960c26ec4085c771561475788990af71dfa9012975a4d4d",
"timestamp": 1655192852,
"price": "0.004337070125743882"
},
{
"hash": "0xd0e91cd038b18db3ea774d25375143e920613e18229cc6f1a41255b276c54eff",
"timestamp": 1655192852,
"price": "0.004358845309343015"
},
{
"hash": "0xbcbd869b9279b615fe448cceb49658effd9a200e277edeb2739744b93f65f23d",
"timestamp": 1655192849,
"price": "0.0043588399027473515"
},
{
"hash": "0x454ebac31c3be6ea198b44a50ae2ca51ee6e5c944a2de0602a67b9ec08bcdbd2",
"timestamp": 1655192849,
"price": "0.004358806972252251"
},
{
"hash": "0xdf459434fd3742280d7974148d081f6299574b5157f84f157b21c10085fcf8e5",
"timestamp": 1655192849,
"price": "0.004358688622314105"
},
{
"hash": "0x8361faaf2587cdec84f2a0ea41242d001b5f929d890051b602d7de4eeb9a497c",
"timestamp": 1655192849,
"price": "0.0043368340207808895"
},
{
"hash": "0x0be5699c728432639245b5a6c4695438bfe3224e4eec2b327dab1c45eee6710f",
"timestamp": 1655192849,
"price": "0.004336857766910803"
},
{
"hash": "0xc848656fe95f61858d8ff8c4910bc5b69e198653ebc21034b2ae045d65ac0521",
"timestamp": 1655192846,
"price": "0.004358629672082426"
},
{
"hash": "0x791aae590fefadb4fb3422a216aed0e55b271df12062291aebc3e53745388f23",
"timestamp": 1655192846,
"price": "0.004336885209614627"
},
{
"hash": "0xf948b7e4479f12509de652876faa6ad6ff80e9b93ed7c13d30bb879dbce71095",
"timestamp": 1655192846,
"price": "0.00433692364846471"
},
{
"hash": "0x2d15e55b576aa93dc56e2c0cb40f39603ba3bfea7fd8f8127f3703ef19037dbf",
"timestamp": 1655192846,
"price": "0.004336941452759448"
},
{
"hash": "0xda519c4ad1ac81eef91d811070c2ce7aaaf73c26130fff0c2d75e4060320219c",
"timestamp": 1655192846,
"price": "0.0043369887652104176"
},
{
"hash": "0x23aff53216899aa1487850ea5f5bf612809a0e54f9249038a59d22df5b3479d0",
"timestamp": 1655192843,
"price": "0.004337022248686662"
},
{
"hash": "0x6578930cb092f99ebc02e0d953c7af541376bdd032b9ba0f451836c14ae9a052",
"timestamp": 1655192843,
"price": "0.004358738297104802"
},
{
"hash": "0x4f7f69ece57edb492c9bc3843b937e5738e6c28b24a2932b7587a2900b2cdb4d",
"timestamp": 1655192843,
"price": "0.004358637548123467"
},
{
"hash": "0xd6569ff1abc750321dd683d2b9ce0d7b6f0d1dae7905e206a1d9b75315f425ac",
"timestamp": 1655192831,
"price": "0.00435856778887612"
},
{
"hash": "0x798aa48de7896143e1626e60150c67692792f0b55667e697af6df4fdb8f505ab",
"timestamp": 1655192831,
"price": "0.004336801456985259"
},
{
"hash": "0x798aa48de7896143e1626e60150c67692792f0b55667e697af6df4fdb8f505ab",
"timestamp": 1655192831,
"price": "0.004336801501292449"
},
{
"hash": "0xbb9864acf695370b923afc0129311e66b8acf069bddcd8e9c33b32cefa793a11",
"timestamp": 1655192831,
"price": "0.0043368030469385695"
},
{
"hash": "0x1d2889468b253063a8064379b449d4c832dd711643822e00b77c1a7faa6ee12d",
"timestamp": 1655192831,
"price": "0.004358566285450221"
},
{
"hash": "0x11c01dafcd48e5dda30fc69a49ec88432a891b195227c32506e9748f7d3bff72",
"timestamp": 1655192831,
"price": "0.004336847740684698"
},
{
"hash": "0x487ec3d3d56d518067fe0389bb10ab94f378e78f97919c5d6598a6a68eed8d25",
"timestamp": 1655192831,
"price": "0.0043608408925375165"
},
{
"hash": "0xf4ebb66455d4a7cad46aec25fc8685e7910494d46ff6bda3a1951182d879194b",
"timestamp": 1655192831,
"price": "0.004336938355279746"
},
{
"hash": "0xdb3670b569d0a9ee510cbcdf7aabc88b600503c094770204ae67e3c3e3b7114a",
"timestamp": 1655192828,
"price": "0.0043587619240398195"
},
{
"hash": "0xe127e43a7a0bf909779bf022f271cbce881bde0b91cbec2e2a45580f086c8d17",
"timestamp": 1655192828,
"price": "0.004337185440945262"
},
{
"hash": "0xb7e91a51e4e4dbaac8e9c5020a55573b34733d58f94c75c0b558d329553920de",
"timestamp": 1655192828,
"price": "0.004337380650207665"
},
{
"hash": "0x239065c70237bdf70c71d8c9f32507ccffd7b8ae6f1307d1767a8f3e5f1c6594",
"timestamp": 1655192828,
"price": "0.004337441760628281"
},
{
"hash": "0x485528434a50577fb8edb887581d53a4a31b359cf1b20a8048381911e053608d",
"timestamp": 1655192828,
"price": "0.004359260988922678"
},
{
"hash": "0xf44680d3d3dcd9abbeec85d595ba14bb67b79f6c2f72b2fe38e708f756efa81d",
"timestamp": 1655192828,
"price": "0.004359242173012291"
},
{
"hash": "0x8c3555fd7abad3acb109716ce549e328693ce357da69e9a54c7a37a0f7c7e927",
"timestamp": 1655192828,
"price": "0.004337469152200651"
},
{
"hash": "0x8557537d52021cb4e2ebf0389de962f2affbbd1578e9e9d91674596de84a8b13",
"timestamp": 1655192825,
"price": "0.0043374792948373915"
},
{
"hash": "0xd4b5151b9a5a07e49024186dacff0b7a8d23198f917c093cf583c4771ec9d422",
"timestamp": 1655192825,
"price": "0.004359240929032785"
},
{
"hash": "0x67604272ca2b8b89e33b1e6a1b9c89db75635e1d78f5cf2c8e49b9f3a21c1b2f",
"timestamp": 1655192825,
"price": "0.004337933190955034"
},
{
"hash": "0x865fb5fcb394c48fd40557768f08f3d69bd7c87f607ec44f13b0b2eeada11c80",
"timestamp": 1655192822,
"price": "0.004360170392030563"
},
{
"hash": "0xffd100d86343e20788a8abb48660d40b6714b8b20ef1d47a98b8cc99b8257231",
"timestamp": 1655192822,
"price": "0.004360163275274439"
},
{
"hash": "0x494090254f82033f54aa5308e5d9a83e3d78a2408eb2538e03ff46397341afd4",
"timestamp": 1655192822,
"price": "0.004338392721513588"
},
{
"hash": "0xe6e38a577cef9a729697c8ad08e14de932fd12bc896821d13f5dbb6c6dbf1f33",
"timestamp": 1655192822,
"price": "0.004338399897695004"
},
{
"hash": "0x2a649227209c1016e18c5c01019578ae79f00c64aff230fe1e2fcd855662c3f9",
"timestamp": 1655192822,
"price": "0.004360024464759858"
},
{
"hash": "0x51bf4d9c11fd14e26ddd84e918dcb015cdc98da31f707ed4ecab24ad0a057da0",
"timestamp": 1655192822,
"price": "0.004359871750374781"
}
]
}
}
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0x05616b7b6da03fb4c773b76663816b360ccaede4&dexId=1200&startBlock=34544519&endBlock=34548560
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "TOKEN/WBNB",
"transactions": [
{
"transactionHash": "0x0e0333c6bcdcf9a09841e815bdaffc55b1a069f78c33541918f8aa800ce5327a",
"transactionDetails": {
"blockHash": "0x3a9f5de42cdaddbeea0f6c40ed4d991dd9fd3aaf0831dfa08719c552c60ba1cf",
"blockNumber": "34548096",
"from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
"gas": "1827825",
"gasPrice": "3150000000",
"hash": "0x0e0333c6bcdcf9a09841e815bdaffc55b1a069f78c33541918f8aa800ce5327a",
"input": "0x5c11d7950000000000000000000000000000000000000000000000000000085413a733ff0000000000000000000000000000000000000000000000000f5980b344c4c06400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d67066000000000000000000000000000000000000000000000000000000006584352500000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"nonce": "435338",
"to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
"transactionIndex": "99",
"value": "0",
"type": "0",
"chainId": "56",
"v": "0x94",
"r": "0x9c5367e8276ca0c88cd100418d73a4c04adf8e4718a88ee29fac96b695cd504b",
"s": "0x664a7ddf2587ec3ea192682053a2502280be34ff5088dce30621655aa27d965f"
}
},
{
"transactionHash": "0x110647ed390ad69b08e40d1432aa4c402df4506ae5f9f897860ea4e241c78dd6",
"transactionDetails": {
"blockHash": "0xfdc0e116f2a20e13cca8be61c46ee1ad214ae628aca4cbff508f5d6bcf5a663d",
"blockNumber": "34548119",
"from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
"gas": "1827825",
"gasPrice": "3150000000",
"hash": "0x110647ed390ad69b08e40d1432aa4c402df4506ae5f9f897860ea4e241c78dd6",
"input": "0x5c11d795000000000000000000000000000000000000000000000000000007b28e1f777f0000000000000000000000000000000000000000000000000e28e19e4a923e9200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d67066000000000000000000000000000000000000000000000000000000006584356d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"nonce": "435345",
"to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
"transactionIndex": "73",
"value": "0",
"type": "0",
"chainId": "56",
"v": "0x93",
"r": "0x7477029e608e4d564193bb46c7a4044d4ef1a0c3bf7687433fbd181a2131b245",
"s": "0x5767ce7bf8f51df4c456045d909af1742d2d0df4d6163a78c4430d1129c9ff26"
}
},
{
"transactionHash": "0xe769eff1adc2a66523b3d6a05cfd1b21dd94868fdb8877211a885d80bd7bf08b",
"transactionDetails": {
"blockHash": "0xd1a4f2635e456989f625a79c6bff75a4a40820141b66f12f0300764360e24795",
"blockNumber": "34548323",
"from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
"gas": "1827825",
"gasPrice": "3150000000",
"hash": "0xe769eff1adc2a66523b3d6a05cfd1b21dd94868fdb8877211a885d80bd7bf08b",
"input": "0x5c11d795000000000000000000000000000000000000000000000000000012a0a5755eff00000000000000000000000000000000000000000000000022132516d135029700000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d6706600000000000000000000000000000000000000000000000000000000658437d100000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"nonce": "435378",
"to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
"transactionIndex": "57",
"value": "0",
"type": "0",
"chainId": "56",
"v": "0x94",
"r": "0xf6c95a653ee9dd9f04728440793c74b6e3ca49eee205995962b80de99f006e8e",
"s": "0x5b635a90c526104ad6d3b472337c0dc44e36318bb51cbd87b918c276e484de5a"
}
},
{
"transactionHash": "0xa08b6126adc8fdf526282c08c7598cca0d9660cf032bf7e2625dd1d3c3c02646",
"transactionDetails": {
"blockHash": "0x011eb51371dc7fab04aec4747e39f1b19157cedaf7aa46ea359f2b81bc139056",
"blockNumber": "34548078",
"from": "0x055a3b37957bfbd3345bed9968e7e8dd56d67066",
"gas": "1827825",
"gasPrice": "3150000000",
"hash": "0xa08b6126adc8fdf526282c08c7598cca0d9660cf032bf7e2625dd1d3c3c02646",
"input": "0x5c11d7950000000000000000000000000000000000000000000000000000071f616e4fff0000000000000000000000000000000000000000000000000d1d45cca8f0270100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000055a3b37957bfbd3345bed9968e7e8dd56d6706600000000000000000000000000000000000000000000000000000000658434f200000000000000000000000000000000000000000000000000000000000000020000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b528000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"nonce": "435333",
"to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
"transactionIndex": "89",
"value": "0",
"type": "0",
"chainId": "56",
"v": "0x93",
"r": "0xd47769d5b84274a60e08883f55134123c07ba0b49ab6633e6ead301bbfbe3de7",
"s": "0x4fae3d9c98bbef24a76cb8827f08fae2d1ea3c647a8f9416cca379e463d0957c"
}
},
{
"transactionHash": "0x8b8c30a219f64ab57b08795bb42cc31b92e6abb9af1f8f553cbfda629f95643e",
"transactionDetails": {
"blockHash": "0x6f4462177d6bddbc9983699e8c47428378a076a6ac5dd18b991c806361197dad",
"blockNumber": "34548558",
"from": "0x05d99efbc49b74751521234ce0509c9ffcc6d2b7",
"gas": "600000",
"gasPrice": "3000000001",
"hash": "0x8b8c30a219f64ab57b08795bb42cc31b92e6abb9af1f8f553cbfda629f95643e",
"input": "0x95435ac9000000000000000000000000000000000000000000000000000005b0462445570000000000000000000000000000000000000171007ac8f660d8c2f3a24076f60000000000000000000000004507cef57c46789ef8d1a19ea45f4216bae2b5280000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001847000000000000000000000000005616b7b6da03fb4c773b76663816b360ccaede40000000000000000000000000000000000000000000000000000000065843a88",
"nonce": "9739",
"to": "0x802b65b5d9016621e66003aed0b16615093f328b",
"transactionIndex": "97",
"value": "0",
"type": "0",
"chainId": "56",
"v": "0x94",
"r": "0x5999271baa6c0d69f286aca11f07f58f1f5d82a4b583a03f705813bba2a4cec0",
"s": "0x679efd2ccddd7c6e123062129a2b4f1536a160b506e701282a5b4550fdff61e7"
}
}
]
}
}
Copy {
"dexId": "1200",
"amountIn": "120000000",
"amountOutMin": "0",
"path": ["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "0xCC42724C6683B7E57334c4E856f4c9965ED682bD"],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1664529286",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "29880"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "29880",
"data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006336b3860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd"
}
}
Copy {
"dexId": "1200",
"amountIn": "120000000",
"amountOutMin": "0",
"path": [
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"0xCC42724C6683B7E57334c4E856f4c9965ED682bD"
],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1704529286",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "298800",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "198800",
"data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006336b3860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd"
}
}
Copy {
"dexId": "1200",
"amountIn": "120000000",
"amountOutMin": "0",
"path": [
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"0xCC42724C6683B7E57334c4E856f4c9965ED682bD"
],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1664529286",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "29880",
"slippage": "8.033543322"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "29880",
"data": "0x38ed17390000000000000000000000000000000000000000000000000000000007270e000000000000000000000000000000000000000000000000000000000a48a397b200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006336b3860000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"amountADesired": "50000000000000000",
"amountBDesired": "77926115",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1663181575",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2307200"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "2307200",
"data": "0xe8e337000000000000000000000000008a9424745056eb399fd19a0ec26a14316684e2740000000000000000000000007ef95a0fee0dd31b22626fa2e10ee6a223f8a68400000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"amountADesired": "50000000000000000",
"amountBDesired": "77926115",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1663181575",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2307200",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "223199",
"data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"amountADesired": "50000000000000000",
"amountBDesired": "77926115",
"amountAMin": "10000000000000000",
"amountBMin": "100000",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1663181575",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2307200",
"slippage": "5"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "2307200",
"data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000021c0331d5dc000000000000000000000000000000000000000000000000000000000000001731800000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"liquidity": "163742355742154761",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1663231732",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "842720"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "842720",
"data": "0xbaa2abde0000000000000000000000008a9424745056eb399fd19a0ec26a14316684e2740000000000000000000000007ef95a0fee0dd31b22626fa2e10ee6a223f8a6840000000000000000000000000000000000000000000000000245bace14b260090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006322e6f4"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"liquidity": "163742355742154761",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1703231732",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "842720",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "213628",
"data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307"
}
}
Copy {
"dexId": "1200",
"tokenA": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"tokenB": "0xCC42724C6683B7E57334c4E856f4c9965ED682bD",
"liquidity": "163742355742154761",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1663231732",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "842720",
"slippage": "5"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "56",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
"value": "0",
"gas": "2307200",
"data": "0xe8e33700000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000004a50ee30000000000000000000000000000000000000000000000000021c0331d5dc000000000000000000000000000000000000000000000000000000000000001731800000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000063222307"
}
}
Copy https://api.expand.network/dex/getprice?dexId=1100&path=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7&amountIn=10000000000000000000
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xdac17f958d2ee523a2206206994597c13d831ec7"
],
"amountsOut": [
"10000000000000000000",
"15636200031"
]
}
}
Copy https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1100
Copy {
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0xC3D03e4F041Fd4cD388c549Ee2A29a9E5075882f",
"liquidity": "300000",
"tokenA": "11174.919080331369",
"tokenB": "18717989.629328925"
}
}
Copy https://api.expand.network/dex/getpoolliquidity?dexId=1100&poolAddress=0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14
Copy {
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "5564898"
}
}
Copy https://api.expand.network/dex/gettokenliquidity?dexId=1100&poolAddress=0xF1F85b2C54a2bD284B1cf4141D64fD171Bd85539
Copy {
"status": 200,
"msg": "success",
"data": {
"sUSD": "139894774899120916276977",
"WETH": "75232870761760613666"
}
}
Copy https://api.expand.network/dex/getliquidityholders?dexId=1100&poolAddress=0x6B3595068778DD592e39A122f4f5a5cF09C90fE2
Copy {
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": "117670"
}
}
Copy https://api.expand.network/dex/getindividualposition?poolAddresses=0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14,0x055CEDfe14BCE33F985C41d9A1934B7654611AAC&address=0x11f4941c1E66d4a8B6DdbF5DCb1C356672B23779&dexId=1100
Copy {
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "2000200",
"poolAddresses": {
"NYANUSDT": {
"0x6D37Eb2364f8BB28002BD404cF301fA8106DCb14": "1000100"
},
"DAIUSDT": {
"0x055CEDfe14BCE33F985C41d9A1934B7654611AAC": "1000100"
}
}
}
}
Copy https://historicallp.api.expand.network/dex/getpoolindividualliquidity?startPage=92&endPage=93&dexId=1100&poolAddress=0xceff51756c56ceffca006cd410b03ffc46dd3a58
Copy {
"status": 200,
"msg": "success",
"data": {
"totalPages": "93",
"currentPages": "92-93",
"users": [
{
"userAddress": "0xae92670605420bab25c4eebde7d1b6b9ad073eb1",
"liquidityData": [
{
"blockNumber": "11272393",
"assets": {
"WBTC": "339000000",
"WETH": "121741426192567844945"
}
}
]
},
{
"userAddress": "0x13d90032427d7db319713a07a801c083f6df6b28",
"liquidityData": [
{
"blockNumber": "11272379",
"assets": {
"WBTC": "1361262029",
"WETH": "488855400685099260561"
}
}
]
},
{
"userAddress": "0xc37e20177f8649e498dd67ccab3069da11a4b381",
"liquidityData": [
{
"blockNumber": "11272373",
"assets": {
"WBTC": "3222002344",
"WETH": "1157083069481877851896"
}
}
]
},
{
"userAddress": "0x8d97ab42cdc04b0a8f0c08dd6baeaf93ad2ade9e",
"liquidityData": [
{
"blockNumber": "11272367",
"assets": {
"WBTC": "7184517",
"WETH": "2580098366031707833"
}
}
]
},
{
"userAddress": "0x6883a2367ab4102252fadc40ade1fdcd0f40417a",
"liquidityData": [
{
"blockNumber": "11272363",
"assets": {
"WBTC": "243735317",
"WETH": "87530044557751111303"
}
}
]
},
{
"userAddress": "0xb7a7e0baa978c8ba5cac0150e4cc4a86e4299136",
"liquidityData": [
{
"blockNumber": "11272354",
"assets": {
"WBTC": "3001637850",
"WETH": "1077945937382280330621"
}
}
]
}
]
}
}
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries?dexId=1100&poolAddress=0xceff51756c56ceffca006cd410b03ffc46dd3a58
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "WBTC/WETH",
"priceData": [
{
"hash": "0xab976730855f2319b3713478799f7aad6027419eba6f3788256b354ed0432381",
"timestamp": 1703757971,
"price": "17.99472597437422"
},
{
"hash": "0x37d7a68ba4e4c9cd2e254108f40a7823e8eb9821ff5d6d3745801c6513732b78",
"timestamp": 1703755007,
"price": "18.010292734804654"
},
{
"hash": "0xb5fcf54cba69bff0185ceda061d7308d56ec471a4113f4f4e1f2ee04e28523e1",
"timestamp": 1703753111,
"price": "18.025965450635685"
},
{
"hash": "0x06b4e398e852f6cbd4e08450703f757d75c0d685d1038380c79cd04fe27bb836",
"timestamp": 1703752775,
"price": "18.02635771905701"
},
{
"hash": "0x5421f0b31d5e7538307b2971eeb98df755ced06d650174050d8fd29429a9eb80",
"timestamp": 1703747675,
"price": "18.132953404785805"
},
{
"hash": "0xf05259997b701905248694f0d4cc3e45194819e7bc9bb16d706e25618dfcea90",
"timestamp": 1703747579,
"price": "18.128817077523507"
},
{
"hash": "0xc067a858610595cf81a8c076f98931e998c324c1be6cc1c4df43691d93e067e5",
"timestamp": 1703741147,
"price": "18.11268829405827"
},
{
"hash": "0xee1a68eef523811d1e865b2dfed610666c45982a6b0c30231488f41b033353b2",
"timestamp": 1703740199,
"price": "18.076013983785323"
}
]
}
}
Copy https://historicaltrade.api.expand.network/dex/gethistoricaltransactions?poolAddress=0xceff51756c56ceffca006cd410b03ffc46dd3a58&dexId=1100&startBlock=18362942&endBlock=18410586
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "WBTC/WETH",
"transactions": [
{
"transactionHash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
"transactionDetails": {
"blockHash": "0x439cac3b235fb723f9b19bf8677797d7d7730c17bdad154c5522bece9228b9d6",
"blockNumber": "18367972",
"from": "0x4afa1538c508eab5f8d1938d7e801d670c7a7426",
"gas": "237646",
"gasPrice": "5402052229",
"maxFeePerGas": "6986758062",
"maxPriorityFeePerGas": "100000000",
"hash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000af0c000000000000000000000000000000000000000000000000000000000000ae2b000000000000000000000000000000000000000000000000001c31dc6fed3f820000000000000000000000004afa1538c508eab5f8d1938d7e801d670c7a742600000000000000000000000000000000000000000000000000000000652e209f",
"nonce": "30",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "24",
"value": "7976002199280179",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x62ffb17102444747e17a643b2095ac2ed6a54d4e143f864ef913113dff9182d4",
"s": "0x437b394117a9bd7785207c4ee919b7c12b7835a6ed2360e59c32910b845541f0",
"yParity": "0x1"
}
},
{
"transactionHash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
"transactionDetails": {
"blockHash": "0x126cb4d2807e3c6eec7c7a46ea034398310a86579082cbac3a81dd507fc4202f",
"blockNumber": "18367796",
"from": "0xb740b2f676f627d4077e9782cdb8dc30dbba6bd3",
"gas": "244750",
"gasPrice": "5649439124",
"maxFeePerGas": "6933668525",
"maxPriorityFeePerGas": "100000000",
"hash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000999f00000000000000000000000000000000000000000000000000000000000098da0000000000000000000000000000000000000000000000000018bea16edc5000000000000000000000000000b740b2f676f627d4077e9782cdb8dc30dbba6bd300000000000000000000000000000000000000000000000000000000652e1853",
"nonce": "98",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "63",
"value": "7000000000000000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0x17ce9fb061e9742d64a9a92c8ec079cceda278e604d31ed6ff93aba7b6c5b5de",
"s": "0x1b917196a5ccf3adf330449ff7b13b0a2012c930d8bc235cf4b3f6f8317fabd3",
"yParity": "0x0"
}
},
{
"transactionHash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
"transactionDetails": {
"blockHash": "0x07bd0530ec08967108dcb66f90e9d04664ce2c5dced79bc25cf4aa8592c3533f",
"blockNumber": "18410586",
"from": "0x77fbb383f424f98e744cde82a3b41f23dc1fd82e",
"gas": "244736",
"gasPrice": "9730712401",
"maxFeePerGas": "13360787154",
"maxPriorityFeePerGas": "100000000",
"hash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000227000000000000000000000000000000000000000000000000000000000000022400000000000000000000000000000000000000000000000000005a7ea627b80000000000000000000000000077fbb383f424f98e744cde82a3b41f23dc1fd82e000000000000000000000000000000000000000000000000000000006535fca3",
"nonce": "255",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "60",
"value": "100000000000000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0xf9433f60fd0fbb68b860b4ae0c284a01c93e4ccbba1630fb21b8c5d8d14cf5",
"s": "0x5affb309911b6b233464dcda5df91d32362df4683be260feca213ac2cebe028e",
"yParity": "0x0"
}
},
{
"transactionHash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
"transactionDetails": {
"blockHash": "0x671426264e8f183794328b9ceafc22ae779e5935afc0c4e7d15833112874650f",
"blockNumber": "18389121",
"from": "0x0f8af7f0c71fab3d66a31243baed580cee6c0e0a",
"gas": "237646",
"gasPrice": "7083602166",
"maxFeePerGas": "9248000000",
"maxPriorityFeePerGas": "500000000",
"hash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000d385000000000000000000000000000000000000000000000000000000000000d27600000000000000000000000000000000000000000000000000233e39715c3f920000000000000000000000000f8af7f0c71fab3d66a31243baed580cee6c0e0a0000000000000000000000000000000000000000000000000000000065320757",
"nonce": "2",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "33",
"value": "9969890071157728",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0x431d67d2054ad4d1d00fb7788243b3f4ef0a351ee1e85124fddc5281314460c8",
"s": "0x67621f85bfb728c192be3510624b90edb43a08e7f72033f4bf2a900ab81cb266",
"yParity": "0x0"
}
},
{
"transactionHash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
"transactionDetails": {
"blockHash": "0x39966efee2e0877488907cea7b1856ad895ccba5427b65e081f1032bb5fe6ed0",
"blockNumber": "18362942",
"from": "0x8ef2c6f23477e31e983102310d9913c2dc69bbfe",
"gas": "237632",
"gasPrice": "8819484734",
"maxFeePerGas": "12054334407",
"maxPriorityFeePerGas": "100000000",
"hash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000018e00000000000000000000000000000000000000000000000000003f774d48506b0000000000000000000000008ef2c6f23477e31e983102310d9913c2dc69bbfe00000000000000000000000000000000000000000000000000000000652d3387",
"nonce": "3",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "135",
"value": "70132291701431",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x21d92d1da0f6178b459ca4078e30dc307295cb70f33a4bad126a4dfbf42ccf30",
"s": "0x6e33388b5e67f35e1d2a5bfd8a09dfa107b52a95a167deca80af1e191366f70f",
"yParity": "0x1"
}
}
]
}
}
Copy https://historicaltrade.api.expand.network/dex/getpoolchartdata?dexId=1100&poolAddress=0x6a091a3406e0073c3cd6340122143009adac0eda
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "ILV/WETH",
"chartData": {
"18883403 to 18883472": [
{
"open_price": "43436771175047461",
"close_price": "43408677779839064",
"low_price": "43407786195488460",
"high_price": "43670000086527410",
"transactions": [
{
"blockNumber": "18883463",
"price": "43422439903841912",
"amount": {
"token0": "102000572637767189782",
"token1": "4429113735520907436"
}
},
{
"blockNumber": "18883472",
"price": "43670000086527408",
"amount": {
"token0": "3129667269957695196",
"token1": "136672569949854550"
}
}
]
}
],
"18883334 to 18883403": [
{
"open_price": "43547186276952559",
"close_price": "43436771175047461",
"low_price": "43422439903841910",
"high_price": "43670000086527410",
"transactions": [
{
"blockNumber": "18883381",
"price": "43547084885097912",
"amount": {
"token0": "1711615197390561629",
"token1": "74535852291390407"
}
},
{
"blockNumber": "18883390",
"price": "43519364670601592",
"amount": {
"token0": "192959879922945017658",
"token1": "8397491381162139455"
}
},
{
"blockNumber": "18883395",
"price": "43464401031951824",
"amount": {
"token0": "192954632333095821169",
"token1": "8386657520698494096"
}
}
]
}
],
"18883264 to 18883334": [
{
"open_price": "43580742889438194",
"close_price": "43547186276952559",
"low_price": "43422439903841910",
"high_price": "43670000086527410",
"transactions": [
{
"blockNumber": "18883325",
"price": "43564129117199832",
"amount": {
"token0": "117512611061174833005",
"token1": "5119334561168304832"
}
}
]
}
],
"18883195 to 18883264": [
{
"open_price": "43580742889438194",
"close_price": "43580742889438194",
"low_price": "43422439903841910",
"high_price": "43670000086527410",
"transactions": []
}
],
"18883126 to 18883195": [
{
"open_price": "43630018046276656",
"close_price": "43580742889438194",
"low_price": "43422439903841910",
"high_price": "43670000086527410",
"transactions": [
{
"blockNumber": "18883128",
"price": "43605553277127072",
"amount": {
"token0": "172311804647620320745",
"token1": "7513751577839719495"
}
}
]
}
],
"18883057 to 18883126": [
{
"open_price": "43669679018510388",
"close_price": "43630018046276656",
"low_price": "43422439903841910",
"high_price": "43670000086527410",
"transactions": [
{
"blockNumber": "18883072",
"price": "43650016798096248",
"amount": {
"token0": "138479680688282977116",
"token1": "6044640388238556419"
}
}
]
}
],
"18882987 to 18883057": [
{
"open_price": "43802659723312058",
"close_price": "43669679018510388",
"low_price": "43422439903841910",
"high_price": "43802659723312056",
"transactions": [
{
"blockNumber": "18883022",
"price": "43775253844787920",
"amount": {
"token0": "191784985491326827151",
"token1": "8395436423501800791"
}
},
{
"blockNumber": "18883032",
"price": "43727764263704368",
"amount": {
"token0": "138592800106721373351",
"token1": "6060353291713413323"
}
},
{
"blockNumber": "18883038",
"price": "43688854988366640",
"amount": {
"token0": "132561706284571400000",
"token1": "5791469162877089355"
}
}
]
}
]
}
}
}
Copy https://historicaltrade.api.expand.network/dex/getpooltradedata?poolAddress=0x397ff1542f962076d0bfe58ea045ffa2d347aca0&dexId=1100&startBlock=18795938&endBlock=18802579
Copy {
"status": 200,
"msg": "success",
"data": {
"pair": "USDC/WETH",
"transactions": [
{
"blockNumber": "18802579",
"transactionHash": "0x244973c75c485606de7da7a1b6979ad60a85acc0eface61346363c838f0b1246",
"values": {
"0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"1": "6000000",
"2": "2695481331319850",
"sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"amount0": "6000000",
"amount1": "2695481331319850"
},
"eventType": "Mint",
"data": {
"data": "0x00000000000000000000000000000000000000000000000000000000005b8d8000000000000000000000000000000000000000000000000000099386a740842a",
"topics": [
"0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
"0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
]
}
},
{
"blockNumber": "18795938",
"transactionHash": "0x015caf944af53d7e4812b5483d49564e6ab6124c9209e3e163449cfef0ccc9b4",
"values": {
"0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"1": "3592426738",
"2": "1598745565343756835",
"sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"amount0": "3592426738",
"amount1": "1598745565343756835"
},
"eventType": "Mint",
"data": {
"data": "0x00000000000000000000000000000000000000000000000000000000d62014f2000000000000000000000000000000000000000000000000162fe29f048bb223",
"topics": [
"0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
"0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
]
}
}
]
}
}
Copy {
"dexId": "1100",
"amountIn": "1000000000000000",
"amountOutMin": "0",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1665991665",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "173376"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "173376",
"data": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d03f10000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
}
}
Copy {
"dexId":"1100",
"amountIn": "10000000000",
"amountOutMin": "0",
"path": ["0x6B175474E89094C44Da98b954EedeAC495271d0F","0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"],
"to": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline": "1765990894",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"gas": "273376",
"gasPriority":"high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "189000",
"data": "0x38ed173900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000356db816602c85e2075774bb77d13995c8bab023000000000000000000000000000000000000000000000000000000006942e1ee00000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
}
Copy {
"dexId": "1100",
"amountIn": "100000",
"amountOutMin": "98830762578185630",
"path": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1711931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "933376",
"slippage": "3.4"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "933376",
"data": "0x38ed173900000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000001555bb954bc93e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000022cf65ae3fa16d6379e72f4b4c2401c1b7c6973100000000000000000000000000000000000000000000000000000000660a017b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
}
}
Copy {
"dexId": "1100",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amountADesired": "50000000000000000",
"amountBDesired": "1914090565548627",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1669709170",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2307200"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "2307200",
"data": "0xe8e33700000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000006ccdaf03a3a530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385bd72"
}
}
Copy {
"dexId": "1100",
"tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amountADesired": "1000",
"amountBDesired": "997726184637093",
"amountAMin": "0",
"amountBMin": "0",
"poolFees":"3000",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to":"0x356dB816602c85e2075774bB77D13995c8Bab023",
"deadline":"1699965600472",
"gas": "773376",
"gasPriority":"low"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "193747",
"data": "0xe8e33700000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000038b6d3ad182a500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000018bcdd882d8"
}
}
Copy {
"dexId": "1100",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amountADesired": "50000000000000000",
"amountBDesired": "1914090565548627",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1669709170",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "2307200",
"slippage": "5"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "2307200",
"data": "0xe8e33700000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000006ccdaf03a3a530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000006385bd72"
}
}
Copy {
"dexId": "1100",
"tokenA": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenB": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"liquidity": "24329217355609123",
"amountAMin": "0",
"amountBMin": "0",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1666077074",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "400000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "400000",
"data": "0xbaa2abde000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d84400000000000000000000000000000000000000000000000000566f4b5624f4230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634e5192"
}
}
Copy {
"dexId": "1100",
"tokenA": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amountAMin": "0",
"amountBMin": "0",
"from": "0x6fb447ae94f5180254d436a693907a1f57696900",
"to":"0x6fb447ae94f5180254d436a693907a1f57696900",
"deadline":"1700034397679",
"liquidity":"9000",
"gas": "123444",
"gasPriority":"high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6fb447ae94f5180254d436a693907a1f57696900",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "296799",
"data": "0xbaa2abde0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000018bd1f245ef"
}
}
Copy {
"dexId": "1100",
"tokenA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"liquidity": "2961185246",
"amountAMin": "100000",
"amountBMin": "100000",
"to": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"deadline": "1669720626",
"from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"gas": "420000",
"slippage": "3.234551"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4970798F8E5a77598CA4Da778eb6D12303AEefc9",
"to": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
"value": "0",
"gas": "420000",
"data": "0xbaa2abde000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000b08019de00000000000000000000000000000000000000000000000000000000000179fd00000000000000000000000000000000000000000000000000000000000179fd0000000000000000000000004970798f8e5a77598ca4da778eb6d12303aeefc9000000000000000000000000000000000000000000000000000000006385ea32"
}
}
Non Fungible Tokens Provides functionalities to get details of non fungible tokens.
Following are the common functions implemented for the Non Fungible Tokens:-
Retrieves the number of NFTs held in the owner's account.
Retrieves the owner of the specified token ID.
Retrieves the metadata for the specified NFT.
Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range.
Retrieves historical logs for any NFT Collection.
Liquid Staking Provides connectivity across the Liquid Staking protocol available on the EVM chain.
Following are the common functions implemented for all the Liquid Staking protocol:-
Get the Lido staking APR on Ethereum.
Get the stETH interactions by a specified user address along with the daily stETH rewards.
Get the amount of stETH and wstETH staked on Lido by a specified address.
Get all the withdrawal requests(NFT ids) made by a specified address.
Get the status of a withdrawal request made by a specified address.
Get the Lido staking APR on Ethereum, for the past 7 days.
Get the approved allowance amount set by the owner for the spender.
Initiate a transaction to stake on Lido.
Initiate a transaction to wrap stETH to wstETH.
Initiate a transaction to unwrap wstETH to stETH.
Initiate a transaction to increase the allowance of stETH or wstETH on the spender’s account.
Initiate a transaction to decrease the allowance of stETH or wstETH on the spender’s account.
Initiate a transaction to approve the withdrawal request from a specified address.
Initiate a transaction to request a withdrawal on Lido.
Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.
Remote procedural call URL.
Public address of the owner.
Public address of the spender.
Remote procedural call URL.
Public Address of the user
Public Address of the user
Starting block of the range.
by default latestBlock -100
Last block of the range.
by default its latestBlock
page to get response on,
by default its 1
asc/desc sorting method,
by default its desc
address of the erc20 token
Public Address of the user
Starting block of the range.
by default latestBlock -100
Last block of the range.
by default its latestBlock
page to get response on,
by default its 1
asc/desc sorting method,
by default its desc
Starting block of the range.
by default its (latestBlock -100)
Last block of the range.
by default its latestBlock
address of the erc20 token
Remote procedural call URL.
Address of the sender of the token.
Address to get approval of.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the sender of the token.
Address of the recipient of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the sender of the token.
Address, on whose behalf, tokens are spent.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Comma separated values of token addresses/token symbol whose price is to be fetched.
Percentage of total swap value.
By default, 1.
Remote procedural call URL.
Comma-separated values of token addresses/token symbol, inside an array, to swap.
Amount of token to be swapped.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
The order status.
Accepted values: open, expired, error, cancelled, filled, and insufficient-funds
Comma separated order hashes.
"asc" or "desc".
By default, desc.
Remote procedural call URL.
Dutch order bidding start time.
(UNIX Timestamp).
Dutch order bidding end time.
(UNIX Timestamp).
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to create an order.
Address of the recipient of the token.
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
Maximum gas limit provided by the sender, for the transaction.
The encoded order data received from UniswapX.
Address of the sender of the token.
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Remote procedural call URL.
Token Address of first token.
Token Address of second token.
Bin ID whose liquidity is to be fetched.
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Bin ID whose liquidity is to be fetched.
Remote procedural call URL.
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token),
2
for erc20 -> base ("to" address should be of equivalent wrapped token).
By default, 0
.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the first token being added.
Address of the second token being added.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
spotUniform, curve or bidask.
By default, spotUniform.
Minimum amount of Token A.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Address of the first token being removed.
Address of the second token being removed.
Minimum amount of Token B.
Difference between two consecutive bins.
Bin IDs that liquidity should be removed from.
LBToken(Liquidity Book Token) amount that should be removed.
Address of the recipient of the token.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Remote procedural call URL.
Public address of liquidity provider.
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Remote procedural call URL.
Remote procedural call URL.
Remote procedural call URL.
The public address of the liquidity holder.
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
The type of batch swap we want to perform.
Deadline for the transaction to be executed (UNIX Timestamp).
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Comma separated values of token addresses.
Amount of tokens to add liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
True
if sending from internal token balances. False
if sending ERC20.
Address of the recipient of the token.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Comma separated values of token addresses.
Amount of tokens to add liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
True
if you receiving tokens as internal token balances. False
if receiving as ERC20.
Address of the recipient of the token.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Remote procedural call URL.
Public address of liquidity provider.
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Remote procedural call URL.
Remote procedural call URL.
Remote procedural call URL.
The public address of the liquidity holder.
The number of pools for which the user intends to fetch the individual position.
By default: 50, Maximum: 9,950
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
Starting block of the range.
Pool address whose time series is to be fetched.
Starting block of the range.
Pool address whose transactions is to be fetched.
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the recipient of the token.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token),
2
for erc20 -> base ("to" address should be of equivalent wrapped token).
By default, 0
.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Address of the first token being added.
Address of the second token being added.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Address of the first token being removed.
Address of the second token being removed.
Total amount of liquidity to be removed from the given pool.
Minimum amount of Token A.
Minimum amount of Token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Remote procedural call URL.
Comma separated values of token addresses whose price is to be fetched.
Remote procedural call URL.
Public address of liquidity provider.
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Remote procedural call URL.
Remote procedural call URL.
Remote procedural call URL.
The public address of the liquidity holder.
The number of pools for which the user intends to fetch the individual position.
By default: 50, Maximum: 9,950
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
Remote procedural call URL.
Index of the last page that user wants to query.
By default: startPage+9
Index of the start page that user wants to query.
By default: endPage-9
Starting block of the range.
Pool address whose time series is to be fetched.
Starting block of the range.
Pool address whose transactions is to be fetched.
15 mins(by default), 30 mins, 60 mins, and 90 mins.
Pool address whose transactions is to be fetched.
Starting block of the range.
Pool address whose data is to be fetched.
Transfer, Swap, Burn or Mint(by default).
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the recipient of the token.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
If a base token is involved in the swap;
0
for erc20 -> erc20,
1
for base -> erc20 ("from" address should be of equivalent wrapped token),
2
for erc20 -> base ("to" address should be of equivalent wrapped token).
By default, 0
.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Address of the first token being added.
Address of the second token being added.
Desired amount of token A.
Desired amount of token B.
Minimum amount of token A.
Minimum amount of token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
Address of the first token being removed.
Address of the second token being removed.
Total amount of liquidity to be removed from the given pool.
Minimum amount of Token A.
Minimum amount of Token B.
Deadline for the transaction to be executed (UNIX Timestamp).
Address of the recipient of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value. By default, 1. 0 <= slippage value <= 10
Lend and Borrow Provides connectivity across the various Lend and Borrow protocols available on the EVM and Non-EVM chains.
Following are the common functions implemented for all the Lend and Borrow protocols:-
Get the lend and borrow APY for the given pool from the given protocol.
Get the list of supply and borrow APYs of the mentioned assets.
Get the repay, borrow, and withdraw amount details for the given user.
Check whether the user is approved before deposting.
Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address. Available for Compound V3.
Get the rewards claimed by the specified account on the protocol. Available for Compound V3.
Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account. Available for Compound V3.
Get the protocol and governor-related data for a market. Available for Compound V3.
Trigger a transaction on Compound V3 to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.
Trigger a transaction on Compound V3 to allow an account to claim rewards from the protocol.
Trigger the deposit transaction from the given protocol.
Trigger a transaction on Compound V3 to transfer an asset within the protocol to another account.
Trigger a transaction on Compound V3 to pass an array of action codes and data w.r.t the action codes that are executed, one by one, in a single transaction.
Trigger the borrow transaction from the given protocol.
Borrows the base token from specified market in case of Compound V3.
Trigger the liquidate transaction from the given protocol.
Trigger the repay transaction from the given protocol.
Trigger the withdrawal transaction from the given protocol.
Trigger the migrate transaction for Aave v3.
Trigger the E-Mode options for the user, on Aave v3.
Trigger the exit of isolation mode options for the user, on Aave v3.
Trigger the approve transaction as Compound needs the user to approve before they can start deposit.
Trigger the exit market transaction for Compound.
Following is a sequence diagram for deposit() process in Compound:-
Following is a sequence diagram for deposit() process in Aave:-
Following is a sequence diagram for borrow() process:-
Following is a sequence diagram for liquidate() process:-
Following is a sequence diagram for repay() process:-
Following is a sequence diagram for withdraw() process:-
Aave V2 /getpool
Get the lend and borrow APY for the given pool from AAVE protocol.
GET
https://api.expand.network/lendborrow/getpool
Query Parameters
Remote procedural call URL.
Token address to get the details of.
Sample Request
Copy https://api.expand.network/lendborrow/getpool?lendborrowId=1000&asset=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"variableBorrowRate": "3.26",
"stableBorrowRate": "5.27",
"variableSupplyRate": "0",
"stableSupplyRate": "1.26"
}
}
/getpools
Get the list of supply and borrow APYs of the mentioned assets.
GET
https://api.expand.network/lendborrow/getpools
Query Parameters
Comma-separated values of token address.
Sample Request
Copy https://api.expand.network/lendborrow/getpools?lendborrowId=1000&assets=0x6b175474e89094c44da98b954eedeac495271d0f,0xdac17f958d2ee523a2206206994597c13d831ec7,0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"USDT": {
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"variableBorrowRate": "3.70",
"stableBorrowRate": "11.85",
"variableSupplyRate": "0",
"stableSupplyRate": "3.00",
"symbol": "USDT"
},
"DAI": {
"tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
"variableBorrowRate": "3.01",
"stableBorrowRate": "11.51",
"variableSupplyRate": "0",
"stableSupplyRate": "1.66",
"symbol": "DAI"
},
"WETH": {
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"variableBorrowRate": "3.27",
"stableBorrowRate": "5.27",
"variableSupplyRate": "0",
"stableSupplyRate": "1.26",
"symbol": "WETH"
},
"USDC": {
"tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"variableBorrowRate": "2.96",
"stableBorrowRate": "10.48",
"variableSupplyRate": "0",
"stableSupplyRate": "1.83",
"symbol": "USDC"
}
}
}
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
GET
https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
Remote procedural call URL.
Public address of sender.
Interest mode as per Aave. Is set '1' as default.
Sample Request
Copy https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&asset=0x514910771af9ca656af840dff83e8264ecf986ca&lendborrowId=1000&interestRateMode=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0x514910771af9ca656af840dff83e8264ecf986ca",
"repayAmount": "0",
"borrowAmount": "201991256034911571",
"withdrawAmount": "0"
}
}
/borrow
Trigger the borrow transaction from the given protocol.
POST
https://api.expand.network/lendborrow/borrow
Request Body
Number of tokens to be borrowed.
Interest mode as per Aave. 0 for static and 1 for variable.
Referral code needed by Aave.
Required in case borrow need to be done on behalf of other public address.
Maximum gas to be approved for transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1000",
"asset": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",
"amount": "100",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"interestRateMode": "2",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0xa415bcad000000000000000000000000fc1ab0379db4b6ad8bf5bc1382e108a341e2eabb00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}
Sample Request
With gasPriority(medium):
Copy {
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "100000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"onBehalfOf": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"interestRateMode": "2",
"gas": "408298",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
"value": "0",
"gas": "397254",
"data": "0xa415bcad0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f07"
}
}
/deposit
Trigger the deposit transaction from the given protocol.
POST
https://api.expand.network/lendborrow/deposit
Request Body
Token address to deposit.
Number of tokens to deposit.
Referral code needed by Aave.
Required in case deposit need to be done on behalf of other public address.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
0 for any ERC-20 token,
1 for ETH.
Sample Request
Copy {
"lendborrowId": "1000",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "10000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0xe8eda9df000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d6000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority (low):
Copy {
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "10000000000000",
"from": "0x356db816602c85e2075774bb77d13995c8bab023",
"onBehalfOf": "0x356db816602c85e2075774bb77d13995c8bab023",
"gas": "520000",
"gasPriority": "low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356db816602c85e2075774bb77d13995c8bab023",
"to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
"value": "0",
"gas": "217582",
"data": "0xe8eda9df0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000356db816602c85e2075774bb77d13995c8bab0230000000000000000000000000000000000000000000000000000000000000000"
}
}
/liquidate
Trigger the liquidate transaction from the given protocol.
POST
https://api.expand.network/lendborrow/liquidate
Request Body
Address of the collateral token.
Address of the debt token.
Public address of the user whose account need to be liquidated.
Amount of debt to be covered.
Amount of token A to be received.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
/repay
Trigger the repay transaction from the given protocol.
POST
https://api.expand.network/lendborrow/repay
Request Body
Interest mode as per Aave. 0 for static and 1 for variable.
Required in case repay need to be done on behalf of other public address.
Maximum gas to be approved for the transaction.
Number of tokens to repay.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1000",
"asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amount": "100000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"interestRateMode": "2",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0x573ade81000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}
Sample Request
With gasPriority (medium):
Copy {
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "10000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"onBehalfOf": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"interestRateMode": "2",
"gas": "408298",
"gasPriority":"medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
"value": "0",
"gas": "288354",
"data": "0x573ade810000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f07"
}
}
/withdraw
Trigger the withdraw transaction from the given protocol.
POST
https://api.expand.network/lendborrow/withdraw
Request Body
Token address to be withdraw.
Number of tokens to withdraw.
Recipient public address.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}
Sample Request
With gasPriority (low):
Copy {
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "100000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
"value": "0",
"gas": "332250",
"data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f07"
}
}
Compound V3 /getassetinfo
Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address.
GET
https://api.expand.network/lendborrow/getassetinfo
Query Parameters
Remote procedural call URL.
Token's address to get the details of.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy https://api.expand.network/lendborrow/getassetinfo?lendborrowId=1300&asset=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"index": "3",
"priceFeedAddress": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
"borrowCollateralFactor": "75",
"liquidateCollateralFactor": "81",
"liquidationFactor": "15"
}
}
/getpool
Get the lend and borrow APY for the given pool from the given protocol.
GET
https://api.expand.network/lendborrow/getpool
Query Parameters
Remote procedural call URL.
USDC, WETH standard choice.
by default it is USDC.
The asset value equals the market value, with USDC as default if market value is not provided; users can pass 'asset' as both key and value.
Sample Request
Copy https://api.expand.network/lendborrow/getpool?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1300&asset=asset
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"stableBorrowRate": "0",
"variableBorrowRate": "11.99",
"stableSupplyRate": "0",
"variableSupplyRate": "10.42"
}
}
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
GET
https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
Remote procedural call URL.
Public address of sender.
USDC, WETH standard choice.
by default it is USDC.
The asset value equals the market value, with USDC as default if market value is not provided; users can pass 'asset' as both key and value.
Sample Request
Copy https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&market=WETH&lendborrowId=1300&asset=WETH
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"repayAmount": "0",
"borrowAmount": "0"
}
}
/getclaimedrewards
Get the rewards claimed by the specified account on the protocol.
GET
https://api.expand.network/lendborrow/getclaimedrewards
Query Parameters
Remote procedural call URL.
Public address of sender.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy https://api.expand.network/lendborrow/getclaimedrewards?lendborrowId=1301&address=0x6Fb447Ae94F5180254D436A693907a1f57696900
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"rewardAccured": "16000000000000"
}
}
/getmaxamounts
Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account.
GET
https://api.expand.network/lendborrow/getmaxamounts
Query Parameters
Remote procedural call URL.
Public address of sender.
Token's address to get the details of.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy https://api.expand.network/lendborrow/getmaxamounts?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1301&asset=0x42a71137C09AE83D8d05974960fd607d40033499&market=USDC
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"maxWithdrawalAmount": "0.0183",
"maxBorrowableAmount": "52.9195"
}
}
/getgovernordata
Get the protocol and governor-related data for a market.
GET
https://api.expand.network/lendborrow/getgovernordata
Query Parameters
Remote procedural call URL.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy https://api.expand.network/lendborrow/getgovernordata?lendborrowId=1300&market=WETH
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"isSupplyPaused": false,
"isTransferPaused": false,
"isWithdrawPaused": false,
"isAbsorbPaused": false,
"isBuyPaused": false,
"cometConfiguration": {
"governor": "0x6d903f6003cca6255D85CcA4D3B5E5146dC33925",
"pauseGuardian": "0xbbf3f1421D886E9b2c5D716B5192aC998af2012c",
"baseToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"baseTokenPriceFeed": "0xD72ac1bCE9177CFe7aEb5d0516a38c88a64cE0AB",
"extensionDelegate": "0xe2C1F54aFF6b38fD9DF7a69F22cB5fd3ba09F030",
"supplyKink": "900000000000000000",
"supplyPerYearInterestRateSlopeLow": "23000000000000000",
"supplyPerYearInterestRateSlopeHigh": "1000000000000000000",
"supplyPerYearInterestRateBase": "0",
"borrowKink": "900000000000000000",
"borrowPerYearInterestRateSlopeLow": "30000000000000000",
"borrowPerYearInterestRateSlopeHigh": "1000000000000000000",
"borrowPerYearInterestRateBase": "5000000000000000",
"storeFrontPriceFactor": "1000000000000000000",
"trackingIndexScale": "1000000000000000",
"baseTrackingSupplySpeed": "810185185185",
"baseTrackingBorrowSpeed": "0",
"baseMinForRewards": "1000000000000000000000",
"baseBorrowMin": "100000000000000000",
"targetReserves": "5000000000000000000000",
"assetConfigs": [
[
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704",
"0x23a982b74a3236A5F2297856d4391B2edBBB5549",
"18",
"900000000000000000",
"930000000000000000",
"975000000000000000",
"40000000000000000000000"
],
[
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"0x4F67e4d9BD67eFa28236013288737D39AeF48e79",
"18",
"900000000000000000",
"930000000000000000",
"975000000000000000",
"64500000000000000000000"
],
[
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xA3A7fB5963D1d69B95EEC4957f77678EF073Ba08",
"18",
"900000000000000000",
"930000000000000000",
"975000000000000000",
"30000000000000000000000"
]
]
}
}
}
/allow
Trigger a transaction to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.
POST
https://api.expand.network/lendborrow/allow
Body Parameters
Remote procedural call URL.
The address of the account that can have manager permissions over another.
"true" to add the manager and "false" to remove the manager. By default, true
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"isAllowed": "true",
"manager": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0x110496e5000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000000000000000000000000000000000000000000001"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"isAllowed": "true",
"manager": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high"
}
Sampe Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0x110496e5000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000000000000000000000000000000000000000000001",
"gasPrice": "36428498030"
}
}
/borrow
Trigger a transaction to borrow the base token from the specified market.
POST
https://api.expand.network/lendborrow/borrow
Body Parameters
Remote procedural call URL.
Number of tokens to be borrowed.
Public address of sender.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xf3fef3a3000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xf3fef3a3000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
"gasPrice": "35667064674"
}
}
/claimrewards
Trigger a transaction to allow an account to claim rewards from the protocol.
POST
https://api.expand.network/lendborrow/claimrewards
Body Parameters
Remote procedural call URL.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "5300000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x1B0e765F6224C21223AeA2af16c1C46E38885a40",
"value": "0",
"gas": "5300000",
"data": "0xb7034f7e000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000001"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "5300000",
"gasPriority": "low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x1B0e765F6224C21223AeA2af16c1C46E38885a40",
"value": "0",
"gas": "5300000",
"data": "0xb7034f7e000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000001",
"gasPrice": "18562464709"
}
}
/deposit
Trigger a transaction to deposit an asset to the protocol and update it to the account’s balance.
POST
https://api.expand.network/lendborrow/deposit
Body Parameters
Remote procedural call URL.
Public address of sender.
Token's address to get the details of.
Number of tokens to be borrowed.
Public address of receiver.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "1000000",
"gas": "50000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "1000000",
"gas": "50000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
"gasPrice": "34800711282"
}
}
/repay
Trigger a transaction to repay the borrowed amount of the base asset to the protocol.
POST
https://api.expand.network/lendborrow/repay
Body Parameters
Remote procedural call URL.
Public address of sender.
Number of tokens to be repayed.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"market": "USDC"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xf2b9fdb8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high",
"market": "USDC"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xf2b9fdb8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000f4240",
"gasPrice": "36003491919"
}
}
/transfer
Trigger a transaction to transfer an asset, within the protocol, to another account.
POST
https://api.expand.network/lendborrow/transfer
Body Parameters
Remote procedural call URL.
Public address of sender.
Address of token to be transferred.
Public address of receiver.
Number of tokens to be repayed.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xa9059cbb0000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high",
"to": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"value": "0",
"gas": "50000",
"data": "0xa9059cbb0000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
"gasPrice": "34111792917"
}
}
/withdraw
Trigger the withdrawal transaction from the given protocol.
POST
https://api.expand.network/lendborrow/withdraw
Body Parameters
Remote procedural call URL.
Public address of sender.
Address of token to be transferred.
Public address of receiver.
Number of tokens to withdraw.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Sample Request
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "0",
"gas": "50000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f57495448445241575f4e41544956455f544f4b454e00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"amount": "1000000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "50000",
"gasPriority": "high",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "0",
"gas": "50000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001414354494f4e5f57495448445241575f4e41544956455f544f4b454e00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000000f4240",
"gasPrice": "38955604869"
}
}
/bundleactions
Trigger a transaction, to pass an array of action codes and calldatas that are executed, one by one, in a single transaction.
POST
https://api.expand.network/lendborrow/bundleactions
Body Parameters
Remote procedural call URL.
Public address of sender.
Maximum gas to be approved for the transaction.
USDC, WETH standard choice.
by default it is USDC.
Details for Actions and related data.Actions
Copy "ACTION_SUPPLY_ASSET"; // The action for supplying an asset to Comet
"ACTION_SUPPLY_NATIVE_TOKEN"; // The action for supplying a native asset (e.g. ETH on Ethereum mainnet) to Comet
"ACTION_TRANSFER_ASSET"; // The action for transferring an asset within Comet
"ACTION_WITHDRAW_ASSET"; // The action for withdrawing an asset from Comet
"ACTION_WITHDRAW_NATIVE_TOKEN"; // The action for withdrawing a native asset from Comet
"ACTION_CLAIM_REWARD"; // The action for claiming rewards from the Comet rewards contract
"ACTION_SUPPLY_STETH"; // The action for supplying STETH to Comet
"ACTION_WITHDRAW_STETH"; // The action for withdrawing STETH from Comet
Data
Supply Asset, Withdraw Asset, Transfer Asset
comet
: The address of the Comet instance to interact with.
to
: The destination address, within or external to the protocol.
asset
: The address of the ERC-20 asset contract.
amount
: The amount of the asset as an unsigned integer scaled up by 10 to the “decimals” integer in the asset’s contract.
Supply Native, Withdraw Native (native chain token like ETH on Ethereum Mainnet), Supply STETH, Withdraw STETH
comet
: The address of the Comet instance to interact with.
to
: The destination address, within or external to the protocol.
amount
: The amount of the native token as an unsigned integer scaled up by 10 to the number of decimals of precision of the native EVM token.
Claim Reward
comet
: The address of the Comet instance to interact with.
src
: The account in which to claim rewards.
to
: The account in which to transfer the claimed rewards.
shouldAccure
: If true, the protocol will account for the rewards owed to the account as of the current block before transferring. Otherwise, false.
Sample Request
Copy {
"lendborrowId": "1300",
"market": "USDC",
"actions": [
"ACTION_SUPPLY_NATIVE_TOKEN",
"ACTION_SUPPLY_NATIVE_TOKEN"
],
"data": [
[
"0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"0x6Fb447Ae94F5180254D436A693907a1f57696900",
"00000100000000"
],
[
"0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"0x6Fb447Ae94F5180254D436A693907a1f57696900",
"23000000"
]
],
"gas": "500000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "123000000",
"gas": "500000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000414354494f4e5f535550504c595f4e41544956455f544f4b454e0000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000015ef3c0"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1300",
"market": "USDC",
"actions": [
"ACTION_SUPPLY_NATIVE_TOKEN",
"ACTION_SUPPLY_NATIVE_TOKEN"
],
"data": [
[
"0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"0x6Fb447Ae94F5180254D436A693907a1f57696900",
"00000100000000"
],
[
"0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"0x6Fb447Ae94F5180254D436A693907a1f57696900",
"23000000"
]
],
"gas": "500000",
"gasPriority": "medium",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "123000000",
"gas": "500000",
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000414354494f4e5f535550504c595f4e41544956455f544f4b454e0000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000015ef3c0",
"gasPrice": "28891665614"
}
}
WETH /getbalance
Get the balance or number of WETH in the requested public address. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/weth/getbalance
Query Parameters
Remote procedural call URL
The public address to get the balance of.
Sample Request
Copy https://api.expand.network/weth/getbalance/?address=0x6Fb447Ae94F5180254D436A693907a1f57696900
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "25690185796757697"
}
}
/historical/logs
Retrieves all the logs for WETH events specified in query in the given block range.
GET
https://api.expand.network/weth/historical/logs
Query Parameters
Starting block of the range.
by default latestBlock -100
Last block of the range.
by default its latestBlock
Sample Request
Copy https://api.expand.network/weth/historical/logs?type=Deposit
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"logs": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"topics": [
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
],
"params": {
"dst": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
"wad": "100000000000000000"
},
"data": "0x000000000000000000000000000000000000000000000000016345785d8a0000",
"blockNumber": "17320569",
"blockHash": "0xcbc13d3439e115dcb6203a45d82da137b7f546286224f29248192a7e428e29d6",
"timeStamp": "1684828271",
"gasPrice": "101893509354",
"gasUsed": "142805",
"logIndex": "0",
"transactionHash": "0xa36d80f70960af4a7f67145670e589795edd3fda2c3334eb7c6fce962f06d99e",
"transactionIndex": "4"
}
]
}
}
Kyberswap (Aggregator) /getprice
Returns the best swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Comma separated values of token addresses/token symbol whose price is to be fetched.
Sample Request
Copy https://api.expand.network/dex/getprice?dexId=2200&path=0xdAC17F958D2ee523a2206206994597C13D831ec7%2C0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amountIn=100000000000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"amountIn": "100000000000",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountsOut": [
"100000000000",
"43382075587262580147"
]
}
}
/getliquiditysources
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
GET
https://api.expand.network/dex/getliquiditysources
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/dex/getliquiditysources?dexId=2200
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
"KyberSwap Classic",
"KyberSwap Elastic",
"KyberSwap Limit Order",
"KyberSwap Limit Order V2",
"KyberSwap Professional Market Maker",
"Balancer Weighted",
"Balancer Composable",
"Curve (3pool, aave, saave, hbtc, ren, sbtc, eurs, link)",
"DefiSwap",
"DODO (v2)",
"Fraxswap",
"Lido stETH",
"Lido wstETH",
"Maker PSM",
"Maverick",
"PancakeSwap V2",
"PancakeSwap V3",
"POL",
"Saddle",
"ShibaSwap",
"SushiSwap",
"SushiSwap V3",
"Synapse",
"TraderJoe V21",
"Uniswap (v2)",
"Uniswap (v3)",
"Verse",
"Wombat"
]
}
/swap
Initiate a swap transaction on the DEX providing best swap quote.
POST
https://api.expand.network/dex/swap
Request Body
Comma-separated values of token addresses/token symbol, inside an array, to swap.
Amount of token to be swapped.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
Minimum amount accepted as the result of swap.
Address of the recipient of the token.
Sample Request
Copy {
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "400000",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000398543e51ebb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b77f2100000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c521a9000000000000000000003986bce644fc00000000000000000000000000000000000000000000000000000000000001e67b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e3134333535353530383637303938353032222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a22487945466c424777734e482b385a766a5253682b575462424d4737667a4c36776b72717439484a6f4b4c6549686f43646f4c6b76784c5545412f5a6175546e4d6f346b6353684b6f4e6f43504d393250696f55547537625a417762526236423931504544626f35526d7253794e635732694e38744634545759496b73646378436f44536354654b5a4f337941613654302b476e72755a3749795450744c7136394458306f524d5a316254502b34356f70367676587a475370413444727153777043574d4b6d53774c6630684678714831526b485841732f58783337774e656563395062564f436e396a392b514e61694174505576356e646f446455614776637048656f737374655a745250726830337a34674654526a4e45626e7078494d77504763353962377049417a54584f6a5248444f657244526d464568586e35306d38526474617a635a35724d3333412b4b67584a67426b673d3d227d7d0000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority:
Copy {
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424",
"gasPriority": "low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "359432",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000398543e51ebb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b780a500000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c521a9000000000000000000003986bce644fc00000000000000000000000000000000000000000000000000000000000001e67b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e3134333630323435323639373133333831222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a2251735059527375464e554e4a594470725352327145692f636448656b62736847674a58332b647345644e74654278415a504877335846477672506f722f38784248586f5a7a46347256773538552b664c76562f484664594f485a5533474342424b324b524743504d4143764541384133666f4c38544b7249446e6d66646c5770436e77554d46504157424c3055314f6d6e653755327263713551374656614d30722b3664336a464a6852436d6f557a39744973686e636953526c366974454869715451707069354b7252676f436c543937417a42495447615549337a4d4d466e4d515267364e7878626c32706d76776e794551456d66455774754d6a757a636c4e564a646f6171556d426e3057374141777967756d73766a6b3743717a416e705479534b302b4350374848596e4d6459504f466e35366952456d714e617a3264346e336a7665634c5a4f3678656b6136765a673936673d3d227d7d0000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With Slippage:
Copy {
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424",
"slippage": "10"
}
Sample Response
With Slippage:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "400000",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000039786faa92fb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b7842100000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c528cc00000000000000000000398729d1f3bd00000000000000000000000000000000000000000000000000000000000001e57b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e31343336333830363938383433353537222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a22624c72766c49306f6337306b47374b684579424d78677a306562484b352b79503045654177426e646a52724959624e3634797551353872664f756a4d666f773854787471766755724b357759704456363466656e446a4f5536437a522f494976634a423866594a6b4a4a46585362787933686946446f59672b43674f51387859595a58713344547534736a3963576b4435457361326c3773306872376157754c64443848345a4f6b4c32442f4d733362716d6e346c442b526543616f7638726b3257554c4450457633394a365738645976685359354459413767366b79596b5376695061684456396a6831454257753861337861455357435449443659596474614678504735624555756a32704c77797a633061536171675478317144366150366b455133503548454d754246686e466a64616a78685a517a5446754b504a43613841386e706939554670773476454c2f56507a79513d3d227d7d000000000000000000000000000000000000000000000000000000"
}
}
dYdX V4 Currently on testnet only. Additional Functionalities available in expand.network SDK: onboarding user, place order, transfer, deposit, and cancel order.
/getorders
Users can fetch details for all orders corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getorders
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/getorders?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"orders": [
{
"id": "5724e441-654f-5dc6-ac02-e8e4a7ecda2e",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"clientId": "3711471933",
"clobPairId": "1",
"side": "SELL",
"size": "0.01",
"totalFilled": "0",
"price": "2600",
"type": "LIMIT",
"status": "CANCELED",
"timeInForce": "GTT",
"reduceOnly": false,
"orderFlags": "64",
"goodTilBlockTime": "2024-01-10T10:42:45.000Z",
"createdAtHeight": "4993716",
"clientMetadata": "0",
"updatedAt": "2024-01-10T10:42:45.385Z",
"updatedAtHeight": "4993921",
"postOnly": true,
"ticker": "ETH-USD"
},
{
"id": "ff494eb3-d74e-5852-8aea-1ddabc4d9a37",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"clientId": "1594632561",
"clobPairId": "1",
"side": "BUY",
"size": "0.01",
"totalFilled": "0.01",
"price": "2600",
"type": "LIMIT",
"status": "FILLED",
"timeInForce": "GTT",
"reduceOnly": false,
"orderFlags": "64",
"goodTilBlockTime": "2024-01-10T10:31:42.000Z",
"createdAtHeight": "4993244",
"clientMetadata": "0",
"updatedAt": "2024-01-10T10:26:43.386Z",
"updatedAtHeight": "4993245",
"postOnly": false,
"ticker": "ETH-USD"
}
]
}
}
/getorder
Users can fetch details for a specific order using the specified order id.
GET
https://api.expand.network/derivative/getorder
Query Parameters
Order Id to fetch details of.
Sample Request
Copy https://api.expand.network/derivative/getorder?derivativeId=1000&orderId=5724e441-654f-5dc6-ac02-e8e4a7ecda2e
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"id": "5724e441-654f-5dc6-ac02-e8e4a7ecda2e",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"clientId": "3711471933",
"clobPairId": "1",
"side": "SELL",
"size": "0.01",
"totalFilled": "0",
"price": "2600",
"type": "LIMIT",
"status": "CANCELED",
"timeInForce": "GTT",
"reduceOnly": false,
"orderFlags": "64",
"goodTilBlockTime": "2024-01-10T10:42:45.000Z",
"createdAtHeight": "4993716",
"clientMetadata": "0",
"updatedAt": "2024-01-10T10:42:45.385Z",
"updatedAtHeight": "4993921",
"postOnly": true,
"ticker": "ETH-USD"
}
}
/getfills
Users can fetch the fill details of the order corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getfills
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/getfills?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"fills": [
{
"id": "025d1daa-3b12-5a65-a59a-fb57fefb6233",
"side": "BUY",
"liquidity": "TAKER",
"type": "LIMIT",
"market": "ETH-USD",
"marketType": "PERPETUAL",
"price": "2413.9",
"size": "0.01",
"fee": "0.01207",
"createdAt": "2024-01-10T10:41:20.668Z",
"createdAtHeight": "4993859",
"orderId": "25432d45-2ac7-5476-991e-5c37a5d53cf7",
"clientMetadata": "0"
},
{
"id": "1017f858-a126-520e-bf3f-a579f5cc6c40",
"side": "BUY",
"liquidity": "TAKER",
"type": "LIMIT",
"market": "ETH-USD",
"marketType": "PERPETUAL",
"price": "2413.9",
"size": "0.01",
"fee": "0.01207",
"createdAt": "2024-01-10T10:41:10.957Z",
"createdAtHeight": "4993853",
"orderId": "64900bdb-a4af-597f-897e-7d1ee7b3f9c5",
"clientMetadata": "0"
},
{
"id": "daae86a4-e125-5231-97e6-b1ea46174e3b",
"side": "BUY",
"liquidity": "TAKER",
"type": "LIMIT",
"market": "ETH-USD",
"marketType": "PERPETUAL",
"price": "2500",
"size": "0.01",
"fee": "0.0125",
"createdAt": "2024-01-10T10:40:55.682Z",
"createdAtHeight": "4993842",
"orderId": "e2d931c4-7236-50dd-853e-72db64c7c67a",
"clientMetadata": "0"
}
]
}
}
/getassets
Users can fetch a list of their assets deposited in dYdX corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getassets
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/getassets?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"assets": [
{
"size": "189.229062",
"symbol": "USDC",
"side": "SHORT",
"assetId": "0"
}
]
}
}
/gethistoricalpnl
Users can fetch the historical profit and loss corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/gethistoricalpnl
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/gethistoricalpnl?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"historicalPnL": [
{
"id": "4c3e3f94-ea28-5d34-8c60-95acc0e975fc",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"equity": "509.314640",
"totalPnl": "19.086934",
"netTransfers": "0.000000",
"createdAt": "2024-01-16T09:03:28.508Z",
"blockHeight": "5355500",
"blockTime": "2024-01-16T09:03:21.614Z"
},
{
"id": "ee9d8bc8-af28-5f91-8edd-2982c6ff42ee",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"equity": "509.314640",
"totalPnl": "19.086934",
"netTransfers": "0.000000",
"createdAt": "2024-01-16T09:02:58.369Z",
"blockHeight": "5355479",
"blockTime": "2024-01-16T09:02:52.074Z"
},
{
"id": "35420152-944c-5898-9465-42f4ec55bed4",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"equity": "509.314640",
"totalPnl": "19.086934",
"netTransfers": "0.000000",
"createdAt": "2024-01-16T09:02:28.204Z",
"blockHeight": "5355457",
"blockTime": "2024-01-16T09:02:21.962Z"
},
{
"id": "b7b5f39a-47d4-55f2-b46f-48795dd83be9",
"subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
"equity": "509.314640",
"totalPnl": "19.086934",
"netTransfers": "0.000000",
"createdAt": "2024-01-16T09:01:58.165Z",
"blockHeight": "5355434",
"blockTime": "2024-01-16T09:01:51.006Z"
}
]
}
}
/getperpetualpositions
Users can fetch the position corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/getperpetualpositions
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/getperpetualpositions?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"positions": [
{
"market": "ETH-USD",
"status": "OPEN",
"side": "LONG",
"size": "0.275",
"maxSize": "0.275",
"entryPrice": "2446.92727272727272727273",
"exitPrice": null,
"realizedPnl": "-0.30197",
"unrealizedPnl": "24.92914112499999999999925",
"createdAt": "2023-11-01T09:40:35.893Z",
"createdAtHeight": "882343",
"closedAt": null,
"sumOpen": "0.275",
"sumClose": "0",
"netFunding": "-0.30197"
},
{
"market": "ETH-USD",
"status": "CLOSED",
"side": "LONG",
"size": "0",
"maxSize": "0.01",
"entryPrice": "1851.3",
"exitPrice": "1849.8",
"realizedPnl": "-0.015",
"unrealizedPnl": "0",
"createdAt": "2023-10-26T08:22:15.515Z",
"createdAtHeight": "532122",
"closedAt": "2023-10-26T08:22:23.632Z",
"sumOpen": "0.01",
"sumClose": "0.01",
"netFunding": "0"
},
{
"market": "ETH-USD",
"status": "CLOSED",
"side": "SHORT",
"size": "0",
"maxSize": "-0.005",
"entryPrice": "1847.1",
"exitPrice": "1851.2",
"realizedPnl": "-0.0205",
"unrealizedPnl": "0",
"createdAt": "2023-10-26T07:52:16.125Z",
"createdAtHeight": "531124",
"closedAt": "2023-10-26T07:59:24.633Z",
"sumOpen": "0.005",
"sumClose": "0.005",
"netFunding": "0"
}
]
}
}
/getsubaccounts
Users can fetch the details of a sub-account corresponding to the specified address.
GET
https://api.expand.network/derivative/getsubaccounts
Query Parameters
Sample Request
Copy https://api.expand.network/derivative/getsubaccounts?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"subaccounts": [
{
"address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
"subaccountNumber": 0,
"equity": "507.190302025",
"freeCollateral": "472.36933382375",
"openPerpetualPositions": {
"ETH-USD": {
"market": "ETH-USD",
"status": "OPEN",
"side": "LONG",
"size": "0.275",
"maxSize": "0.275",
"entryPrice": "2446.92727272727272727273",
"exitPrice": null,
"realizedPnl": "-0.30197",
"unrealizedPnl": "23.51436402499999999999925",
"createdAt": "2023-11-01T09:40:35.893Z",
"createdAtHeight": "882343",
"closedAt": null,
"sumOpen": "0.275",
"sumClose": "0",
"netFunding": "-0.30197"
}
},
"assetPositions": {
"USDC": {
"size": "189.229062",
"symbol": "USDC",
"side": "SHORT",
"assetId": "0"
}
},
"marginEnabled": true
}
]
}
}
/gettransfers
Users can fetch the details of the transfer transaction corresponding to the specified address and the specified sub-account number.
GET
https://api.expand.network/derivative/gettransfers
Query Parameters
Number of the sub account.
Sample Request
Copy https://api.expand.network/derivative/gettransfers?derivativeId=1000&address=dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d&subAccountNumber=0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transfers": [
{
"id": "a5a2714e-d9c9-5484-8bc4-8617b0c99954",
"sender": {
"address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
"subaccountNumber": 0
},
"recipient": {
"address": "dydx1eym66guf6xet6zl8c7h2h4c5hn4pglc75t2fem"
},
"size": "0.007239",
"createdAt": "2024-01-15T15:42:48.451Z",
"createdAtHeight": "5309897",
"symbol": "USDC",
"type": "WITHDRAWAL",
"transactionHash": "B61FCF59F5AAE8E7F4D6C72D91B82050A825E41634DF457D9C2B90CDDCA20D2C"
},
{
"id": "64b0c1f2-c8d8-529c-b2ee-f6a9617159b1",
"sender": {
"address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
"subaccountNumber": 0
},
"recipient": {
"address": "dydx150c8hssycjem2p9yfs9pa2xm4jjuvkn6t6w3v6"
},
"size": "0.007401",
"createdAt": "2024-01-15T15:39:57.986Z",
"createdAtHeight": "5309772",
"symbol": "USDC",
"type": "WITHDRAWAL",
"transactionHash": "2F53FEAD71475DDA345AE2566851A6CEA10126047D0BDDC29D147DE47DCCDCB7"
},
{
"id": "bee619f9-04bd-5756-b095-39a35078b6da",
"sender": {
"address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
"subaccountNumber": 0
},
"recipient": {
"address": "dydx1yt75rda3x7zxun8pcf3gtpt7mp5ultg0u9z43e"
},
"size": "0.00724",
"createdAt": "2024-01-09T18:38:12.582Z",
"createdAtHeight": "4954546",
"symbol": "USDC",
"type": "WITHDRAWAL",
"transactionHash": "B8FCB72797B3C8772478A3B05D1DCE63A1BA96B99B359144A8DA8ADF2739EECE"
}
]
}
}
Aave V3 /getpool
Get the lend and borrow APY for the given pool from AAVE protocol.
GET
https://api.expand.network/lendborrow/getpool
Query Parameters
Remote procedural call URL.
Token address to get the details of.
Sample Request
Copy https://api.expand.network/lendborrow/getpool?lendborrowId=1200&asset=0x6b175474e89094c44da98b954eedeac495271d0f
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
"variableBorrowRate": "4.25",
"stableBorrowRate": "6.42",
"variableSupplyRate": "0",
"stableSupplyRate": "2.92"
}
}
/getpools
Get the list of supply and borrow APYs of the mentioned assets.
GET
https://api.expand.network/lendborrow/getpools
Query Parameters
Comma-separated values of token address.
The public address of the sender.
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/lendborrow/getpools?lendborrowId=1200&assets=0x6b175474e89094c44da98b954eedeac495271d0f,0xdac17f958d2ee523a2206206994597c13d831ec7
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"DAI": {
"tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
"variableBorrowRate": "4.25",
"stableBorrowRate": "6.42",
"variableSupplyRate": "0",
"stableSupplyRate": "2.92",
"tokenSymbol": "DAI"
},
"USDT": {
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"variableBorrowRate": "3.89",
"stableBorrowRate": "8.89",
"variableSupplyRate": "0",
"stableSupplyRate": "2.72",
"tokenSymbol": "USDT"
}
}
}
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
GET
https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
Remote procedural call URL.
Public address of sender.
Interest mode as per Aave. Is set '1' as default.
Sample Request
Copy https://api.expand.network/lendborrow/getuseraccountdata?interestRateMode=1&address=0x6fCe63859a859a0f30eD09B12F5010d790618ca4&asset=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&lendborrowId=1200
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"repayAmount": "0",
"borrowAmount": "9549775239",
"borrowErrorMessage": "The Stable Rate is not enabled for this currency",
"withdrawAmount": "15061255968"
}
}
/borrow
Trigger the borrow transaction from the given protocol.
POST
https://api.expand.network/lendborrow/borrow
Request Body
Number of tokens to be borrowed.
Interest mode as per Aave. 0 for static and 1 for variable.
Referral code needed by Aave.
Required in case borrow need to be done on behalf of other public address.
Maximum gas to be approved for transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
"amount": "100",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"onBehalfOf": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"interestRateMode": "2",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId":"1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0xa415bcad00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45"
}
}
Sample Request
With gasPriority (low):
Copy {
"lendborrowId": "1200",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"onBehalfOf": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"interestRateMode": "2",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0xa415bcad0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e",
"gasPrice": "20468560119"
}
}
/deposit
Trigger the deposit transaction from the given protocol.
POST
https://api.expand.network/lendborrow/deposit
Request Body
Token address to deposit.
Number of tokens to deposit.
Referral code needed by Aave.
Required in case deposit need to be done on behalf of other public address.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
0 for any ERC-20 token,
1 for ETH.
Sample Request
Copy {
"lendborrowId": "1200",
"asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
"amount": "10000000000000000",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"onBehalfOf": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0xe8eda9df00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a450000000000000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority (medium):
Copy {
"lendborrowId": "1200",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "10000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"onBehalfOf": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "218622",
"data": "0xe8eda9df0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000fae7d9854995e28beb1b1da864ee2a1e2ec17f070000000000000000000000000000000000000000000000000000000000000000"
}
}
/liquidate
Trigger the liquidate transaction from the given protocol.
POST
https://api.expand.network/lendborrow/liquidate
Request Body
Address of the collateral token.
Address of the debt token.
Public address of the user whose account need to be liquidated.
Amount of debt to be covered.
Amount of token A to be received.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
/repay
Trigger the repay transaction from the given protocol.
POST
https://api.expand.network/lendborrow/repay
Request Body
Interest mode as per Aave. 0 for static and 1 for variable.
Required in case repay need to be done on behalf of other public address.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amount": "100000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"interestRateMode": "1",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0x573ade81000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}
Sample Request
With gasPriority (low):
Copy {
"lendborrowId": "1200",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"onBehalfOf": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"interestRateMode": "2",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0x573ade810000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e",
"gasPrice": "20820034647"
}
}
/withdraw
Trigger the withdraw transaction from the given protocol.
POST
https://api.expand.network/lendborrow/withdraw
Request Body
Token address to be withdraw.
Number of tokens to withdraw.
Recipient public address.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"asset": "0x65afadd39029741b3b8f0756952c74678c9cec93",
"amount": "10000000000000000",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0x69328dec00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1200",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "100000000",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "234416",
"data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e"
}
}
/migrate
Trigger the migrate transaction from the given protocol.
POST
https://api.expand.network/lendborrow/migrate
Request Body
Token addresses to migrate.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"assets": [
"0x6b175474e89094c44da98b954eedeac495271d0f"
],
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"gas": "329000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "329000",
"data": "0x69328dec00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec930000000000000000000000000000000000000000000000000000000000000064000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1200",
"assets": [
"0x6b175474e89094c44da98b954eedeac495271d0f"
],
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"gas": "329000",
"gasPriority": "medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xb748952c7bc638f31775245964707bcc5ddfabfc",
"value": "0",
"gas": "408298",
"data": "0x3698d492000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
/setuseremode
Trigger the E-Mode options for the user.
POST
https://api.expand.network/lendborrow/setuseremode
Request Body
0 for default. 1 for stablecoins.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"categoryId": "1",
"gas": "408298"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0x28530a470000000000000000000000000000000000000000000000000000000000000001"
}
}
Sample Request
With gasPriority (low):
Copy {
"lendborrowId": "1200",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"categoryId": "1",
"gas": "408298",
"gasPriority":"low"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "72994",
"data": "0x28530a470000000000000000000000000000000000000000000000000000000000000001"
}
}
/exitisolationmode
Trigger the exit of isolation mode options for the user.
POST
https://api.expand.network/lendborrow/exitisolationmode
Request Body
Token address to exit isolation mode.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Sample Request
Copy {
"lendborrowId": "1200",
"asset": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
"gas": "429000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "429000",
"data": "0x5a3b74b90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a20000000000000000000000000000000000000000000000000000000000000000"
}
}
Sample Request
With gasPriority:
Copy {
"lendborrowId": "1200",
"asset": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
"gas": "429000",
"gasPriority": "medium"
}
Sample Response
With gasPriority:
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xf7426829DBAAc7F26b48C49A04a93fc4f75cfa41",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"data": "0x5a3b74b90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a20000000000000000000000000000000000000000000000000000000000000000"
}
}
WinkLink /getprice
Get the Price(in USDT) of a token for the given protocol.
GET
https://api.expand.network/oracle/getprice
Query Parameters
/getsupportedtokens
Get the list of supported tokens on Expand.network, for WinkLink.
GET
https://api.expand.network/oracle/getsupportedtokens
Query Parameters
ERC721 /getbalance
Retrieves the number of NFTs held in the owner's account. Currently available on Ethereum, Polygon, BSC, Avalanche, and zkSync.
GET
https://api.expand.network/nft/getbalance
Query Parameters
/getmetadata
Retrieves the metadata for the specified NFT. Currently available on Ethereum, Polygon, BSC, Avalanche, and zkSync.
GET
https://api.expand.network/nft/getmetadata
Query Parameters
/getowner
Retrieves the owner of the specified token ID. Currently available on Ethereum, Polygon, BSC, Avalanche, and zkSync.
GET
https://api.expand.network/nft/getowner
Query Parameters
/historical/transactions
Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range. Currently available on ethereum.
GET
https://api.expand.network/nft/historical/transactions
Query Parameters
/historical/logs
Retrieves historical logs for any nftCollection. Currently available on ethereum.
GET
https://api.expand.network/nft/historical/logs
Query Parameters
Compound V2 /getpool
Get the lend and borrow APY for the given pool from the given protocol.
GET
https://api.expand.network/lendborrow/getpool
Query Parameters
/getpools
Get the list of supply and borrow APYs of the mentioned assets.
GET
https://api.expand.network/lendborrow/getpools
Query Parameters
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
GET
https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
/entermarketstatus
Checks whether the user approved before depositing.
GET
https://api.expand.network/lendborrow/entermarketstatus
Query Parameters
/entermarket
Compound needs the user to approve before they can start deposit.
POST
https://api.expand.network/lendborrow/entermarket
Query Parameters
/borrow
Trigger the withdraw transaction from the given protocol.
POST
https://api.expand.network/lendborrow/borrow
Request Body
Sample Request
With gasPriority (medium):
/deposit
Trigger the deposit transaction from the given protocol.
POST
https://api.expand.network/lendborrow/deposit
Request Body
Sample Request
With gasPriority (medium):
/liquidate
Trigger the liquidate transaction from the given protocol
POST
https://api.expand.network/lendborrow/liquidate
Request Body
/repay
Trigger the repay transaction from the given protocol.
POST
https://api.expand.network/lendborrow/repay
Request Body
Sample Request
With gasPriority (medium):
/withdraw
Trigger the withdraw transaction from the given protocol.
POST
https://api.expand.network/lendborrow/withdraw
Request Body
Sample Request
With gasPriority (medium):
/exitmarket
Trigger the exit market transaction for the given protocol
POST
https://api.expand.network/lendborrow/exitmarket
Request Body
Sample Request
With gasPriority (medium):
Following is the list of supported tokens :
Token List - Mainnet Token List - TestnetLido V2 /getapr
Get the Lido staking APR on Ethereum.
GET
https://api.expand.network/liquidstaking/getapr
Query Parameters
/getrewards
Get the stETH interactions by a specified user address along with the daily stETH rewards.
GET
https://api.expand.network/liquidstaking/getrewards
Query Parameters
/getstake
Get the amount of stETH and wstETH staked on Lido by a specified address.
GET
https://api.expand.network/liquidstaking/getstake
Query Parameters
/getwithdrawalrequests
Get all the withdrawal requests(NFT ids) made by a specified address.
GET
https://api.expand.network/liquidstaking/getwithdrawalrequests
Query Parameters
/getwithdrawalstatus
Get the status of a withdrawal request made by a specified address.
GET
https://api.expand.network/liquidstaking/getwithdrawalstatus
Query Parameters
/getprotocolapr
Get the Lido staking APR on Ethereum, for the past 7 days.
GET
https://api.expand.network/liquidstaking/getprotocolapr
Query Parameters
/getallowance
Get the approved allowance amount set by the owner for the spender.
GET
https://api.expand.network/liquidstaking/getallowance
Query Parameters
/stake
Initiate a transaction to stake on Lido.
POST
https://api.expand.network/liquidstaking/stake
Query Parameters
/wrap
Initiate a transaction to wrap stETH to wstETH.
POST
https://api.expand.network/liquidstaking/wrap
Query Parameters
/unwrap
Initiate a transaction to unwrap wstETH to stETH.
POST
https://api.expand.network/liquidstaking/unwrap
Query Parameters
/increaseallowance
Initiate a transaction to increase the allowance of stETH or wstETH on the spender’s account.
POST
https://api.expand.network/liquidstaking/increaseallowance
Query Parameters
/decreaseallowance
Initiate a transaction to decrease the allowance of stETH or wstETH on the spender’s account.
POST
https://api.expand.network/liquidstaking/decreaseallowance
Query Parameters
/approvewithdrawal
Initiate a transaction to approve the withdrawal request from a specified address.
POST
https://api.expand.network/liquidstaking/approvewithdrawal
Query Parameters
/requestwithdrawal
Initiate a transaction to request a withdrawal on Lido.
POST
https://api.expand.network/liquidstaking/requestwithdrawal
Query Parameters
/claim
Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.
POST
https://api.expand.network/liquidstaking/claim
Query Parameters
Refer to the page for details.
Refer to the page for details.
Refer to the page for more details.
Refer to the page for more details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
An array of strings that correspond to the actions. Refer for details.
An array of calldatas for each action to be called in the invoke transaction. Refer for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Name of the token, whose price is to be fetched.
Copy https://api.expand.network/oracle/getprice?asset=usdc&oracleId=1100
Copy {
"status": 200,
"msg": "success",
"data": {
"roundId": "445",
"answer": "0.99995",
"startedAt": "1675306176",
"updatedAt": "1675306188",
"answeredInRound": "445"
}
}
Copy https://api.expand.network/oracle/getsupportedtokens?oracleId=1100
Copy {
"status": 200,
"msg": "success",
"data": [
"BTC",
"ETH",
"TRX",
"USDT",
"WIN",
"BTT",
"BTTOLD",
"JST",
"LIVE",
"LTC",
"NFT",
"SUN",
"SUNOLD",
"TUSD",
"USDC",
"USDD",
"USDJ"
]
}
Copy https://api.expand.network/nft/getbalance?nftCollection=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D&address=0xc5c7b46843014B1591e9aF24de797156cde67f08
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "2"
}
}
Copy https://api.expand.network/nft/getmetadata?nftCollection=0x5af0d9827e0c53e4799bb226655a1de152a425a5
Copy {
"status": 200,
"msg": "success",
"data": {
"name": "Milady",
"symbol": "MIL"
}
}
Copy https://api.expand.network/nft/getowner?nftIndex=1000&nftCollection=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
Copy {
"status": 200,
"msg": "success",
"data": {
"owner": "0x68761dE35422d8e36d18dC2F7f6313a58c1a3616"
}
}
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"blockNumber": "18968332",
"timeStamp": "1704790283",
"hash": "0x719286621b2b2e4aeda8e61a0ce2e58bd6f4806d1d411653172ec5380ec2c3d6",
"nonce": "722",
"blockHash": "0x6929852257b9d94b5f9b5908d851a25488d3a2afd11c103229f7a8fb305b5898",
"from": "0x2efdb6dd6daa243fdf30cac2391adb8350d5e322",
"contractAddress": "0x306b1ea3ecdf94ab739f1910bbda052ed4a9f949",
"to": "0xae78174d3ab843dd349acb975ed1b3b1431a55e8",
"tokenID": "769",
"tokenName": "Beanz",
"tokenSymbol": "BEANZ",
"tokenDecimal": "0",
"transactionIndex": "43",
"gas": "173141",
"gasPrice": "16138857662",
"gasUsed": "128215",
"cumulativeGasUsed": "9277786",
"input": "deprecated",
"confirmations": "513",
"methodId": "0x00000000",
"methodSignature": "get_block_hash_257335279069929(uint256)"
},
...
]
}
}
Copy https://api.expand.network/nft/historical/logs?chainId=1&nftCollection=0x08D7C0242953446436F34b4C78Fe9da38c73668d&type=Transfer&startBlock=17146713&endBlock=17157177
Copy {
"status": 200,
"msg": "success",
"data": {
"logs": [
{
"address": "0x08d7c0242953446436f34b4c78fe9da38c73668d",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000050d36f27872f637ec9ecb4eedff300df44a608ab",
"0x000000000000000000000000fcbe7b6da18a08a86ab1beb68c7372a60ab4e331",
"0x00000000000000000000000000000000000000000000000000000000000003d5"
],
"params": {
"from": "0x50d36f27872f637ec9ecb4eedff300df44a608ab",
"to": "0xfcbe7b6da18a08a86ab1beb68c7372a60ab4e331",
"tokenId": "981"
},
"data": "0x",
"blockNumber": "17147007",
"blockHash": "0x0af8cae4fce3cabdad9dbcac77ba4761afea961c040817ea835260ea6d56703a",
"timeStamp": "1682713763",
"gasPrice": "35684114147",
"gasUsed": "267808",
"logIndex": "250",
"transactionHash": "0x0eb9b987533eee819a1509b5e50691438d0de6f9c43b46973fdd2516eccefd97",
"transactionIndex": "98"
},
...
}
]
}
}
Copy https://api.expand.network/lendborrow/getpool?lendborrowId=1100&asset=usdc
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "USDC",
"variableBorrowRate": "0",
"stableBorrowRate": "3.219941694305528",
"variableSupplyRate": "0",
"stableSupplyRate": "1.5063202247327823"
}
}
Copy https://api.expand.network/lendborrow/getpools?lendborrowId=1100&assets=USDT,usDC,rep
Copy {
"status": 200,
"msg": "success",
"data": {
"USDC": {
"tokenAddress": "USDC",
"variableBorrowRate": "0",
"stableBorrowRate": "3.219941694305528",
"variableSupplyRate": "0",
"stableSupplyRate": "1.5063202247327823"
},
"REP": {
"tokenAddress": "REP",
"variableBorrowRate": "0",
"stableBorrowRate": "4.494254165428835",
"variableSupplyRate": "0",
"stableSupplyRate": "0"
},
"USDT": {
"tokenAddress": "USDT",
"variableBorrowRate": "0",
"stableBorrowRate": "3.902193315007918",
"variableSupplyRate": "0",
"stableSupplyRate": "2.2052582917344132"
}
}
}
Copy https://api.expand.network/lendborrow/getuseraccountdata?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1100&asset=DAI
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
"repayAmount": "1004263016205359327",
"borrowAmount": "344493657709312839",
"withdrawAmount": "0"
}
}
Copy https://api.expand.network/lendborrow/entermarketstatus?account=0x6Fb447Ae94F5180254D436A693907a1f57696900&lendborrowId=1100
Copy {
"status": 200,
"msg": "success",
"data": {
"enterMarketStatus": [
"0x20572e4c090f15667cF7378e16FaD2eA0e2f3EfF",
"0x822397d9a55d0fefd20F5c4bCaB33C5F65bd28Eb",
"0xCEC4a43eBB02f9B80916F1c718338169d6d5C1F0"
]
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "298800"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x627ea49279fd0de89186a58b8758ad02b6be2867",
"value": "0",
"gas": "298800",
"data": "0xc2998238000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000545a8eaf7ff6bb6f708cbb544ea55dbc2ad7b2a"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "298800",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"value": "0",
"gas": "119508",
"data": "0xc2998238000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "100000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "442020"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x0545a8eaf7ff6bb6f708cbb544ea55dbc2ad7b2a",
"value": "0",
"gas": "442020",
"data": "0xc5ebeaec00000000000000000000000000000000000000000000000000000000000186a0"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "100000000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "192020",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
"value": "0",
"gas": "332578",
"data": "0xc5ebeaec00000000000000000000000000000000000000000000000000005af3107a4000"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "1000000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "192020"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x0545a8eaf7ff6bb6f708cbb544ea55dbc2ad7b2a",
"value": "0",
"gas": "192020",
"data": "0xa0712d680000000000000000000000000000000000000000000000000de0b6b3a7640000"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "100000000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "192020",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
"value": "0",
"gas": "200285",
"data": "0xa0712d6800000000000000000000000000000000000000000000000000005af3107a4000"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "100000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "152020"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x0545a8eaf7ff6bb6f708cbb544ea55dbc2ad7b2a",
"value": "0",
"gas": "152020",
"data": "0x0e75270200000000000000000000000000000000000000000000000000000000000186a0"
}
}
Copy {
"lendborrowId": "1100",
"asset": "USDC",
"amount": "100000000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "192020",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
"value": "0",
"gas": "178464",
"data": "0x0e75270200000000000000000000000000000000000000000000000000005af3107a4000"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "1000000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "312020"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x0545a8eaf7ff6bb6f708cbb544ea55dbc2ad7b2a",
"value": "0",
"gas": "312020",
"data": "0xdb006a750000000000000000000000000000000000000000000000000de0b6b3a7640000"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"amount": "100000000000",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "192020",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643",
"value": "0",
"gas": "265723",
"data": "0x852a12e3000000000000000000000000000000000000000000000000000000174876e800"
}
}
Copy {
"lendborrowId": "1100",
"asset": "dai",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "40000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"value": "0",
"gas": "40000",
"data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643"
}
}
Copy {
"lendborrowId": "1100",
"asset": "DAI",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"gas": "40000",
"gasPriority":"medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"value": "0",
"gas": "161845",
"data": "0xede4edd00000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643"
}
}
Copy https://api.expand.network/liquidstaking/getapr?liquidStakingId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"timeUnix": 1712751839,
"apr": 3.36,
"blockNumber": 19625206
}
}
Copy https://api.expand.network/liquidstaking/getrewards?address=0xf51F9dbB95B03f0DC60C79BC7dFEB958cb1C8962&page=1
Copy {
"status": 200,
"msg": "success",
"data": {
"events": [
{
"apr": "3.937496701524082809229480683079713",
"block": "18634427",
"blockTime": "1700742443",
"id": "0x03f3622b45a9edbfe95325ff82295f5607bad59b0ad2c685b9466a9095ac61da",
"logIndex": "10",
"totalPooledEtherAfter": "9157899107759077846808314",
"totalPooledEtherBefore": "9166748915742419188288274",
"totalSharesAfter": "7979812024150962005298647",
"totalSharesBefore": "7988385045435518208987747",
"type": "reward",
"reportShares": "18867868971733625201",
"balance": "21653397335501660877",
"rewards": "2335643397182351",
"change": "2335643397182351",
"currencyChange": "4.826179060422565701819216607798",
"epochDays": "19684.519016203703703704",
"epochFullDays": "19684"
},
{
"apr": "4.055508196694252655350449732776334",
"block": "18627274",
"blockTime": "1700656079",
"id": "0xd675c60b908931ab56b5fdabe6ef9e2c087c98d35d90fc1469bfa66767488628",
"logIndex": "10",
"totalPooledEtherAfter": "9102161623476534577713402",
"totalPooledEtherBefore": "9107756642154064122216622",
"totalSharesAfter": "7932100296676238065535304",
"totalSharesBefore": "7937857964883158472876527",
"type": "reward",
"reportShares": "18867868971733625201",
"balance": "21651061692104478526",
"rewards": "2405378167906481",
"change": "2405378167906481",
"currencyChange": "4.6676294187476755809931606548492",
"epochDays": "19683.51943287037037037",
"epochFullDays": "19683"
}
],
"totals": {
"ethRewards": "653197335501660878",
"currencyRewards": "1173.1516994959593645694978037777253"
},
"averageApr": "4.30030827194990587",
"ethToStEthRatio": 1.000684768587144,
"stETHCurrencyPrice": {
"eth": 0.9993157,
"usd": 3084.04
},
"totalItems": 260
}
Copy https://api.expand.network/liquidstaking/getstake?address=0x1d33ab0aF40ee6e5f59C7D1362cb56D35b7A0909
Copy {
"status": 200,
"msg": "success",
"data": {
"stETH": "1",
"wstETH": "0"
}
}
Copy https://api.expand.network/liquidstaking/getwithdrawalrequests?ownerAddress=0x0AAEf336811136c176100092E24cEe3794389B19
Copy {
"status": 200,
"msg": "success",
"data": [
"7"
]
}
Copy https://api.expand.network/liquidstaking/getwithdrawalstatus?requestId=7
Copy {
"status": 200,
"msg": "success",
"data": {
"amountOfStETH": "10000000000000",
"amountOfShares": "8895462062243",
"owner": "0x0AAEf336811136c176100092E24cEe3794389B19",
"timestamp": "1684163999",
"isFinalized": true,
"isClaimed": false
}
}
Copy https://api.expand.network/liquidstaking/getprotocolapr?liquidStakingId=1
Copy {
"status": 200,
"msg": "success",
"data": {
"aprs": [
{
"timeUnix": 1712492591,
"apr": 3.041,
"blockNumber": 19603793
},
{
"timeUnix": 1712579075,
"apr": 3.148,
"blockNumber": 19610931
},
{
"timeUnix": 1712665379,
"apr": 3.22,
"blockNumber": 19618058
},
{
"timeUnix": 1712751839,
"apr": 3.36,
"blockNumber": 19625206
},
{
"timeUnix": 1712838191,
"apr": 3.45,
"blockNumber": 19632355
},
{
"timeUnix": 1712924531,
"apr": 3.146,
"blockNumber": 19639495
},
{
"timeUnix": 1713011063,
"apr": 4.31,
"blockNumber": 19646630
},
{
"timeUnix": 1713097271,
"apr": 4.436,
"blockNumber": 19653737
}
],
"smaApr": 3.513875
}
}
Copy https://api.expand.network/liquidstaking/getallowance?owner=0x6427B4b028c4A1db5fb5dAf80C22e81115457230&liquidStakingId=1&tokenAddress=0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84&spender=0x6427B4b028c4A1db5fb5dAf80C22e81115457230
Copy {
"status": 200,
"msg": "success",
"data": {
"allowance": "999000000000000000000"
}
}
Copy {
"value": "1000000",
"referrer": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"data": "0xa1903eab000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97",
"value": "1000000",
"gas": "40000000"
}
}
Copy {
"value": "1000000",
"referrer": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"data": "0xa1903eab000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97",
"value": "1000000",
"gas": "40000000",
"gasPrice": "16257885700"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"amount": "100000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xea598cb000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"amount": "100000",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xea598cb000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000",
"gasPrice": "12993920831"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"amount": "100000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xde0e9a3e00000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"amount": "100000",
"gasPriority": "high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xde0e9a3e00000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000",
"gasPrice": "20626619243"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"addedValue": "100000",
"spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0x395093510000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"addedValue": "100000",
"spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"gasPriority": "high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0x395093510000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000",
"gasPrice": "20998483388"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"subtractedValue": "100000",
"spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xa457c2d70000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"subtractedValue": "100000",
"spender": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"tokenAddress": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"gasPriority": "low"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"data": "0xa457c2d70000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000000000000000000000000000000000000000186a0",
"value": "0",
"gas": "40000000",
"gasPrice": "14280979987"
}
}
Copy {
"liquidStakingId": "1",
"amount": "1000000",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"data": "0x095ea7b3000000000000000000000000889edc2edab5f40e902b864ad4d7ade8e412f9b100000000000000000000000000000000000000000000000000000000000f4240",
"gas": "40000000",
"value": "0"
}
}
Copy {
"liquidStakingId": "1",
"amount": "1000000",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"gasPriority": "high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"data": "0x095ea7b3000000000000000000000000889edc2edab5f40e902b864ad4d7ade8e412f9b100000000000000000000000000000000000000000000000000000000000f4240",
"gas": "40000000",
"value": "0",
"gasPrice": "22981387448"
}
}
Copy {
"liquidStakingId": "1",
"amount": "1000000",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"ownerAddress": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
"data": "0xd66810420000000000000000000000000000000000000000000000000000000000000040000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000f4240",
"gas": "40000000",
"value": "0"
}
}
Copy {
"liquidStakingId": "1",
"amount": "1000000",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"ownerAddress": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"gasPriority": "low"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
"data": "0xd66810420000000000000000000000000000000000000000000000000000000000000040000000000000000000000000747b11e5aacef79cd78c78a8436946b00de30b97000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000f4240",
"gas": "40000000",
"value": "0",
"gasPrice": "12312495875"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"requestId": "7"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
"data": "0xf84444360000000000000000000000000000000000000000000000000000000000000007",
"gas": "40000000",
"value": "0"
}
}
Copy {
"liquidStakingId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"gas": "40000000",
"requestId": "7",
"gasPriority": "high"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x747b11E5AaCeF79cd78C78a8436946b00dE30b97",
"to": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1",
"data": "0xf84444360000000000000000000000000000000000000000000000000000000000000007",
"gas": "40000000",
"value": "0",
"gasPrice": "22170891345"
}
}
Yield Aggregator Provides connectivity across the various Yield Aggregator protocols.
Following are the common functions implemented for all the Yield Aggregator protocols:-
Get balance of the user in a given Vault or Pool (harvest finance).
Get the number of the vaults along with the respective vault APY.
Trigger the deposit transaction for the given vault.
Trigger the deposit transaction for the given pool.
Trigger the withdraw transaction for the given vault.
Trigger the withdraw transaction for the given pool.
Synthetic Following are the common functions implemented for all the Synthetic protocols:-
Get the exchange amount in Protocol Tokens for entered Pegged Tokens.
Stablecoin A StableCoin is a digital currency pegged to a “stable ” reserve asset like the U.S. dollar.
The following are the common functions implemented for StableCoin:-
Get the Price of a stablecoin.
Currently, we support the following stablecoins:-
Price Discovery Price discovery is a tool that helps the user to track on-chain data in real-time like transactions of particular addresses. In a decentralized exchange (DEX), the price of an asset can fluctuate based on the action of users, such as swapping, adding/removing liquidity transactions, and can be influenced by factors such as trading volume and the availability of liquidity.
Currently, we support Stream Transaction. We are actively working on the release of Pending Transactions and other significant events.
Why use Stream Transaction?
Stream transactions allow multiple trades to be bundled together and processed as a single transaction on the blockchain. Additionally, stream transactions can enable trading to occur off-chain, which can further improve the speed and efficiency of the trading process.
Stream Trade Stream trade is a method used to obtain the prices of a specific pair of tokens across multiple decentralized exchanges (DEXs).
Response Schema:
States whether the transaction is from CEX or DEX.
Specific name of CEX or DEX platform.
Streaming trades:
Users can stream trades in two ways:
Example 1: via wscat script (For Linux based distro)
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing wscat, the user needs to create a shell script and paste the following sample code:
Client Side Sample Socket Code :
Copy #!/bin/bash
echo "Price Discovery\n"
read -p "x-api-key: " YOUR_API_KEY
wscat -c wss://pricediscovery.expand.network -H authorization:secret-token -H x-api-key:$YOUR_API_KEY
Copy chmod +x YOUR_FILE_NAME.sh
After following the above steps, the user needs to run the file. This can be done by entering the filename in the console.
Executing a query :
After executing the aforementioned file(shell script), the user will be prompted to input the appropriate API key.
After entering the API key, the user can subscribe to the following actions:
Copy {"action": "streamTrade"}
Applying a filter in the query :
Users can apply the following filters in their query:-
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "streamTrade", "token0": "token_address", "token1": "token_address" }
Sample Query :
Copy {"action": "streamTrade", "token0": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "token1": "0xdAC17F958D2ee523a2206206994597C13D831ec7" }
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action: "streamTrade",
token0: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
token1: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy {
"type": "DEX",
"platform": "UniswapV2",
"symbol": "ETHUSDT",
"price": "1731798672"
}
How to disconnect:
To disconnect from our API, enter ctrl-c
in the connected console.
Stream Transaction Stream transactions will help you to track the activity of the subscribed address on the blockchain.
Response Schema:
Ethereum address of the sender of the transaction.
Gas provided by the sender.
Amount of Ether that the sender is willing to pay for each unit of gas.
The data sent along with the transaction.
Unique value that is incremented with each transaction and is unique to each account.
Signature values that are used to verify the transaction's authenticity.
Ethereum address of the recipient of the transaction.
Integer of the transactions index position in the block.
Amount of Ether to be transferred in the transaction.
Streaming transactions:
Users can stream transactions in two ways:
Example 1: via wscat script (For Linux based distro)
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing wscat, the user needs to create a shell script and paste the following sample code:
Client Side Sample Socket Code :
Copy #!/bin/bash
echo "Price Discovery\n"
read -p "x-api-key: " YOUR_API_KEY
wscat -c wss://pricediscovery.expand.network -H authorization:secret-token -H x-api-key:$YOUR_API_KEY
Copy chmod +x YOUR_FILE_NAME.sh
After following the above steps, the user needs to run the file. This can be done by entering the filename in the console.
Executing a query :
After executing the aforementioned file(shell script), the user will be prompted to input the appropriate API key.
After entering the API key, user can subscribe to following actions:
Copy {"action": "streamTransactions"}
Applying a filter in the query :
Users can apply the following filters in their query:-
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "streamTransactions", "addresses": "array_of_strings", "minAmount": "minimum_amount_in_wei", "maxAmount": "maximum_amount_in_wei"}
Sample Query :
Copy {"action": "streamTransactions", "addresses": ["0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5"], "minAmount": "0", "maxAmount": "1000000000000000000000000000000000000"}
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action: "streamTransactions",
addresses: ["0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5"],
minAmount: "0",
maxAmount: "10000000000000000000000000000000000000000000"
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy {
"blockHash": "0x528f4648ffd86cf89f0bd331cdad2185193bedf183c239235c3a84e83f9aa03c",
"blockNumber": 16461655,
"chainId": "0x1",
"from": "0x27E1D375B3Bed078EcA97a5132A8e702ff222528",
"gas": 502594,
"gasPrice": "17409031646",
"hash": "0x0d1775fc18e65485aced1ccbcdb333ef7a16f2312198e68a553452b957957379",
"input": "0x791ac9470000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000057a67078b9a31b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000027e1d375b3bed078eca97a5132a8e702ff2225280000000000000000000000000000000000000000000000000000000063cd0c0e000000000000000000000000000000000000000000000000000000000000000200000000000000000000000077c67b8401d8dca854a3a0929c85ed030b76f670000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"nonce": 24,
"r": "0x7052bbb63c73c3447ebef1649e89e0ed4659aeedddda1cfedb00cbd63b737a7d",
"s": "0x4f9bfa47d1f958b0673d574012e1b202a7aa4092b77d0fa756a3611290d9eca9",
"to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"transactionIndex": 6,
"type": 2,
"v": "0x1",
"value": "0"
}
How to disconnect:
To disconnect from our API, enter ctrl-c
in the connected console.
Event Subscription Event Subscription is used to subscribe to specific events or transactions occurring within a blockchain network. It enables participants to get updates or notifications in real time whenever a specific event happens.
Following are the event subscriptions that a user can subscribe to-
Streaming Events:
Users can stream events in two ways:
Example 1: via wscat script (For Linux based distro)
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing wscat, the user needs to create a shell script and paste the following sample code:
Client Side Sample Socket Code :
Copy #!/bin/bash
echo "Price Discovery\n"
read -p "x-api-key: " YOUR_API_KEY
wscat -c wss://pricediscovery.expand.network -H authorization:secret-token -H x-api-key:$YOUR_API_KEY
Copy chmod +x YOUR_FILE_NAME.sh
After following the above steps, the user needs to run the file. This can be done by entering the filename in the console.
Executing a query :
After executing the aforementioned file(shell script), the user will be prompted to input the appropriate API key.
After entering the API key, the user can subscribe to the following actions:
Applying a filter in the query :
Users can apply the following filters in their query:-
WETH
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "events", "event":"WETH"}
Sample Query :
Copy {"action": "events", "event":"WETH"}
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action: "events",
event: "WETH"
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff",
"0x000000000000000000000000dce93ed9ae7c53143e19cf799d156b72d1cc2777"
],
"params": {
"src": "0xDef1C0ded9bec7F1a1670819833240f027b25EfF",
"dst": "0xdCe93ed9ae7C53143e19cf799d156B72D1cC2777",
"wad": "111121914630589080"
},
"data": "0x000000000000000000000000000000000000000000000000018ac8cae8514a98",
"blockNumber": 17336261,
"blockHash": "0xc8a8f98d12e0eaf23c1cb3a0014a899b7b3781056332bfb67b0f5cf736eaca41",
"logIndex": 35,
"transactionHash": "0x922084d84f63a025e6f5ede2dc74c6c349655746ae26481a9160b7547b6737a5",
"transactionIndex": 28
ERC-20
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "events", "event":"ERC20", "contract":[{"id":"contractId","eventType":["Transfer","Approval"]}]}
Sample Query :
Copy {"action":"events", "event":"ERC20", "contract":[{"id":"0x6b175474e89094c44da98b954eedeac495271d0f","eventType":["Transfer","Approval"]}]}
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action: "events",
event: "WETH"
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000008cd509c290bbb7a3eadce5fb1fd4017610b26d47",
"0x00000000000000000000000041d7534ddf2b5d3e5308f960a6cda7449c3dbf21"
],
"params": {
"src": "0x8Cd509C290Bbb7a3EaDCe5Fb1Fd4017610b26D47",
"dst": "0x41D7534DdF2B5d3E5308f960a6cDA7449C3DbF21",
"wad": "1000000000000000000000"
},
"data": "0x00000000000000000000000000000000000000000000003635c9adc5dea00000",
"blockNumber": 17336103,
"blockHash": "0xa1b370a58ba54a788fb5f7639596ba40dacc0aedecc10271c55b2bf22950ef97",
"logIndex": 341,
"transactionHash": "0xfe84151eae6b29f984af059e07ccd47d918b6f3bbccd04b6b64d55a4526b770a",
"transactionIndex": 144
ERC-721
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "events", "event":"ERC721", "contract" : [{"id":"contractId", "eventType":["Transfer","Approval","ApprovalForAll"]}}]}}
Sample Query :
Copy {"action":"events", "event":"ERC721", "contract":[{"id":"0x5af0d9827e0c53e4799bb226655a1de152a425a5","eventType":["Transfer","Approval","ApprovalForAll"]}]}
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
"action":"events","event":"ERC721","contract":[{"id":"0x5af0d9827e0c53e4799bb226655a1de152a425a5","eventType":["Transfer","Approval","ApprovalForAll"]}]
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy "address": "0x5Af0D9827E0c53E4799BB226655A1de152A425a5",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000029469395eaf6f95920e59f858042f0e28d98a20b",
"0x0000000000000000000000003f0fb61b79ceea17dcf7a7f38446485c2fc10ed1",
"0x00000000000000000000000000000000000000000000000000000000000015a8"
],
"params": {
"from": "0x29469395eAf6f95920E59F858042f0e28D98a20B",
"to": "0x3f0FB61B79cEea17dcF7a7f38446485C2fC10ED1",
"tokenId": "5544"
},
"data": "0x",
"blockNumber": 17336136,
"blockHash": "0xdc31e10f6dacb22456527e5812d8f866096111156094664226dfa0b6416c2d56",
"logIndex": 341,
"transactionHash": "0xbc2711cafb9ffe3f92aa05102490af821572cb4d16c33d5c9c132bbb704eb21c",
"transactionIndex": 194
ERC-1155
The above filters can be applied in any combination, using the following syntax :
Copy {"action": "events", "event":"ERC1155", "contract" : [{"id":"contractId", "eventType":["TransferSingle","TransferBatch","ApprovalForAll","URI"]}]}
Sample Query :
Copy {"action":"events", "event":"ERC1155", "contract":[{"id":"0x7DaEC605E9e2a1717326eeDFd660601e2753A057","eventType":["TransferSingle","TransferBatch","ApprovalForAll","URI"]}]}
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action:"events",
event:"ERC1155",
contract:[
{
"id":"0x7DaEC605E9e2a1717326eeDFd660601e2753A057",
eventType:["TransferSingle","TransferBatch","ApprovalForAll","URI"]
}
]
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Expected Output:
Copy "address": "0x7DaEC605E9e2a1717326eeDFd660601e2753A057",
"topics": [
"0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
"0x000000000000000000000000740c569f20076f1d96be1222240d55a5eed29df5",
"0x000000000000000000000000740c569f20076f1d96be1222240d55a5eed29df5",
"0x000000000000000000000000c7cddcc2b7c5868401744e75ede94dd56ed03970"
],
"params": {
"operator": "0x740C569F20076F1D96be1222240d55A5eED29Df5",
"from": "0x740C569F20076F1D96be1222240d55A5eED29Df5",
"to": "0xC7CDDcc2b7C5868401744E75EDE94dd56ED03970",
"id": "65538",
"value": "1"
},
"data": "0x00000000000000000000000000000000000000000000000000000000000100020000000000000000000000000000000000000000000000000000000000000001",
"blockNumber": 17336254,
"blockHash": "0xdaf226b629e93b547cf393021ce3c0c9d30f0e6b8de667a018aa5608a0a94687",
"logIndex": 230,
"transactionHash": "0x8c2912036f0bcb2cc65635d0e3fe53d329ccbcf11d1f205d0a40274fecbf8327",
"transactionIndex": 124
How to disconnect:
To disconnect from our API, enter ctrl-c
in the connected console.
MPC Wallets expand.network supports the following MPC wallets:
Remote procedural call URL.
721/1155 standard choice
by default it is 721
Remote procedural call URL.
Remote procedural call URL.
Chain Symbols: eth, bsc, avax, matic.
721/1155 standard choice
by default: 721
Index of the nft in the Collection
Remote procedural call URL.
721/1155 standard choice
by Default 721
starting block of the range
by Default: latestBlock -100
page no to get
by Default 1
end block of the range
by Default: latestBlock
Remote procedural call URL.
721/1155 standard choice
by Default 721
starting block of the range
by Default: latestBlock -100
page no to get
by Default 1
end block of the range
by Default: latestBlock
ERC721: Approval, Transfer
Remote procedural call URL.
Token's symbol to get the details of.
Comma-separated values of token address.
Remote procedural call URL.
Token's symbol to get detail of.
Public address of sender.
Remote procedural call URL.
Public address of the user.
Remote procedural call URL.
Token's symbol to get the details of.
Maximum gas to be approved for the transaction.
Token's symbol to borrow.
Number of tokens to be borrowed.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Token's symbol to deposit.
Number of tokens to be deposited.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Address of the collateral token.
Address of the debt token.
Public address of the user whose account need to be liquidated.
Amount of debt to be covered.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Token's symbol to be repaid.
Number of tokens to be repaid.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Token's symbol to withdraw.
Number of tokens to withdraw.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Remote procedural call URL.
Maximum gas to be approved for the transaction.
Remote procedural call URL.
Remote procedural call URL.
Public address of the user.
The page number that the user wants to fetch.
By default, 1.
Remote procedural call URL.
Public address of the user.
Remote procedural call URL.
Public address of the user.
Remote procedural call URL.
The token id of NFT , which is minted upon request, to claim the rewards.
Remote procedural call URL.
Remote procedural call URL.
Public address of the owner of token.
Public address of the spender of token.
Remote procedural call URL.
Public address of the owner of this request.
Amount of token to stake.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of token.
Number of tokens to wrap.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of token.
Number of tokens to unwrap.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of this request.
Amount of tokens to increase allowance.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of this request.
Amount of tokens to decrease allowance.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of this request.
Amount of tokens to approve withdrawal.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of this request.
Amount of tokens to request withdrawal.
Public address of the owner.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Public address of the owner of this request.
The token id of NFT , which is minted upon request, to claim the rewards.
Maximum gas limit provided by the sender, for the transaction.
ChainLink /getprice
Get the Price(in USDT) of a token for the given protocol.
GET
https://api.expand.network/oracle/getprice
Query Parameters
Name of the token, whose price is to be fetched.
Sample Request
Copy https://api.expand.network/oracle/getprice?asset=usdc&oracleId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"roundId": "36893488147419104052",
"answer": "0.99999",
"startedAt": "1675316735",
"updatedAt": "1675316735",
"answeredInRound": "36893488147419104052"
}
}
/getsupportedtokens
Get the list of supported tokens on Expand.network, for ChainLink.
GET
https://api.expand.network/oracle/getsupportedtokens
Query Parameters
Sample Request
Copy https://api.expand.network/oracle/getsupportedtokens?oracleId=1000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": [
"AMPL",
"ANKR",
"APE",
"ARB",
"AUD",
"BAL",
"CAD",
"CAKE",
"CHF",
"CNY",
"CRV",
"CRVUSD",
"CVX",
"ENS",
"EUR",
"FDUSD",
"FXS",
"GBP",
"GHO",
"GRT",
"GUSD",
"HIGH",
"IMX",
"JPY",
"KNC",
"KRW",
"LTC",
"LUSD",
"MIM",
"NZD",
"PYUSD",
"RDNT",
"RPL",
"RSR",
"SAND",
"SGD",
"SNX",
"SPELL",
"STETH",
"STG",
"SUSD",
"SXP",
"TRY",
"USDD",
"WING",
"XAG",
"XAU",
"XCN",
"BTC",
"FEI",
"TUSD",
"MKR",
"SUSHI",
"USDP",
"YFI",
"ZRX",
"ETH",
"DAI",
"MANA",
"AAVE",
"FRAX",
"COMP",
"1INCH",
"BNB",
"XRP",
"ADA",
"SOL",
"DOT",
"DOGE",
"AVAX",
"MATIC",
"UNI",
"TRX",
"ETC",
"USDT",
"USDC",
"LINK"
]
}
Metaplex NFTs for Solana
/getbalance
Retrieves the number of NFTs held in the owner's account.
GET
https://api.expand.network/nft/getbalance
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/nft/getbalance?nftCollection=4N9UeWZ3QVS4aK7R25CRRWYmJ8wnwUDRPYV6ScJetuME&chainId=900&address=8RNA1UbU2jA6aXsrcQLY3VxNBkyMUVmanWYFVmCwPYkB
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": 1
}
}
/getmetadata
Retrieves the metadata for the specified NFT.
GET
https://api.expand.network/nft/getmetadata
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/nft/getmetadata?chainId=900&nftCollection=8fGYVuiq5REaVwWTwatPvk342dm4xSY9ok2dE5rYEU5f
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"name": "Crowdsurfers #1000",
"symbol": "CROWD",
"uri": "https://us-central1-simpl3r.cloudfunctions.net/m?id=8fGYVuiq5REaVwWTwatPvk342dm4xSY9ok2dE5rYEU5f&pid=eW6BNOjMgIFva6BNQ4Du"
}
}
/getowner
Retrieves the owner for the specified NFT.
GET
https://api.expand.network/nft/getowner
Query Parameters
Remote procedural call URL.
Sample Request
Copy https://api.expand.network/nft/getowner?chainId=900&nftCollection=8fGYVuiq5REaVwWTwatPvk342dm4xSY9ok2dE5rYEU5f
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"owner": "98VK5fspL6j8837awbW5AB9dHbiLCoQQFziVejPKYnkG"
}
}
Flashbots MEV Protection focuses on protecting users from vulnerabilities such as front-running in Ethereum transactions. This is achieved through integration with Flashbots' solutions.
/getflashbotblocks
Get details of the flashbot blocks.
GET
https://api.expand.network/chain/getflashbotblocks
Query Parameters
Sample Request
Copy https://api.expand.network/chain/getflashbotblocks?chainId=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"paris": 1,
"blocks": [
{
"block_number": 18974792,
"miner_reward": "17726971662419410",
"fee_recipient_eth_diff": "17726971662419410",
"miner": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"fee_recipient": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"coinbase_transfers": "0",
"eth_sent_to_fee_recipient": "0",
"gas_used": 8039689,
"gas_price": "2204932511",
"effective_priority_fee": "2204932511",
"transactions": [
{
"transaction_hash": "0xa34125f19982fdcd8f8ac012b7924ecf145d9f1c5a5aae060b68e7d0b403c491",
"tx_index": 0,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974792,
"eoa_address": "0x5DB4b98e3deF62f0fce1267Db1d77639C43C3B14",
"to_address": "0x77E06c9eCCf2E797fd462A92B6D7642EF85b0A44",
"gas_used": 106331,
"gas_price": "31119562123",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "3308974160100713",
"fee_recipient_eth_diff": "3308974160100713"
},
{
"transaction_hash": "0x5719b3ee2891cd3d4bdbcf3d5d3b41fb2f68f3e027ee825b84ca4b6b51ddef8d",
"tx_index": 0,
"bundle_type": "mempool",
"bundle_index": 1,
"block_number": 18974792,
"eoa_address": "0xFB12622b729599db9c30469bD36787cA2e9413c3",
"to_address": "0x04d44A44E0be0a692938baeC467F22c4dBDF719b",
"gas_used": 21000,
"gas_price": "17607123388",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "369749591148000",
"fee_recipient_eth_diff": "369749591148000"
}
]
},
{
"block_number": 18974736,
"miner_reward": "24107460683890845",
"fee_recipient_eth_diff": "24107460683890845",
"miner": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"fee_recipient": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5",
"coinbase_transfers": "0",
"eth_sent_to_fee_recipient": "0",
"gas_used": 17311402,
"gas_price": "1392577024",
"effective_priority_fee": "1392577024",
"transactions": [
{
"transaction_hash": "0xa049c8a8ce354fca67277d7218fd4b70c798d6c92d7e2ab5779d644187dfa0bb",
"tx_index": 0,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974736,
"eoa_address": "0x000812de2241aB594aE154060028F70F39DAE000",
"to_address": "0x00fa0B420C3119F473c2463104FB9d4E91E445af",
"gas_used": 21000,
"gas_price": "26962839990",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "566219639790000",
"fee_recipient_eth_diff": "566219639790000"
},
{
"transaction_hash": "0x09486a4e90887c631f3dbb2f33a4c0d700f7079e48eba48580f4d74ade51f5fc",
"tx_index": 1,
"bundle_type": "flashbots",
"bundle_index": 0,
"block_number": 18974736,
"eoa_address": "0x00fa0B420C3119F473c2463104FB9d4E91E445af",
"to_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"gas_used": 47018,
"gas_price": "26962839990",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "1267738810649820",
"fee_recipient_eth_diff": "1267738810649820"
}
]
}
],
"latest_block_number": 18974792
}
}
/getflashbottransactions
Get details of the flashbot transactions.
GET
https://api.expand.network/chain/getflashbottransactions
Query Parameters
Sample Request
Copy https://api.expand.network/chain/getflashbottransactions?chainId=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"transaction_hash": "0xbcf55b7e9488135c12f3e70bd2a191cc19913475de6937f54cb9843865416391",
"tx_index": 0,
"bundle_index": 21,
"block_number": 18975317,
"eao_address": "0x2aC74Bd02EE017fa05629432Dd3728720c455032",
"to_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"gas_used": 30428,
"gas_price": "10000002",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "304280060856",
"fee_recipient_eth_diff": "304280060856"
},
{
"transaction_hash": "0xd441a44e2adf57f0d53e027d4441cdfee8653cd7f259ec0c90b60ea144b31d32",
"tx_index": 0,
"bundle_index": 20,
"block_number": 18975317,
"eao_address": "0x758aC3DC8FB6F939adf42bB83e717f94619052f5",
"to_address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"gas_used": 118712,
"gas_price": "11300000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "1341445600000",
"fee_recipient_eth_diff": "1341445600000"
},
{
"transaction_hash": "0x02cbeb153f91225abcdad3cd4d39d457b5e13f3fb1191f26c73c328c50f54071",
"tx_index": 0,
"bundle_index": 19,
"block_number": 18975317,
"eao_address": "0x4a25D28d10B02BCF13a16068F56d167D8F96d093",
"to_address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"gas_used": 181502,
"gas_price": "12500000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "2268775000000",
"fee_recipient_eth_diff": "2268775000000"
},
{
"transaction_hash": "0x2b89ed3dbfe8946229468f33e31ed447631c192906344b7c62b6e927a7a5a512",
"tx_index": 12,
"bundle_index": 18,
"block_number": 18975317,
"eao_address": "0x4960DC043DDc244A02192898B3e2F1730194F0ac",
"to_address": "0xf2B2420CEff184EEc76B3de15bd90C5734e45449",
"gas_used": 21000,
"gas_price": "10000001",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "210000021000",
"fee_recipient_eth_diff": "210000021000"
}
],
"latest_block_number": 18975317
}
}
/getflashbotbundle
Get details of the specified flashbot bundle.
GET
https://api.expand.network/chain/getflashbottransactions
Query Parameters
Sample Request
Copy https://api.expand.network/chain/getflashbotbundle?bundleHash=0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"transaction_hash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a",
"tx_index": 0,
"bundle_index": 3,
"block_number": 9091437,
"eao_address": "0x8D460B72eaF3d63830E16C22d1Fc6908D0834Abe",
"to_address": "0x8D460B72eaF3d63830E16C22d1Fc6908D0834Abe",
"gas_used": 21000,
"gas_price": "1000000000",
"coinbase_transfer": "0",
"eth_sent_to_fee_recipient": "0",
"total_miner_reward": "21000000000000",
"fee_recipient_eth_diff": "21000000000000"
}
]
}
}
/sendtransaction
Send transaction on the chain.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Remote procedural call URL.
The encoded transaction, obtained from the signed transaction.
If true, then txn goes through the bdn route, which speeds up the transaction process.
By default, false.
If true, then txn goes through flashbots.
Sample Request
With mevProtection: true
Copy {
"chainId":"1",
"rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
"mevProtection": true
}
Sample Response
With mevProtection: true
Copy {
"status": 200,
"msg": "success",
"data": {
"txHash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a"
}
}
Wallets Here is an example workflow illustrating how a user can seamlessly utilize our
Oracle Provides connectivity across the various Oracles available on the EVM and Non-EVM chains.
Following are the common functions implemented for all the Oracle protocols:-
Get the Price(in USDT) of a token on either all or the specified protocol.
Get the list of supported tokens on Expand.network, for the specified oracle.
/getprice
Get the Price(in USDT) of a token.
GET
https://api.expand.network/oracle/getprice
Query Parameters
Sample Request
Copy https://api.expand.network/oracle/getprice?asset=usdt
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"ChainLink": {
"roundId": "36893488147419104465",
"answer": "0.9996391",
"startedAt": "1710938687",
"updatedAt": "1710938687",
"answeredInRound": "36893488147419104465"
},
"WinkLink": {
"roundId": "184467",
"answer": "0.99999",
"startedAt": "1710994011",
"updatedAt": "1710994011",
"answeredInRound": "184467"
},
"Pyth": {
"roundId": null,
"answer": "0.9999603300000001",
"startedAt": null,
"updatedAt": null,
"answeredInRound": null
}
}
}
ERC1155 /getbalance
Retrieves the number of NFTs held in the owner's account. Currently available on ethereum, polygon, BSC, and avalanche.
GET
https://api.expand.network/nft/getbalance
Query Parameters
Remote procedural call URL.
Chain Symbols: eth, bsc, avax, matic.
721/1155 standard choice
by default it is 721
Sample Request
Copy https://api.expand.network/nft/getbalance?nftProtocolId=1155&nftCollection=0x6d4bbC0387dD4759EEe30f6A482AC6dC2Df3Facf&address=0x41e8BF3d9288EdDAcc3206f9aB21b61A1c59Df31&tokenId=1&chainId=1
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"balance": "172"
}
}
/historical/transactions
Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range. Currently available on ethereum.
GET
https://api.expand.network/nft/historical/transactions
Query Parameters
Remote procedural call URL.
721/1155 standard choice
by Default 721
starting block of the range
by Default: latestBlock -100
page no to get
by Default 1
end block of the range
by Default: latestBlock
Sample Request
Copy https://api.expand.network/nft/historical/transactions?chainId=1&nftProtocolId=1155&startBlock=0&nftCollection=0x6Fc436606771bA2Cff576695FE9CA04D8D95d4ec&page=1&sort=desc
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"blockNumber": "17594313",
"timeStamp": "1688155067",
"hash": "0x8415c34fe5a21ed999b5deb2d82d24c92a579ac8201f0a74e69991bc88a2d1c2",
"nonce": "71",
"blockHash": "0x2925fc992c4239963b0a4af6d76221989f7df37ccc36fc8da502f5b7139d417e",
"transactionIndex": "86",
"gas": "77951",
"gasPrice": "28151909699",
"gasUsed": "72436",
"cumulativeGasUsed": "12259715",
"input": "deprecated",
"contractAddress": "0x6fc436606771ba2cff576695fe9ca04d8d95d4ec",
"from": "0xe4de48c4abc7e97c64cea4788edf1434e2463d93",
"to": "0xfc40dcc9ab7dd6ffa62abd82ad7b913c180f08c5",
"tokenID": "37",
"tokenValue": "1",
"tokenName": "EnigmaNFT1155",
"tokenSymbol": "NFT1155",
"confirmations": "1374518",
"methodId": "0xf242432a",
"methodSignature": "safeTransferFrom(address,address,uint256,uint256,bytes)"
},
...
]
}
/historical/logs
Retrieves historical logs for any nftCollection. Currently available on ethereum.
GET
https://api.expand.network/nft/historical/logs
Query Parameters
Remote procedural call URL.
721/1155 standard choice
by Default 721
starting block of the range
by Default: latestBlock -100
page no to get
by Default 1
end block of the range
by Default: latestBlock
ERC1155: ApprovalForAll,TransferSingle
Sample Request
Copy https://api.expand.network/nft/historical/logs?nftCollection=0x6d4bbC0387dD4759EEe30f6A482AC6dC2Df3Facf&chainId=1&type=ApprovalForAll&nftProtocolId=1155&startBlock=17046490&endBlock=17151713
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"logs": [
{
"address": "0x6d4bbc0387dd4759eee30f6a482ac6dc2df3facf",
"topics": [
"0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31",
"0x0000000000000000000000004525aead5112662d8c117d1d27433bac9abc2029",
"0x0000000000000000000000004fee7b061c97c9c496b01dbce9cdb10c02f0a0be"
],
"params": {},
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"blockNumber": "17046490",
"blockHash": "0x1b78ea8731de05cee7073e5d22c4b2196acbfbba3358677e593a43efd3c27664",
"timeStamp": "1681488623",
"gasPrice": "32423597367",
"gasUsed": "46718",
"logIndex": "300",
"transactionHash": "0xf1558666d8a5ec595d6ef0431cc9e7801faf2b57671052e2c917019b9228b646",
"transactionIndex": "144"
},
]
}
}
FIREBLOCKS The Fireblocks Network is a secure transfer network that allows you to instantly find, connect, and move digital assets across exchanges, fiat providers, liquidity partners, and counterparties.
Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Step 3: Prepare Transaction
Step 4: Sign Transaction
Step 5: Send Transaction
Sample code to approve a fungible token using Fireblocks Wallet:
HD Wallets A hierarchical deterministic wallet is a digital wallet commonly used to store the keys for holders of cryptocurrencies.
Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Step 3: Prepare Transaction
Step 4: Sign Transaction
Step 5: Send Transaction
Sample code to approve a fungible token using any HD wallet:
EVM /getprice
Get the Price of a Stablecoin.
GET
https://api.expand.network/stablecoin/getprice
Query Parameters
Pyth Network /getprice
Get the Price(in USDT) of a token for the given protocol.
GET
https://api.expand.network/oracle/getprice
Query Parameters
/getsupportedtokens
Get the list of supported tokens on Expand.network, for Pyth.
GET
https://api.expand.network/oracle/getsupportedtokens
Query Parameters
Synthetix /getprice
Get the exchange amount in Protocol Tokens for entered Pegged Tokens.
GET
https://api.expand.network/synthetic/getprice
Query Parameters
/depositpeggedtoken
Deposit pegged token.
POST
https://api.expand.network/synthetic/depositpeggedtoken
Request Body
/withdrawpeggedtoken
Withdraw pegged token.
POST
https://api.expand.network/synthetic/withdrawpeggedtoken
Request Body
Harvest Finance /getbalance
For /getbalance , the user can either pass the tokenAddress or the vaultAddress and poolAddress along with the required parameters.
Get balance of the user in a given Vault or Pool
GET
https://api.expand.network/yieldaggregator/getbalance
Query Parameters
/getvaults
Get the number of the vaults along with the respective vault APY.
GET
https://api.expand.network/yieldaggregator/getvaults
Query Parameters
/depositvault
For /depositvault , the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the deposit transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/depositvault
Request Body
Sample Request
With tokenAddress:
With vaultAddress:
Sample Request
With gasPriority (medium)-
1. With tokenAddress:
2. With vaultAddress:
/withdrawvault
For /withdrawvault , the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the withdraw transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/withdrawvault
Request Body
Sample Request
With tokenAddress:
With vaultAddress:
Sample Request
With gasPriority (medium)-
1. With tokenAddress:
2. With vaultAddress:
/depositpool
For /depositpool , the user can either pass the tokenAddress or the poolAddress along with the required parameters.
Trigger the deposit transaction for the given pool.
POST
https://api.expand.network/yieldaggregator/depositpool
Request Body
Sample Request
With tokenAddress:
With poolAddress:
Sample Request
With gasPriority (low)
1. With tokenAddress:
2. With poolAddress:
/withdrawpool
For /withdrawpool , the user can either pass the tokenAddress or the poolAddress along with the required parameters.
Trigger the withdraw transaction for the given pool.
POST
https://api.expand.network/yieldaggregator/withdrawpool
Request Body
Sample Request
With tokenAddress:
With poolAddress:
Sample Request
With gasPriority (medium)
1. With tokenAddress:
2. With poolAddress:
Sample Response
With gasPriority (medium)
Refer to the page for details.
Refer to the page for details.
Chain Symbols: eth, bsc, avax, matic.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Our API is designed to be wallet-agnostic, allowing users the flexibility to employ their preferred wallet. Our integration includes leading wallets in the industry, along with available through WalletConnect v2.
Here is an example workflow illustrating how a user can seamlessly utilize our to connect to a wallet client and execute a transaction using the expand.network API:
Name of the token, whose price is to be fetched.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
To use FIREBLOCKS with expand.network , follow these steps:-
To use an hd wallet with expand.network , follow these steps:-
Sample Request
With tokenAddress:
With vaultAddress and poolAddress:
Copy const { WalletFireblocks, prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY'; //Replace this with your API key
const dotenv = require('dotenv');
const fs = require('fs');
const path = require('path');
const apiSecret = fs.readFileSync(path.resolve("SECRET_KEY_FILE_PATH"), "utf8");
async function initialiseFireblocksWallet(){
const options = {
apiSecret: apiSecret,
apiKey: "FIREBLOCKS_API_KEY", //Replace this with your Fieblocks API key
}
const wallet = new WalletFireblocks(options);
return wallet;
}
const wallet = await initialiseFireblocksWallet(); //Initialise the wallet
Copy // Preparing the approve transaction from expand.network
const preparedTx = await prepareTransaction("https://api.expand.network/fungibletoken/approve", {
"from": "FIREBLOCKS_WALLET_ADDRESS",
"tokenAddress":"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "10000",
"to": "SPENDER_WALLET_ADDRESS",
"gas": "100000",
"chainId": "1", // Replace with other chainId to toggle between chains
"xApiKey": "YOUR_API_KEY", // Replace this with your API Key
});
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
Copy const { WalletFireblocks, prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY';
const dotenv = require('dotenv');
const fs = require('fs');
const path = require('path');
const apiSecret = fs.readFileSync(path.resolve("SECRET_KEY_FILE_PATH"), "utf8");
async function initialiseFireblocksWallet(){
const options = {
apiSecret: apiSecret,
apiKey: "FIREBLOCKS_API_KEY",
}
const wallet = new WalletFireblocks(options);
return wallet;
}
async function main() {
dotenv.config();
const wallet = await initialiseFireblocksWallet();
const preparedTx = await prepareTransaction("https://api.expand.network/fungibletoken/approve", {
"from": "FIREBLOCKS_WALLET_ADDRESS",
"tokenAddress":"TOKEN_CONTRACT_ADDRESS",
"amount": "10000",
"to": "SPENDER_WALLET_ADDRESS",
"gas": "100000",
"chainId": "1",
"xApiKey": "YOUR_API_KEY",
});
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
}
main();
Copy const { Wallet, prepareTransaction } = require('expand-network');
const wallet = new Wallet({ privateKey:'SENDER_PRIVATE_KEY', xApiKey:xApiKey});
Copy const chainId = '1'; // Replace with other chainId to toggle between chains
const preparedTx = {
"from": "SENDER_WALLET_ADDRESS",
"value": "10000",
"to": "RECEIVER_WALLET_ADDRESS",
"chainId": "1",
"gas": "25000",
"xApiKey": "YOUR_API_KEY"
};
Copy const signedTx = await wallet.signTransaction(preparedTx);
signedTx.chainId = '1';
console.log(signedTx);
Copy const tx = await wallet.sendTransaction(signedTx);
console.log(tx.data);
Copy const { Wallet, prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY'; //Replace this with your API key
async function main() {
const chainId = '1';
const preparedTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"value": "10000",
"to": "SPENDER_WALLET_ADDRESS",
"chainId": "1",
"gas": "25000",
"xApiKey": xApiKey
};
const wallet = new Wallet({ privateKey:'SENDER_PRIVATE_KEY', xApiKey:xApiKey});
const signedTx = await wallet.signTransaction(preparedTx);
signedTx.chainId = '1';
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log(tx.data);
}
main();
Copy https://api.expand.network/stablecoin/getprice?asset=USDC
Copy {
"status": 200,
"msg": "success",
"data": {
"roundId": "36893488147419104052",
"answer": "0.99999",
"startedAt": "1675316735",
"updatedAt": "1675316735",
"answeredInRound": "36893488147419104052"
}
}
Name of the token, whose price is to be fetched.
Copy https://api.expand.network/oracle/getprice?asset=DAI&oracleId=1200
Copy {
"status": 200,
"msg": "success",
"data": {
"roundId": null,
"answer": "1.0000125",
"startedAt": null,
"updatedAt": null,
"answeredInRound": null
}
}
Copy https://api.expand.network/oracle/getsupportedtokens?oracleId=1200
Copy {
"status": 200,
"msg": "success",
"data": [
"SEI",
"MNGO",
"SOL",
"LDO",
"JITOSOL",
"XRP",
"TBTC",
"BLZE",
"HNT",
"IOT",
"LST",
"ORCA",
"SRM",
"ARB",
"EURC",
"JTO",
"MSOL",
"GMT",
"WSTETH",
"USDT",
"FIDA",
"AAVE",
"NEAR",
"PEPE",
"LINK",
"USDC",
"SLND",
"JUP",
"ETH",
"APT",
"STRK",
"WIF",
"OP",
"SBR",
"WBTC",
"WEN",
"BTC",
"BNB",
"DYM",
"MOBILE",
"GOFX",
"RNDR",
"ATLAS",
"AVAX",
"TIA",
"MATIC",
"SUI",
"STSOL",
"STETH",
"SAMO",
"BSOL",
"TAO",
"RLB",
"DAI",
"FTT",
"USTC",
"SCNSOL",
"BONK",
"MNDE",
"APE",
"DOGE",
"PYTH",
"ZBC",
"INJ",
"NEON",
"C98",
"RAY"
]
}
Copy https://api.expand.network/synthetic/getprice?amount=58798
Copy {
"status": 200,
"msg": "success",
"data": {
"peggedToProtocolToken": "22177"
}
}
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"amount": "100000000000000000",
"gas": "300000",
"syntheticId": "6000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"value": "0",
"gas": "300000",
"data": "0xdc8fa6c2000000000000000000000000000000000000000000000000016345785d8a0000",
"to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86"
}
}
Copy {
"from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
"amount": "100000",
"gas": "300000",
"syntheticId": "6000",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
"value": "0",
"gas": "25474",
"data": "0xdc8fa6c200000000000000000000000000000000000000000000000000000000000186a0",
"to": "0x9B79D6dFe4650d70f35dbb80f7d1EC0Cf7f823Fd"
}
}
Address of the owner of the token.
Maximum gas to be approved for the transaction.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "300000",
"syntheticId": "6000"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"value": "0",
"gas": "300000",
"data": "0x81b797dc",
"to": "0xE1f64079aDa6Ef07b03982Ca34f1dD7152AA3b86"
}
}
Copy {
"from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
"gas": "300000",
"syntheticId": "6000",
"gasPriority": "medium"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x731FDBd6871aD5cD905eE560A84615229eD8197a",
"value": "0",
"gas": "25277",
"data": "0x81b797dc000000000000000000000000000000000000000000000000000000000000731FDBd6871aD5cD905eE560A84615229eD8197a4650d70f35dbb80f7d1EC0Cf7f823Fd",
"to": "0x9B79D6dFe4650d70f35dbb80f7d1EC0Cf7f823Fd"
}
}
Remote procedural call URL
Public Address of the owner.
The address of the token.
The address of the vault.
Copy https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5100
Copy https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&vaultAddress=0xFE09e53A81Fe2808bc493ea64319109B5bAa573e&yieldAggregatorId=5100&poolAddress=0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e
Copy {
"status": 200,
"msg": "success",
"data": {
"vaultBalance": "0",
"poolBalance": "0"
}
}
Remote procedural call URL
The address of the token.
Copy https://api.expand.network/yieldaggregator/getvaults?tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5100
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenVaults": [
{
"vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"apy": "4.08",
"poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e"
}
]
}
}
The amount of token to deposit.
The address of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
The address of the vault.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "500000",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"amount": "500000",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"value": "0",
"gas": "2307200",
"data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000007a120"
}
}
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "10000000",
"gas": "2307200",
"gasPriority":"medium",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"amount": "500000",
"gas": "2307200",
"gasPriority":"medium",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"value": "0",
"gas": "155912",
"data": "0xb6b55f250000000000000000000000000000000000000000000000000000000000989680"
}
}
Address of the withdrawer of the token.
Maximum gas limit provided by the sender, for the transaction.
The address of the the token.
The address of the vault.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "500000",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"amount": "4934226",
"gas": "2307200",
"vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"value": "0",
"gas": "2307200",
"data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004b4a52"
}
}
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "500000",
"gas": "2307200",
"gasPriority":"medium",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"vaultAddress": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"amount": "500000",
"gas": "2307200",
"gasPriority":"medium",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0xFE09e53A81Fe2808bc493ea64319109B5bAa573e",
"value": "0",
"gas": "127728",
"data": "0x2e1a7d4d000000000000000000000000000000000000000000000000000000000007a120"
}
}
The amount of token to deposit.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
The address of the token.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "4934226",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"amount": "4934226",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"value": "0",
"gas": "2307200",
"data": "0xa694fc3a00000000000000000000000000000000000000000000000000000000004b4a52"
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "4934226",
"gas": "230720",
"gasPriority": "low",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"amount": "4934226",
"gas": "230720",
"gasPriority": "low",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"value": "0",
"gas": "11926",
"data": "0xa694fc3a00000000000000000000000000000000000000000000000000000000004b4a52"
}
}
Address of the withdrawer of the token.
Maximum gas limit provided by the sender, for the transaction.
The address of the token.
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"amount": "4934226",
"gas": "2307200",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"amount": "4934226",
"gas": "2307200",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"value": "0",
"gas": "2307200",
"data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004b4a52"
}
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"amount": "4934226",
"gas": "230720",
"gasPriority": "medium",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"yieldAggregatorId": "5100"
}
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"amount": "4934226",
"gas": "230720",
"gasPriority": "medium",
"poolAddress": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"yieldAggregatorId": "5100"
}
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x3DA9D911301f8144bdF5c3c67886e5373DCdff8e",
"value": "0",
"gas": "229110",
"data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004b4a52"
}
}
Wallet Connect v2 Wallet Connect provides developer toolkits to help you connect your wallet with hundreds of DApps. All the key features of the expand API via Wallet Connect will help users to easily set up support for various EVM and Non-EVM chains and protocols.
It is as easy as approving the session, setting response, to enable the requests sent from a DApp that is powered by expand’s API.
Top wallets include:
PHANTOM Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy const { WalletPhantom, prepareTransaction } = require('expand-network');
const wallet = new WalletPhantom({ privateKey:'YOUR_PRIVATE_KEY', xApiKey:xApiKey});
Step 3: Prepare Transaction
Copy const preparedTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000",
"to": "SPENDER_WALLET_ADDRESS", //For approve
"gas": "100000",
"chainId": "1",
"xApiKey":xApiKey
});
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
Step 5: Send Transaction
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
Sample code to approve a fungible token using Phantom:
Copy const { WalletPhantom, prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY'; //Replace this with your API key
async function main() {
const wallet = new WalletPhantom({ privateKey:'YOUR_PRIVATE_KEY', xApiKey:xApiKey});
const preparedTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000",
"to": "SPENDER_WALLET_ADDRESS",
"gas": "100000",
"chainId": "1", // Replace with other chainId to toggle between chains
"xApiKey":xApiKey
});
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log("Transaction Pending....", tx.data);
}
main();
DFNS Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy const { WalletDFNS , prepareTransaction } = require('expand-network');
async function initialiseDFNSWallet(){
const options = {};
options.privateKey = process.env.DFNS_PRIVATE_KEY;
options.credId = process.env.DFNS_CRED_ID;
options.xApiKey = process.env.X_API_KEY;
options.appId = process.env.DFNS_APP_ID;
options.authToken = process.env.DFNS_ACCESS_TOKEN;
options.baseUrl = process.env.DFNS_API_URL;
options.walletId = process.env.WALLET_ID;
options.appOrigin = 'http://localhost:3000';
const wallet = await new WalletDFNS(options);
return wallet;
}
const wallet = await initialiseDFNSWallet(); // Initialise the wallet client
Step 3: Prepare Transaction
Copy // Preparing the approve transaction from expand.network
const prepareApproveTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "TOKEN_CONTRACT_ADDRESS",
"to": "SPENDER_WALLET_ADDRESS",
"amount": "100000",
"gas": "25000",
"xApiKey": "YOUR_API_KEY" // Replace this with your API Key
});
prepareApproveTx.chainId = '1';
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const approveSignedTx = await wallet.signTransaction(prepareApproveTx);
approveSignedTx.chainId = '1'; // Replace with other chainId to toggle between chains
Step 5: Send Transaction
Copy // Send the signed transaction
let txHash = await wallet.sendTransaction(approveSignedTx);
console.log(`approve transaction: https://etherscan.io/tx/${txHash.TxHash}`); // Confirmation
Sample code to perform a swap using DFNS:
Copy const { WalletDFNS , prepareTransaction } = require('expand-network');
const dotenv = require('dotenv');
async function initialiseDFNSWallet(){
const options = {};
options.privateKey = process.env.DFNS_PRIVATE_KEY;
options.credId = process.env.DFNS_CRED_ID;
options.xApiKey = process.env.X_API_KEY;
options.appId = process.env.DFNS_APP_ID;
options.authToken = process.env.DFNS_ACCESS_TOKEN
options.baseUrl = process.env.DFNS_API_URL;
options.walletId = process.env.WALLET_ID;
options.appOrigin = 'http://localhost:3000';
const wallet = await new WalletDFNS(options);
return wallet;
}
async function main() {
dotenv.config();
const wallet = await initialiseDFNSWallet(); // Initialise the wallet client
const xApiKey = process.env.X_API_KEY;
const prepareApproveTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', { // Prepare the approve transaction from expand.network
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "TOKEN_CONTRACT_ADDRESS",
"to": "SPENDER_WALLET_ADDRESS",
"amount": "100000",
"gas": "25000",
"xApiKey": "YOUR_API_KEY" // Replace this with your API Key
});
prepareApproveTx.chainId = '1'; // Replace with other chainId to toggle between chains
const approveSignedTx = await wallet.signTransaction(prepareApproveTx); // Sign the transaction locally using sdk client
approveSignedTx.chainId = '1'; // Replace with other chainId to toggle between chains
let txHash = await wallet.sendTransaction(approveSignedTx); // Send the transaction
console.log(`approve transaction: https://etherscan.io/tx/${txHash.TxHash}`); // Confirmation
const swapTransaction = await prepareTransaction('https://api.expand.network/dex/swap',{ // Simlarly build the swap Tx
"dexId":"1000", // Replace with other dexId to toggle between dexs
"amountIn": "100000",
"amountOutMin": "0",
"path": ["TOKEN_ADDRESS_TO_SWAP_FROM","TOKEN_ADDRESS_TO_SWAP_TO"],
"to": "RECEIVER_WALLET_ADDRESS",
"deadline": "1965990894",
"from": "SENDER_WALLET_ADDRESS",
"gas": "173376",
"xApiKey": "YOUR_API_KEY" // Replace this with your API Key
});
console.log(swapTransaction);
swapTransaction.chainId = '1'; // Replace with other chainId to toggle between chains
const swapSignedTx = await wallet.signTransaction(swapTransaction);
swapSignedTx.chainId = '1' // Replace with other chainId to toggle between chains
const txHash1 = await wallet.sendTransaction(swapSignedTx);
console.log(`swap transaction: https://etherscan.io/tx/${txHash1.TxHash}`);
}
main();
CIRCLE Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy async function initcircleWallet(options){
const userToken = await WalletCircle.getUserToken(options);
options.userToken = userToken.userToken;
options.encryptionKey = userToken.encryptionKey;
const wallet = new WalletCircle(options);
return wallet;
}
Step 3: Prepare Transaction
Copy // Preparing the approve transaction from expand.network
const prepareApproveTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "SENDER_ADDRESS",
"tokenAddress": "0xdc31Ee1784292379Fbb2964b3B9C4124D8F89C60",
"to": "RECEIVER_ADDRESS",
"amount": "10000",
"gas": "25000",
"xApiKey": 'YOUR_API_KEY' //Replace with your API key
});
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(prepareApproveTx);
console.log("signedTx: " ,signedTx);
Step 5: Send Transaction
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log("sent tx: ", tx);
Sample code to approve a fungible token using Circle:
Copy const { WalletCircle, prepareTransaction } = require('expand-network');
async function initcircleWallet(options){
const userToken = await WalletCircle.getUserToken(options);
options.userToken = userToken.userToken;
options.encryptionKey = userToken.encryptionKey;
const wallet = new WalletCircle(options);
return wallet;
}
async function main(){
const wallet = await initcircleWallet({
appId: "CIRCLE_APP_ID",
apiKey: 'CIRCLE_API_KEY',
userId: 'CIRCLE_USER_ID',
walletId: 'CIRCLE_WALLET_ID',
encryptionKey: 'CIRCLE_ENCRYPTION_KEY'
});
const prepareApproveTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "SENDER_ADDRESS",
"tokenAddress": "0xdc31Ee1784292379Fbb2964b3B9C4124D8F89C60",
"to": "RECEIVER_ADDRESS",
"amount": "10000",
"gas": "25000",
"xApiKey": 'YOUR_API_KEY'
});
const signedTx = await wallet.signTransaction(prepareApproveTx);
console.log("signedTx: " ,signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log("sent tx: ", tx);
}
main();
FORDEFI Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy const { WalletFordefi , prepareTransaction } = require('expand-network');
async function initialiseFordefiWallet(){
const options = {
accessToken: 'YOUR_ACCESS_TOKEN', //Replace this with your bearer token
xApiKey: 'YOUR_API_KEY', //Replace this with your API key
privateKeyFile: 'YOUR_PRIVATE_KEY', // Necessarily a .pem file
vault_id: 'VAULT_ID'
}
const wallet = new WalletFordefi(options);
return wallet;
}
const wallet = await initialiseFordefiWallet(); //Initialise the wallet
Step 3: Prepare Transaction
Copy // Preparing the approve transaction from expand.network
const preparedTx = await prepareTransaction("https://api.expand.network/fungibletoken/approve", {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "TOKEN_CONTRACT_ADDRESS",
"to": "SPENDER_WALLET_ADDRESS",
"amount": "100000",
"gas": "25000",
"chainId": "1",
"xApiKey": "YOUR_API_KEY" // Replace this with your API Key
});
preparedTx.chainId = '1'; // Replace with other chainId to toggle between chains
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
Step 5: Send Transaction
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
Sample code to approve a fungible token using Fordefi:
Copy const { WalletFordefi , prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY';
const dotenv = require('dotenv');
async function initialiseFordefiWallet(){
const options = {
accessToken: 'YOUR_ACCESS_TOKEN',
xApiKey:'YOUR_API_KEY',
privateKeyFile: 'YOUR_PRIVATE_KEY_FILE',
vault_id: 'VAULT_ID'
}
const wallet = new WalletFordefi(options);
return wallet;
}
async function main() {
dotenv.config();
const wallet = await initialiseFordefiWallet();
const preparedTx = await prepareTransaction("https://api.expand.network/fungibletoken/approve", {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress":"TOKEN_CONTRACT_ADDRESS",
"amount": "1000000000",
"to": "SPENDER_WALLET_ADDRESS",
"gas": "100000",
"chainId": "1",
"xApiKey": "YOUR_API_KEY"
});
preparedTx.chainId = '1';
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
}
main();
Yearn Finance /getbalance
For /getbalance , the user can either pass the vaultAddress or the tokenAddress and the vaultNumber along with the required parameters.
Get balance of the user in a given Vault.
GET
https://api.expand.network/yieldaggregator/getbalance
Query Parameters
Remote procedural call URL.
Public Address of the owner.
The number of the vault, incase there are multiple vaults.
The address of the vault.
Sample Request
With tokenAddress:
Copy https://api.expand.network/yieldaggregator/getbalance?address=0xC7565379C190014449eE83CF9FD7475206E59f9e&tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5000
With VaultAddress:
Copy https://api.expand.network/yieldaggregator/getbalance?address=0x6Fb447Ae94F5180254D436A693907a1f57696900&yieldAggregatorId=5000&vaultAddress=0xa9fE4601811213c340e850ea305481afF02f5b28
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"vaultBalance": "0"
}
}
/getvaults
Get the number of the vaults along with the respective vault APY.
GET
https://api.expand.network/yieldaggregator/getvaults
Query Parameters
Remote procedural call URL
Sample Request
Copy https://api.expand.network/yieldaggregator/getvaults?tokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&yieldAggregatorId=5000
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"tokenVaults": [
{
"vaultAddress": "0xa9fE4601811213c340e850ea305481afF02f5b28",
"apy": "3.90",
"vaultNumber": 0
},
{
"vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"apy": "0.54",
"vaultNumber": 1
}
]
}
}
/depositvault
For /depositvault , the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the deposit transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/depositvault
Request Body
The amount of token to deposit.
The address of the token.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
The number of the vault, in case there are multiple vaults.
The address of the vault.
Sample Request
With tokenAddress:
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "500000",
"vaultNumber": "1",
"yieldAggregatorId": "5000",
"gas": "2307200"
}
With VaultAddress:
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"vaultAddress":"0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"amount": "500000",
"yieldAggregatorId": "5000",
"gas": "2307200"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"value": "0",
"gas": "2307200",
"data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000007a120"
}
}
Sample Request
With gasPriority (medium)-
1. With tokenAddress:
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "10000000000",
"vaultNumber": "1",
"yieldAggregatorId": "5000",
"gas": "2307200",
"gasPriority":"medium"
}
2. With VaultAddress:
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"vaultAddress":"0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"amount": "500000",
"yieldAggregatorId": "5000",
"gas": "2307200",
"gasPriority":"medium"
}
Sample Response
With gasPriority-
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"value": "0",
"gas": "144259",
"data": "0xb6b55f2500000000000000000000000000000000000000000000000000000002540be400"
}
}
/withdrawvault
For /withdrawvault , the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the withdraw transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/withdrawvault
Request Body
Address of the withdrawer of the token.
Maximum gas limit provided by the sender, for the transaction.
The number of the vault, in case there are multiple vaults.
Sample Request
With tokenAddress:
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "4881310",
"gas": "2307200",
"vaultNumber": "1",
"yieldAggregatorId": "5000"
}
With vaultAddress:
Copy {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"amount": "4881310",
"gas": "2307200",
"yieldAggregatorId": "5000"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"value": "0",
"gas": "2307200",
"data": "0x2e1a7d4d00000000000000000000000000000000000000000000000000000000004a7b9e"
}
}
Sample Request
With gasPriority (high)-
1. With tokenAddress:
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "10000000",
"gas": "2307200",
"gasPriority":"high",
"vaultNumber": "1",
"yieldAggregatorId": "5000"
}
2. With VaultAddress:
Copy {
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"vaultAddress": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"amount": "4881310",
"gas": "2307200",
"gasPriority":"high",
"yieldAggregatorId": "5000"
}
Sample Response
With gasPriority-
Copy {
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xfAE7D9854995E28BEB1B1da864ee2A1E2EC17f07",
"to": "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
"value": "0",
"gas": "139073",
"data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000989680"
}
}
Phantom is a digital wallet which makes it easy to store, send, receive, collect, and swap tokens on Solana, Ethereum and Polygon.
To use Phantom with expand.network , follow these steps:-
Dfns is a cybersecurity company providing crypto wallet infrastructure. The company develops a wallet-as-a-service infrastructure in Web3.
To use DFNS with expand.network , follow these steps:-
Circle Programmable Wallets is a Wallet as a Service that simplifies creating and managing secure web3 wallets and their private keys. They extend wallet functionality with approachable user flows, provide optionality for developer and user infrastructure solutions, and enable seamless smart contract integration.
To use CIRCLE with expand.network , follow these steps:-
Fordefi is an institutional MPC wallet and security platform built for decentralized finance (DeFi), offering MPC key management, self-serve DeFi policy controls, time-of-transaction smart contract insights, transaction simulation and risk alerts.
To use FORDEFI with expand.network , follow these steps:-
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Read Endpoints Endpoint Name
Category
Description
Get the balance or number of the given token in the requested public address
Get the current gas price from the network.
Get data stored in the given slot.
Get details of a transaction.
Retrieves gas fee spent in a particular range
Get the RPC of required chain.
Get the decoded transaction for the provided raw transaction
Calls read functions of verified smart contracts
Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers. Available on Stellar.
Get details for the current latest known ledger of the node. Available on Stellar.
Get details of the flashbot blocks. Available on ethereum.
Get details of the flashbot transactions. Available on ethereum.
Get details of the specified flashbot bundle. Available on ethereum.
Returns the swap quotation for a specified token pair for a specified DEX.
Returns the balance of a specified token pair for a specified account.
Returns the total liquidity for a specified pool.
Returns the individual token liquidity within a specified liquidity pool.
Returns the total number of liquidity providers in a specified liquidity pool.
Returns the liquidity position for a specified user address across all the pools for a specified DEX.
Returns a list of all the quotes for a pool on different DEXs. See notes below.
Returns all user addresses, block numbers, and token position details for a specified pool address. Available for Uniswap V2,V3 and Sushiswap only.
Get detailed information for user transactions on various DEXs, including transaction type, block-related details, decoded parameters, and many more.Available for Uniswap V2, Uniswap V3, SushiSwap V2, Curve V2, and Balancer V2.
Get the lend and borrow APY for the given pool from the given protocol
Get the list of supply and borrow APYs of the mentioned assets.
Get the repay, borrow, and withdraw amount details for the given user.
Check whether the user is approved before deposting.
Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address.
Get the rewards claimed by the specified account on the protocol.
Get the protocol and governor-related data for a market.
Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account.
Get the Lido staking APR on Ethereum.
Get the stETH interactions by a specified user address along with the daily stETH rewards.
Get the amount of stETH and wstETH staked on Lido by a specified address.
Get all the withdrawal requests(NFT ids) made by a specified address.
Get the status of a withdrawal request made by a specified address.
Get the Lido staking APR on Ethereum, for the past 7 days.
Get the approved allowance amount set by the owner for the spender.
Get the swap quotation for the given token pairs.
Get the balance of a particular token pair of an account.
Get details of a transaction.
Get the name, symbol and decimals of provided token address.
Get the amount that the spender is allowed to withdraw on behalf of the owner.
Get the balance of the given token for the provided public address.
Retrieves all the transfers for the given address in the given range.
Retrieves all the logs for WETH events specified in query in the given block range.
Get the balance or number of WETH in the requested public address.
Retrieves all the WETH transfers for the given address in the given range.
Retrieves all the logs for the given address in the given range.
Retrieves the number of NFTs held in the owner's account.
Retrieves the owner of the specified token ID.
Retrieves the metadata for the specified NFT.
Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range.
Retrieves historical logs for any NFT Collection.
Get balance of the user in a given Vault or Pool (harvest finance).
Get the number of the vaults along with the respective vault APY.
Get the Price(in USDT) of a token for the given protocol.
Get the list of supported tokens on Expand.network, for the specified oracle.
Get the Price of a stablecoin.
Get the exchange amount in Protocol Tokens for entered Pegged Tokens.
Stream transactions will help you to track the activity of the subscribed address on the blockchain.
Stream trade is a method used to obtain the prices of a specific pair of tokens across multiple decentralized exchanges (DEXs).
Stream Gas is a method used to obtain the gas fees given by a public address.
Event Subscription is used to subscribe to specific events or transactions occurring within a blockchain network.
Get the signature message, which needs to be signed.
Get the user operation, which can be signed and sent to the bundler.
Get the paymaster data, that can be sent in the user operations.
Get the historical transaction details for a specific user address.
Get the historical transaction details focusing on staking rewards for a specific user address.
Get the comprehensive information about the assets/ tokens owned by a user across different EVM and Non EVM chains.
Retrieves quotes from various DEXs & aggregators in a unified manner. For a specified pair address, this endpoint will return the respective quotes for each DEX in which the pair address is present.
Get the list of tokens supported by the specific bridge, on the specified chain, on expand.network.
Get the list of chains supported on the specific bridge on expand.network.
Get the route details as to how the tokens will be bridged, token amount, etc.
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
Get the trade data from the pool within a specified block range, for the specified event type
Get the historical time series transactions for a specific pool address.
Get the historical transactions focusing on swaps associated with a specific pool address.
Get details for all orders corresponding to the specified address and the specified sub-account number.
Get details for a specific order using the specified order id.
Get the fill details of the order.
Get a list of your assets deposited in dYdX.
Get your historical profit and loss.
Get the position of an user.
Get the details of a subaccount of a user.
Get the details of the transfer transaction.
SDK - Overview Welcome to expand.network's Account Abstraction SDK
This SDK helps you to easily interact with user operations and bundlers.
Installation
To complete the installation process, simply clone the repository directly from Git.
You can clone the repository by pasting the following command in your terminal:
Copy git clone https://github.com/expand-network/sdk-aa-nodejs.git
Developer Links
Write Endpoints Endpoint Name
Category
Description
Create and fund a new account using the public key as the account ID on the Stellar network.
Sign and send transactions on the chain.
Submit a trial contract invocation to simulate how it would be executed by the Stellar network.
Executes a transaction to burn or delete an asset on the Stellar network.
Executes a transaction to revoke an existing trustline’s authorization, thereby freezing the asset held by an account on the Stellar network.
Executes a payment operation to create (or mint) an asset on the Stellar network.
Implement a trustline between issuer and distributor on the Stellar network.
Trigger a payment operation to send an amount in a specific asset (XLM or non-XLM) to a destination account.
Initiate a swap transaction on a specified DEX.
Add liquidity to a specified pool in a specified DEX.
Remove liquidity from a specified pool for a specified DEX.
Trigger the deposit transaction from the given protocol.
Trigger the borrow transaction from the given protocol.
Trigger the liquidate transaction from the given protocol.
Trigger the repay transaction from the given protocol.
Trigger the withdrawal transaction from the given protocol.
Trigger the migrate transaction from the given protocol.
Trigger the E-Mode options for the user.
Trigger the exit of isolation mode options for the user.
Compound needs the user to approve before they can start deposit.
Trigger the exit market transaction for the given protocol
Trigger a transaction to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.
Trigger a transaction, to pass an array of action codes and calldatas that are executed, one by one, in a single transaction.
Trigger a transaction to allow an account to claim rewards from the protocol.
Initiate a transaction to stake on Lido.
Initiate a transaction to wrap stETH to wstETH.
Initiate a transaction to unwrap wstETH to stETH.
Initiate a transaction to increase the allowance of stETH or wstETH on the spender’s account.
Initiate a transaction to decrease the allowance of stETH or wstETH on the spender’s account.
Initiate a transaction to approve the withdrawal request from a specified address.
Initiate a transaction to request a withdrawal on Lido.
Initiate a transaction to burn the NFT, which is minted upon request, and to claim the rewards.
Swap assets across multiple chains.
Loan your assets to the specified bridge.
Remove user liquidity across multiple chains.
Sets amount as the allowance of spender over the user's tokens.
Moves amount tokens from the user’s account to the recipient.
Moves amount tokens from sender to recipient using the allowance mechanism.
Converts base token to wrap token.
Converts wrap token to base token.
Trigger the deposit transaction for the given vault.
Trigger the deposit transaction for the given pool.
Trigger the withdraw transaction for the given vault.
Trigger the withdraw transaction for the given pool.
Prepare the data, to send the bundle of user operations, to the bundler.
Execute swap by leveraging the best quote obtained from different DEXs and aggregators. Please see notes below for more info.
Bundler Endpoint Bundler can act as a block builder itself
If the bundler is not a block builder, it MUST work with the block building infrastructure such as mev-boost
or other kind of PBS (proposer-builder separation)
The bundler
can also rely on an experimental eth_sendRawTransactionConditional
RPC API if it is available.
Utilize the following API to send the bundle of user operations to the bundler.
/senduserops
Prepare the data, to send the bundle of user operations, to the bundler.
POST
https://api.expand.network/aa/senduserops
Request Body
Remote procedural call URL.
Data passed into the account along with the nonce during the verification step.
Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
Maximum priority fee per gas. (similar to EIP-1559 max_priority_fee_per_gas
)
The amount of gas to pay for to compensate the bundler for pre-verification execution and calldata.
The amount of gas to allocate for the verification step.
Maximum gas limit provided by the sender, for the transaction.
The amount of gas to allocate the main execution call.
The data to pass to the sender
during the main execution call.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
The account making the operation.
Beneficiary address for bundle execution.
Gas limit for bundler transaction.
Sample Request
Copy {
"userOps": [
{
"sender": "0x03D3a52d79eeB5014dFe28258e8c0978Ecd8e65c",
"nonce": "0",
"initCode": "0x",
"callData": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844",
"callGasLimit": "260611",
"gasLimit": "362451",
"verificationGasLimit": "362451",
"preVerificationGas": "53576",
"maxFeePerGas": "29964445250",
"maxPriorityFeePerGas": "100000000",
"paymasterAndData": "0x",
"signature": "0x06ba793e154877ba4beff535372f70be6d2ebb5503f374297658caa13a114b5b29b5a45cd4835176e637018823bba5990b6f043f93fe792a5bdb2a09958ecca61c"
}
],
"bundler": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"gas": "516124"
}
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"gas": "516124",
"data": "0x1fad948c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003d3a52d79eeb5014dfe28258e8c0978ecd8e65c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000003fa0300000000000000000000000000000000000000000000000000000000000587d3000000000000000000000000000000000000000000000000000000000000d14800000000000000000000000000000000000000000000000000000006fa0526420000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010438ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004106ba793e154877ba4beff535372f70be6d2ebb5503f374297658caa13a114b5b29b5a45cd4835176e637018823bba5990b6f043f93fe792a5bdb2a09958ecca61c00000000000000000000000000000000000000000000000000000000000000",
"value": "0"
}
}
TON Wallet To start using TON, you need to have a wallet. It's an app that will hold your Toncoins and help you to interact with other apps inside the network.
Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy const { WalletTON } = require('expand-network');
const wallet = new WalletTON({privateKey: privatekey});
Step 3: Prepare Transaction
Copy // Preparing the transaction from expand.network
const preparedTx = {
from: "SENDER_WALLET_ADDRESS",
to: "RECEIVER_WALLET_ADDRESS",
value: "1000000",
chainId: '1100',
message:"Hi from expand.network"
}
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
Step 5: Send Transaction
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
Sample code for native token transfer using Ton Wallet:
Copy const { WalletTON } = require('expand-network');
async function main() {
const privatekey = await WalletTON.getPrivateKey("User_privatekey");
console.log(privatekey);
const wallet = new WalletTON({privateKey: privatekey});
const preparedTx = {
from: "SENDER_WALLET_ADDRESS",
to: "RECEIVER_WALLET_ADDRESS",
value: "1000000",
chainId: '1100',
message:"Hi from expand.network"
}
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log("Transaction Pending....", tx);
}
main();
COINBASE Coinbase Wallet is a self-custody wallet, giving you complete control of your crypto. It allows you to store and manage all of your crypto, NFTs, and multiple wallets in one place
Step 1: Installation
User needs to install the expand.network SDK using the following command:
Step 2: Wallet Initialisation
Copy const { WalletCoinbase, prepareTransaction } = require('expand-network');
const wallet = new WalletCoinbase({ privateKey:'YOUR_PRIVATE_KEY', xApiKey:xApiKey});
Step 3: Prepare Transaction
Copy // Preparing the approve transaction from expand.network
const preparedTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000",
"to": "SPENDER_WALLET_ADDRESS", //For approve
"gas": "100000",
"chainId": "1",
"xApiKey":xApiKey
});
Step 4: Sign Transaction
Copy // Sign the transaction locally using sdk client
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
Step 5: Send Transaction
Copy // Send the signed transaction
const tx = await wallet.sendTransaction(signedTx);
console.log(tx);
Sample code to approve a fungible token using Coinbase Wallet:
Copy const { WalletCoinbase, prepareTransaction } = require('expand-network');
const xApiKey = 'YOUR_API_KEY'; //Replace this with your API key
async function main() {
const wallet = new WalletCoinbase({ privateKey:'YOUR_PRIVATE_KEY', xApiKey:xApiKey});
const preparedTx = await prepareTransaction('https://api.expand.network/fungibletoken/approve', {
"from": "OWNER_WALLET_ADDRESS",
"tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000",
"to": "SPENDER_WALLET_ADDRESS",
"gas": "100000",
"chainId": "1", // Replace with other chainId to toggle between chains
"xApiKey":xApiKey
});
const signedTx = await wallet.signTransaction(preparedTx);
console.log(signedTx);
const tx = await wallet.sendTransaction(signedTx);
console.log("Transaction Pending....", tx.data);
}
main();
Stream Gas Stream Gas is a method used to obtain the gas fees given by a public address.
Response Schema:
Streaming Gas:
Users can stream gas in two ways:
Example 1: via wscat script (For Linux based distro)
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing wscat, the user needs to create a shell script and paste the following sample code:
Client Side Sample Socket Code :
After following the above steps, the user needs to run the file. This can be done by entering the filename in the console.
Executing a query :
After executing the aforementioned file(shell script), the user will be prompted to input the appropriate API key.
After entering the API key, the user can subscribe to the following actions:
Applying a filter in the query :
Users can apply the following filters in their query:-
The above filters can be applied in any combination, using the following syntax :
Sample Query :
Example 2. via javascript code
First, the user needs to run the following command in their terminal to install wscat in their system:
After installing ws, the user needs to run the following sample code on their device to start streaming:
Client Side Sample Socket Code :
Expected Output:
How to disconnect:
To disconnect from our API, enter ctrl-c
in the connected console.
Endpoint Name
Category
Description
Retrieves all the transfers for the given address in the given range.
Retrieves all the logs for WETH events specified in query in the given block range.
Retrieves all the WETH transfers for the given address in the given range.
Retrieves all the logs for the given address in the given range.
Retrieves past transactions associated with a designated address, sorted based on an NFT token contract, and limited within a specific block range.
Retrieves historical logs for any NFT Collection.
Get the historical transaction details for a specific user address.
Get the historical transaction details focusing on staking rewards for a specific user address.
Get the trade data from the pool within a specified block range, for the specified event type
Get the historical time series transactions for a specific pool address.
Get the historical transactions focusing on swaps associated with a specific pool address.
Get detailed information for user transactions on various DEXs, including transaction type, block-related details, decoded parameters, and many more.Available for Uniswap V2, Uniswap V3, SushiSwap V2, Curve V2, and Balancer V2.
Get your historical profit and loss.
As per , Bundler is a node (block builder) that can handle UserOperations, create a valid an EntryPoint.handleOps() transaction, and add it to the block while it is still valid. This can be achieved by a number of ways:
Refer to the page for details.
Maximum fee per gas. (similar to max_fee_per_gas
)
The user operation object as per .
Refer to the page for details.
To use TON Wallet with expand.network , follow these steps:-
To use COINBASE with expand.network , follow these steps:-
The public address that is subscribed for Gas Streaming
The BlockNumber where the Transaction Occured.
The Current Price for ETH (in USD).
The Gas Object that consists of totalGasUsed and the transactionList with the Current Price (in cents)
Copy #!/bin/bash
echo "Price Discovery\n"
read -p "x-api-key: " YOUR_API_KEY
wscat -c wss://pricediscovery.expand.network -H authorization:secret-token -H x-api-key:$YOUR_API_KEY
Copy chmod +x YOUR_FILE_NAME.sh
Copy {"action": "streamGas"}
Copy {"action":"streamGas","addresses":["address1" , "address2" , ...]}
Copy {"action":"streamGas","addresses":["0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"]}
Copy const WebSocket = require('ws');
const url = 'wss://pricediscovery.expand.network';
const options = {
headers: {
Authorization: 'secret-token',
'x-api-key': 'YOUR_API_KEY', // Replace this with your API Key
}
};
const ws = new WebSocket(url, options);
ws.on('open', () => {
console.log('WebSocket connection established.');
const payload = {
action: "streamGas",
addresses: ["0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"]
};
ws.send(JSON.stringify(payload));
});
ws.on('message', (data) => {
console.log(`Received data: ${data}`);
});
ws.on('close', () => {
console.log('WebSocket connection closed.');
});
Copy "blockNumber": 17336355,
"currentPrice": "1799.59",
"gas": {
"totalFeesSpent": 41231312312212312,
"transactionList": {
"0x7a29adcfad36eb70c1fb1b7b15b7779ac347c41a758ac13bade5627d1afb3379": 41231312312212312
},
"totalCurrentPrice": "7480"
}}
Overview expand.network provides Account abstraction capabilities.
What is Account Abstraction?
Regular ways of keeping your digital stuff safe, like browser extensions, seed phrases, and wallets, can be a hassle. But the idea is to make using Web3 super easy so regular folks can use it without realizing they are.
With the current Ethereum architecture, users sign transactions and pay gas fees from their externally owned accounts (EOAs). Account abstraction proposes a more flexible system where these responsibilities can be offloaded or changed to allow more varied transaction models.
Account Abstraction lets computer whizzes create special "smart accounts" or flexible wallets. It does this by changing who's in charge of saying "yes" to money moves. Instead of wallets doing it, smart accounts take over. This means these accounts can do more than just move money around. They can also do fancy things like running computer code, triggering events, and managing how things change on the internet money system. Cool, right?
The following functions are implemented considering the Account Abstraction capabilities:-
Get the signature message, which needs to be signed.
Get the user operation, which can be signed and sent to the bundler.
Get the paymaster data, that can be sent in the user operations.
Prepare the data, to send the bundle of user operations, to the bundler.
Following is the diagram for account abstraction on-chain wallet creation:-
Following is the diagram for executing call data operation via On-chain wallet contract:-
Following is the diagram for account abstraction gas payment via paymaster contract:-
Paymaster Endpoint No possibility for “passive” paymasters (eg. that accept fees in some ERC-20 token at an exchange rate pulled from an on-chain DEX)
Paymasters run the risk of getting griefed, as users could send ops that appear to pay the paymaster but then change their behavior after a block
Utilize the following APIs to get paymaster data and signature.
/getpaymasterdata
Get the paymaster data, that can be sent in the user operations.
GET
https://api.expand.network/aa/getpaymasterdata
Query Parameters
Remote procedural call URL.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
The amount of gas to pay for to compensate the bundler for pre-verification execution and calldata.
The amount of gas to allocate for the verification step.
Maximum gas limit provided by the sender, for the transaction.
The amount of gas to allocate the main execution call.
Encoded data for executing the primary function call or operation within the user's transaction.
Maximum priority fee per gas. (similar to EIP-1559 max_priority_fee_per_gas
)
Data passed into the account along with the nonce during the verification step.
Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
paymasterContractAddress*
Address of the contract from where, gas is to be paid.
The UserOp is valid only after this time, to be sent in epoch time format.
The UserOp is valid only up to this time, to be sent in epoch time format.
Sample Request
Copy https://api.expand.network/aa/getpaymasterdata?sender=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&chainId=1&paymasterContractAddress=0xba60b04029be2bfd16d76e70290acfad3a8b582c&mockValidUntil=0x00000000deadbeef&mockValidAfter=0x0
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"paymasterData": "0xba60b04029be2bfd16d76e70290acfad3a8b582c00000000000000000000000000000000000000000000000000000000deadbeef00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"hash": "0x2907ffb2f2320e35a041bd74235caed02f706e3ed4b2308f0a064a1f9e0aac67",
"mockValidUntil": "0x00000000deadbeef",
"mockValidAfter": "0x0"
}
}
User Endpoints Like a transaction, it contains “sender”, “to”, “calldata”, “maxFeePerGas”, “maxPriorityFee”, “signature”, “nonce”
unlike a transaction, it contains several other fields, described below
also, the “signature” field usage is not defined by the protocol, but by each account implementation
Utilize the following APIs to get the signature message & the user operation.
/getsignaturemessage
Get the signature message, which needs to be signed.
GET
https://api.expand.network/aa/getsignaturemessage
Query Parameters
Remote procedural call URL.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
The amount of gas to pay for to compensate the bundler for pre-verification execution and calldata.
The amount of gas to allocate for the verification step.
Maximum gas limit provided by the sender, for the transaction.
The amount of gas to allocate the main execution call.
Encoded data for executing the primary function call or operation within the user's transaction.
Maximum priority fee per gas. (similar to EIP-1559 max_priority_fee_per_gas
)
Data passed into the account along with the nonce during the verification step.
Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
Sample Request
Copy https://api.expand.network/aa/getsignaturemessage?sender=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&chainId=1&callData=0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"messageToBeSigned": "0x4617338a3acd06271c356d52f8cfc260519e8e2115f0af41eb79b7ac13b1963c"
}
}
/getuserops
Get the user operation, which can be signed and sent to the bundler.
GET
https://api.expand.network/aa/getuserops
Query Parameters
Remote procedural call URL.
The initCode of the account. (needed if and only if the account is not yet on-chain and needs to be created)
The amount of gas to pay for to compensate the bundler for pre-verification execution and calldata.
The amount of gas to allocate for the verification step.
Maximum gas limit provided by the sender, for the transaction.
The amount of gas to allocate the main execution call.
Encoded data for executing the primary function call or operation within the user's transaction.
Maximum priority fee per gas. (similar to EIP-1559 max_priority_fee_per_gas
)
Data passed into the account along with the nonce during the verification step.
Address of paymaster sponsoring the transaction, followed by extra data to send to the paymaster. (empty for self-sponsored transaction)
Sample Request
Copy https://api.expand.network/aa/getuserops?sender=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&chainId=1&callData=0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844
Sample Response
Copy {
"status": 200,
"msg": "success",
"data": {
"sender": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"nonce": "0",
"initCode": "0x",
"callData": "0x38ed173900000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000000000000000000000000000000000000634d00ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000011fe4b6ae13d2a6055c8d9cf65c55bac32b5d844",
"callGasLimit": "260611",
"gasLimit": "362451",
"verificationGasLimit": "362451",
"preVerificationGas": "53576",
"maxFeePerGas": "29964445250",
"maxPriorityFeePerGas": "100000000",
"paymasterAndData": "0x",
"signature": "0x"
}
}
As per , Paymasters facilitate transaction sponsorship, allowing third-party-designed mechanisms to pay for transactions. Many of these mechanisms could be done by having the paymaster wrap a UserOperation
with their own, but there are some important fundamental limitations to that approach:
Refer to the page for details.
Refer to the page for details.
The maximum fee per gas to pay for the execution of this operation. (similar to max_fee_per_gas
)
As per , User Operations is a structure that describes a transaction to be sent on behalf of a user. To avoid confusion, it is not named “transaction”.
Refer to the page for details.
Refer to the page for details.
The maximum fee per gas to pay for the execution of this operation. (similar to max_fee_per_gas
)
Refer to the page for details.
Refer to the page for details.
The maximum fee per gas to pay for the execution of this operation. (similar to max_fee_per_gas
)
Latest Endpoint Name
Category
Description
Get the balance or number of the given token in the requested public address
Get the current gas price from the network.
Get data stored in the given slot.
Get details of a transaction.
Retrieves gas fee spent in a particular range
Get the RPC of required chain.
Get the decoded transaction for the provided raw transaction
Calls read functions of verified smart contracts
Get a filtered list of events emitted by a given ledger range, within a maximum 24 hours of recent ledgers. Available on Stellar.
Get details for the current latest known ledger of the node. Available on Stellar.
Get details of the flashbot blocks. Available on ethereum.
Get details of the flashbot transactions. Available on ethereum.
Get details of the specified flashbot bundle. Available on ethereum.
Returns the swap quotation for a specified token pair for a specified DEX.
Returns the balance of a specified token pair for a specified account.
Returns the total liquidity for a specified pool.
Returns the individual token liquidity within a specified liquidity pool.
Returns the total number of liquidity providers in a specified liquidity pool.
Returns the liquidity position for a specified user address across all the pools for a specified DEX.
Returns a list of all the quotes for a pool on different DEXs. See notes below.
Returns all user addresses, block numbers, and token position details for a specified pool address. Available for Uniswap V2,V3 and Sushiswap only.
Get the lend and borrow APY for the given pool from the given protocol
Get the list of supply and borrow APYs of the mentioned assets.
Get the repay, borrow, and withdraw amount details for the given user.
Check whether the user is approved before deposting.
Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address.
Get the rewards claimed by the specified account on the protocol.
Get the protocol and governor-related data for a market.
Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account.
Get the Lido staking APR on Ethereum.
Get the stETH interactions by a specified user address along with the daily stETH rewards.
Get the amount of stETH and wstETH staked on Lido by a specified address.
Get all the withdrawal requests(NFT ids) made by a specified address.
Get the status of a withdrawal request made by a specified address.
Get the Lido staking APR on Ethereum, for the past 7 days.
Get the approved allowance amount set by the owner for the spender.
Get the swap quotation for the given token pairs.
Get the balance of a particular token pair of an account.
Get details of a transaction.
Get the name, symbol and decimals of provided token address.
Get the amount that the spender is allowed to withdraw on behalf of the owner.
Get the balance of the given token for the provided public address.
Get the balance or number of WETH in the requested public address.
Retrieves the number of NFTs held in the owner's account.
Retrieves the owner of the specified token ID.
Retrieves the metadata for the specified NFT.
Get balance of the user in a given Vault or Pool (harvest finance).
Get the number of the vaults along with the respective vault APY.
Get the Price(in USDT) of a token for the given protocol.
Get the list of supported tokens on Expand.network, for the specified oracle.
Get the Price of a stablecoin.
Get the exchange amount in Protocol Tokens for entered Pegged Tokens.
Stream transactions will help you to track the activity of the subscribed address on the blockchain.
Stream trade is a method used to obtain the prices of a specific pair of tokens across multiple decentralized exchanges (DEXs).
Stream Gas is a method used to obtain the gas fees given by a public address.
Event Subscription is used to subscribe to specific events or transactions occurring within a blockchain network.
Get the signature message, which needs to be signed.
Get the user operation, which can be signed and sent to the bundler.
Get the paymaster data, that can be sent in the user operations.
Get the comprehensive information about the assets/ tokens owned by a user across different EVM chains.
Retrieves quotes from various DEXs & aggregators in a unified manner. For a specified pair address, this endpoint will return the respective quotes for each DEX in which the pair address is present.
Get the list of tokens supported by the specific bridge, on the specified chain, on expand.network.
Get the list of chains supported on the specific bridge on expand.network.
Get the route details as to how the tokens will be bridged, token amount, etc.
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
Get the data for the pool and obtain the OHCL (Open, High, Close, Low) prices within the specified time interval.
Get details for all orders corresponding to the specified address and the specified sub-account number.
Get details for a specific order using the specified order id.
Get the fill details of the order.
Get a list of your assets deposited in dYdX.
Get the position of an user.
Get the details of a subaccount of a user.
Get the details of the transfer transaction.
Sample request via Postman
Sequence Diagram for sendTransaction
Sequence Diagram for swap
Sequence diagram for addLiquidity
Sequence diagram for removeLiquidity
Sequence diagram for approve
Sequence diagram for transfer
Sequence Diagram for transferFrom
Sequence diagram for convertBaseTokenToWrapToken
Sequence diagram for convertWrapTokenToBaseToken
Sequence Diagram for deposit
Sequence Diagram for deposit
Sequence Diagram for borrow
Sequence Diagram for liquidate
Sequence Diagram for repay
Sequence Diagram for withdraw
Account Abstraction On-chain wallet creation
Execute call data operation via On-chain wallet contract
Account Abstraction Gas Payment via Paymaster contract