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
https://api.expand.network/chain/getbalance/?address=0x731FDBd6871aD5cD905eE560A84615229eD8197a
{
"status": 200,
"msg": "success",
"data": {
"balance": "102907902410719396674"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=16318231
{
"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": []
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
https://api.expand.network/chain/getgasprice
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "16858407956"
}
}
/getstorage
Get data stored in the given slot.
GET
https://api.expand.network/chain/getstorage
Query Parameters
https://api.expand.network/chain/getstorage?address=0x6839f0eB2a4f323aC616b99BA01547dE592BC965
{
"status": 200,
"msg": "success",
"data": {
"data": "0x000000000000000000000001c6f53a31de0ed6753f021224905772c706ee71ea"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?transactionHash=0x00ac1582db64ee60e1be6b653c42ca5d199d749c2e0e3990f3ab00433fcdc1d6
{
"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
}
}
/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
rpc
String
Remote procedural call URL.
address*
String
Addess of the user
startBlock
String
Starting block of the range by default it is latestblock-100
endBlock
String
Last block of the range
by default it is latest block
https://api.expand.network/chain/getgasfees?address=0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
{
"status": 200,
"msg": "success",
"data": {
"totalFeesSpent": "0",
"totalCurrentPrice": "0",
"totalAdjustedPrice": "0",
"transactionList": {
"0x02c33d16d164f1e0bb653e913bb7ff99bea9aaaa68ea505a4c87a4ad1174f245": "21000",
"0x09d0f07f6623e4819e5f428f766d74e51718e044421ecd9edeca8fb47e949f45": "22000"
}
}
}
/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
rpc
String
Remote procedural call URL.
address*
String
Public addess of the user.
tokens
String
Comma-separated value of ERC-20 tokens to get value of. Maximum 10 at a time.
availableOnly
Boolean
By default, false. If true, tokens with balance > 0 will be listed.
pageToken
String
Present at the end of a lengthy response to fetch the next page.
assetType
String
fungible
/nonFungible
standard choice.
By default, all
.
https://api.expand.network/chain/portfolio?chainId=1&address=0x356dB816602c85e2075774bB77D13995c8Bab023&availableOnly=true
{
"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"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
The public address of the user.
page
String
The page number that the user wants to fetch.
sortOrder
String
The transaction sorting order. asc or desc. By default, desc.
https://api.expand.network/chain/getusertransactions?address=0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5&page=509&chainId=1
{
"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"
}
]
}
]
}
}
/getflashbotblocks
Get details of the flashbot blocks.
GET
https://api.expand.network/chain/getflashbotblocks
Query Parameters
https://api.expand.network/chain/getflashbotblocks?chainId=1
{
"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
https://api.expand.network/chain/getflashbottransactions?chainId=1
{
"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/getflashbotbundle
Query Parameters
https://api.expand.network/chain/getflashbotbundle?bundleHash=0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f
{
"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
rpc
String
Remote procedural call URL.
rawTransaction*
String
The encoded transaction, obtained from the signed transaction.
bdnTransaction
Boolean
If true, then txn goes through the bdn route, which speeds up the transaction process.
By default, false.
mevProtection
Boolean
If true, then txn goes through flashbots.
{
"rawTransaction": "0xf86f048433918fbe830493e0949b79d6dfe4650d70f35dbb80f7d1ec0cf7f823fd87038d7ea4c6800084022794382da0c9bd6b5c7e18a258b04039d524a3e1382ec0f522d160dc027428933f520b6868a07332736f1df297842299230820626f1fc5b8d4cdd602ade55e3ba02c63e756ce"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"transactionHash": "0x8375c5eedd17609292cecc051c18e180fa970b32a77011c48d3725e45e46e7b3"
}
}
With bdnTransaction: true
{
"chainId": "1",
"rawTransaction": "0xf8672385070e93c2cf8261a8946fb447ae94f5180254d436a693907a1f57696900830186a08026a0544037b4bd1f139c5d5cbc926d239f4eff34ecc428872e9ba576d6b921254c15a014e0e56c6b2d752d03e059098d69b59b26063a8767bcd1cfc00fc0e9e7ab8365",
"bdnTransaction": true
}
With bdnTransaction: true
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"txHash": "65f59305a9e6f684c8e680dce60c613484a72c61c844be5666e21fccd8a2a53f"
}
}
With mevProtection: true
{
"chainId":"1",
"rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
"mevProtection": true
}
With mevProtection: true
{
"status": 200,
"msg": "success",
"data": {
"chainId" : "1",
"txHash": "0xd9cdf1483a85aa206625c66fea49059b96ffae1c086f76664cfa3f91a495d73a"
}
}
/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
rpc
String
Remote procedural call URL.
contractAddress*
String
Address of the Contract to perform read operation on.
parameters
Array
Parameters to the read function
abi
String
Abi of the smart contract
methodName*
String
Name of the read function to be called
blockNumber
String
BlockNumber to perform read query on. by Default latestBlock
{
"contractAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"methodName": "getAmountsIn",
"parameters": [
"4515444785",
[
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
]
]
}
{
"status": 200,
"msg": "success",
"data": {
"getAmountsIn": [
"2425265",
"4515444785"
]
}
}
/decodetransaction
Get the decoded transaction for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
{
"chainId" : "1",
"rawTransaction":"0xf865808509c9919d87830a4a1194a67e9b68c41b0f26184d64c26e0b2b81466e5994018025a07542477f2599acdda95c37ff0492bd0ac656687780033807e0434ccf69bd4015a005f33bf2cde8001f51b46e18db78049b4509b824f09dccb45b4dbb9087d17049"
}
{
"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"
}
}
}
}
Last updated