On this page

latest contributor to this doc

Last Edit:

@gcharang

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.

StructureTypeDescription
my_coinstringreturn only swaps that match the swap.my_coin = request.my_coin condition
other_coinstringreturn only swaps that match the swap.other_coin = request.other_coin condition
from_timestampnumber (timestamp in seconds)return only swaps that match the swap.started_at >= request.from_timestamp condition
to_timestampnumber (timestamp in seconds)return only swaps that match the swap.started_at < request.to_timestamp condition

StructureTypeDescription
uuidsarray of stringsuuids of swaps that match the selected filters
my_coinstringmy_coin that was set in request
other_coinstringother_coin that was set in request
from_timestampnumberfrom_timestamp that was set in request
to_timestampnumberto_timestamp that was set in request
records_foundnumberthe number of found uuids

POST
all_swaps_uuids_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "all_swaps_uuids_by_filter",
  "my_coin": "DOC",
  "other_coin": "MARTY"
}

POST
all_swaps_uuids_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "all_swaps_uuids_by_filter",
  "my_coin": "DOC",
  "from_timestamp": 1611705600
}

POST
all_swaps_uuids_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "all_swaps_uuids_by_filter",
  "my_coin": "DOC",
  "from_timestamp": 1611705600,
  "to_timestamp": 1611792001
}