listExchanges
List all exchange pairs.
listExchanges()
RETURN
ExchangeList object.
EXAMPLE
wrapper.listExchanges();
The result is:
exchanges {
exchange_id: 1
creator_address: "AW\304\362\371&\260A\267\247\006\202\377\336\367$\236\031\220\206Y"
create_time: 1586852889000
first_token_id: "1000032"
first_token_balance: 6682
second_token_id: "_"
second_token_balance: 6583
}
...
getExchangeById
Query exchange pair based on id.
getExchangeById(id)
PARAMS
- id(String)*
transaction pair id.
RETURN
Exchange object.
THROWS
IllegalException, if fail to get exchange pair.
EXAMPLE
wrapper.getExchangeById("1");
The result is:
exchange_id: 1
creator_address: "AW\304\362\371&\260A\267\247\006\202\377\336\367$\236\031\220\206Y"
create_time: 1586852889000
first_token_id: "1000032"
first_token_balance: 6682
second_token_id: "_"
second_token_balance: 6583