Search
# DexTrade
# ABI
The built-in dex trade contract. Contract address is vite_00000000000000000000000000000000000000079710f19dc7
# CancelOrder
ABI definition
Inputs
Input item | Name | Data type | source | comment |
---|---|---|---|---|
AccountAddress | new order owner | Address | sendBlock | |
orderId | - | bytes | ABI |
# RPC interface
Supported protocol:
JSON-RPC 2.0 | HTTP | IPC | Publish–subscribe | Websocket |
---|---|---|---|---|
✓ | ✓ | ✓ | future version | ✓ |
# dextrade_getOrderById
query order detail by order Id
Parameters:
orderId
: base64 encoded orderId
Returns:
Order
:order detail
Example:
# dextrade_getOrdersFromMarket
query open orders from one trade pair, return orders will list by sequence which they will be matched
Parameters:
tradeToken
: trade token of trade pairquoteToken
: quote token of trade pairside
: buy/sell trade token for order, false buy, true sellbegin
: begin index, start from 0end
: end index
Returns:
[]Order
:open order list
Example: