all_swaps_uuids_by_filter
all_swaps_uuids_by_filter (my_coin other_coin from_timestamp to_timestamp)
The all_swaps_uuids_by_filter
method returns all uuids of swaps that match the selected filters. Please note that all filters (my_coin, from_timestamp, etc.) are combined using logical AND.
Structure | Type | Description |
---|---|---|
my_coin | string | return only swaps that match the swap.my_coin = request.my_coin condition |
other_coin | string | return only swaps that match the swap.other_coin = request.other_coin condition |
from_timestamp | number (timestamp in seconds) | return only swaps that match the swap.started_at >= request.from_timestamp condition |
to_timestamp | number (timestamp in seconds) | return only swaps that match the swap.started_at < request.to_timestamp condition |
Structure | Type | Description |
---|---|---|
uuids | array of strings | uuids of swaps that match the selected filters |
my_coin | string | my_coin that was set in request |
other_coin | string | other_coin that was set in request |
from_timestamp | number | from_timestamp that was set in request |
to_timestamp | number | to_timestamp that was set in request |
records_found | number | the number of found uuids |
POST
all_swaps_uuids_by_filter{
"userpass": "testpsw",
"method": "all_swaps_uuids_by_filter",
"my_coin": "DOC",
"other_coin": "MARTY"
}
POST
all_swaps_uuids_by_filter{
"userpass": "testpsw",
"method": "all_swaps_uuids_by_filter",
"my_coin": "DOC",
"from_timestamp": 1611705600
}
POST
all_swaps_uuids_by_filter{
"userpass": "testpsw",
"method": "all_swaps_uuids_by_filter",
"my_coin": "DOC",
"from_timestamp": 1611705600,
"to_timestamp": 1611792001
}