Tests a transaction filter's JavaScript code against a given transaction without permanently creating the filter.
Arguments
- conn
A connection object created by
mc_connect.- options
List of filter options (similar to
mc_create_tx_filter).- js_code
Character string. JavaScript code to test.
- tx
Optional character string. Hex representation or transaction ID of a transaction to test against. If omitted, a generic test is performed.
See also
mc_create_tx_filter, mc_run_tx_filter
Other filters:
mc_approve_from(),
mc_create_stream_filter(),
mc_create_tx_filter(),
mc_create_upgrade(),
mc_get_filter_code(),
mc_list_stream_filters(),
mc_list_tx_filters(),
mc_list_upgrades(),
mc_run_stream_filter(),
mc_run_tx_filter(),
mc_test_stream_filter()
Examples
if (FALSE) { # \dontrun{
result <- mc_test_tx_filter(conn, list("for" = "asset1"),
"function filter(tx) { return true; }",
tx = "txid...")
} # }