• Home
  • ExpoinDEX
  • EXN Token
  • Search
  • Home
  • ExpoinDEX
  • EXN Token
  • Search
  • How to Create Wallet in ExpoinDEX Web
  • Comparing the Various Types of Native Crypto Assets
  • Expoin — The Next-Generation Web DEX
    • Delayed Proof of Work
    • Pitch Deck
    • ExpoinDEX
    • Expoin Mobile — A DEX in Your Pocket
  • API Documentation
  • Token EXN
    • Audited by ACKEE

API Documentation

87 views 0

Written by admin
26.05.2022

A batch request is a method for sending several unique requests to the network all at once.

The requests are sent as an array filled with request objects. Results are returned in the order of received requests.

TIP

Avoid sending requests that depend on each other. For example, do not send a coin activation and a balance request to that coin in the same batch.

Such requests result in non-deterministic behavior, as the ExpoinDEX API may or may not execute the requests in the desired order.

#Arguments

StructureTypeDescription
(none)array of objectsrequest objects to be executed in parallel

#Response

StructureTypeDescription
(none)array of objectsthe results, provided in the order of received requests; this may contain null elements

#📌 Examples

#Command

curl --url "http://127.0.0.1:7783" --data "[
{\"method\":\"electrum\",\"coin\":\"RICK\",\"servers\":[{\"url\":\"electrum1.cipig.net:10017\"},{\"url\":\"electrum2.cipig.net:10017\"},{\"url\":\"electrum3.cipig.net:10017\"}],\"userpass\":\"$userpass\",\"mm2\":1},
{\"method\":\"electrum\",\"coin\":\"MORTY\",\"servers\":[{\"url\":\"electrum1.cipig.net:10018\"},{\"url\":\"electrum2.cipig.net:10018\"},{\"url\":\"electrum3.cipig.net:10018\"}],\"userpass\":\"$userpass\",\"mm2\":1},
{\"method\":\"electrum\",\"coin\":\"RICK\",\"servers\":[{\"url\":\"electrum1.cipig.net:10017\"},{\"url\":\"electrum2.cipig.net:10017\"},{\"url\":\"electrum3.cipig.net:10017\"}],\"userpass\":\"invalid userpass\",\"mm2\":1}
]"

Was this helpful?

Yes  No
Related Articles
  • Audited by ACKEE
  • Delayed Proof of Work
  • Comparing the Various Types of Native Crypto Assets
  • How to Create Wallet in ExpoinDEX Web
  • Pitch Deck
  • Expoin Mobile — A DEX in Your Pocket

Didn't find your answer? Contact Us

Leave A Comment Отменить ответ

Previously
Expoin Mobile — A DEX in Your Pocket
Up Next
Token EXN
Copyright 2022 SmartWpThemes.com. All Rights Reserved