Creates a new stream filter on the blockchain. Stream filters are JavaScript programs that can be attached to streams to validate or transform items.
Arguments
- conn
A connection object created by
mc_connect.- name
Character string. Name of the filter (must be unique).
- options
List of filter options. Typically includes
libraries(list of library names) that the filter depends on. Example:list(libraries = list("mylib")).- js_code
Character string. The JavaScript code for the filter.
See also
mc_create_tx_filter, mc_list_stream_filters
Other filters:
mc_approve_from(),
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(),
mc_test_tx_filter()