<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3AFiltering</id>
	<title>Dev:Filtering - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3AFiltering"/>
	<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Filtering&amp;action=history"/>
	<updated>2026-04-24T15:34:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Filtering&amp;diff=140&amp;oldid=prev</id>
		<title>Nexus wiki: Nexus wiki moved page Filtering to Dev:Filtering without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Filtering&amp;diff=140&amp;oldid=prev"/>
		<updated>2024-10-06T18:18:37Z</updated>

		<summary type="html">&lt;p&gt;Nexus wiki moved page &lt;a href=&quot;/index.php?title=Filtering&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Filtering (page does not exist)&quot;&gt;Filtering&lt;/a&gt; to &lt;a href=&quot;/index.php/Dev:Filtering&quot; title=&quot;Dev:Filtering&quot;&gt;Dev:Filtering&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:18, 6 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key nexus_wiki:diff:1.41:old-21:rev-140 --&gt;
&lt;/table&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Filtering&amp;diff=21&amp;oldid=prev</id>
		<title>Nexus wiki: Created page with &quot;All API endpoints support filtering the results for getting specific parts of the dataset. The following sections describe how to filter the JSON of given output.  The minimum required components of the URI to filter results are:   commands/verb/noun/&lt;filter&gt;  The above filter becomes an expression either on the end of the URI, or between an operator:   commands/verb/noun/&lt;filter&gt;/operator  == Filtering ==  In order to filter an object, one must know the JSON key they ar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Filtering&amp;diff=21&amp;oldid=prev"/>
		<updated>2024-10-04T05:18:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;All API endpoints support filtering the results for getting specific parts of the dataset. The following sections describe how to filter the JSON of given output.  The minimum required components of the URI to filter results are:   commands/verb/noun/&amp;lt;filter&amp;gt;  The above filter becomes an expression either on the end of the URI, or between an operator:   commands/verb/noun/&amp;lt;filter&amp;gt;/operator  == Filtering ==  In order to filter an object, one must know the JSON key they ar...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All API endpoints support filtering the results for getting specific parts of the dataset. The following sections describe how to filter the JSON of given output.&lt;br /&gt;
&lt;br /&gt;
The minimum required components of the URI to filter results are:&lt;br /&gt;
&lt;br /&gt;
 commands/verb/noun/&amp;lt;filter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above filter becomes an expression either on the end of the URI, or between an operator:&lt;br /&gt;
&lt;br /&gt;
 commands/verb/noun/&amp;lt;filter&amp;gt;/operator&lt;br /&gt;
&lt;br /&gt;
== Filtering ==&lt;br /&gt;
&lt;br /&gt;
In order to filter an object, one must know the JSON key they are filtering for.&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 69,&lt;br /&gt;
    &amp;quot;OP&amp;quot;: &amp;quot;CREDIT&amp;quot;,&lt;br /&gt;
    &amp;quot;for&amp;quot;: &amp;quot;COINBASE&amp;quot;,&lt;br /&gt;
    &amp;quot;txid&amp;quot;: &amp;quot;01dcaa27022f435d34d1aadf423c9673a46ae48e50740e9971e390e7187dd1bae23ad3d3d65900cc10f98ada7b8f0bec70693a3f8f49b30b7aeeba0cd485c10e&amp;quot;,&lt;br /&gt;
    &amp;quot;contract&amp;quot;: 2,&lt;br /&gt;
    &amp;quot;to&amp;quot;: &amp;quot;8BAv1H2YKfpaYC1RJMq9qjmMTiEV8DJiLpiKGqTY54wf2VPjznD&amp;quot;,&lt;br /&gt;
    &amp;quot;amount&amp;quot;: 231.861868,&lt;br /&gt;
    &amp;quot;token&amp;quot;: &amp;quot;0&amp;quot;,&lt;br /&gt;
    &amp;quot;ticker&amp;quot;: &amp;quot;NXS&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The above JSON statement can be filtered by the following:&lt;br /&gt;
&lt;br /&gt;
 commands/verb/noun/OP,to,amount,ticker&lt;br /&gt;
&lt;br /&gt;
This would result in the following filtered object:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;OP&amp;quot;: &amp;quot;CREDIT&amp;quot;,&lt;br /&gt;
    &amp;quot;to&amp;quot;: &amp;quot;8BAv1H2YKfpaYC1RJMq9qjmMTiEV8DJiLpiKGqTY54wf2VPjznD&amp;quot;,&lt;br /&gt;
    &amp;quot;amount&amp;quot;: 231.861868,&lt;br /&gt;
    &amp;quot;ticker&amp;quot;: &amp;quot;NXS&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
One can include as many filters as desired, as long as keys exist in the returned JSON and they follow a strict no-spaces *.csv (Comma Separated Values) format. This allows you to choose specific data that&amp;#039;s needed without needing to require filtering client side.&lt;br /&gt;
&lt;br /&gt;
== Recursive Filtering ==&lt;br /&gt;
&lt;br /&gt;
JSON hierarchy can be maintained and traversed recursively to any depth of the data structure. Let us take the following JSON object, a verbose transaction:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;txid&amp;quot;: &amp;quot;019427d69187a02a23305a152c167c0c3fb547426afbdbee47ae674c7ea5a3d8f70e9a29c818f213edf1ce2721ae8bb81652e8cc77aac842df3c371027fa4e60&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;tritium user&amp;quot;,&lt;br /&gt;
    &amp;quot;version&amp;quot;: 2,&lt;br /&gt;
    &amp;quot;sequence&amp;quot;: 1731,&lt;br /&gt;
    &amp;quot;timestamp&amp;quot;: 1610469941,&lt;br /&gt;
    &amp;quot;blockhash&amp;quot;: &amp;quot;c469d4373da8a53f7ea73657e9498c1a4c967cb1f5a95cec7586263b564d7f1bdf21a0b595ab95102450282179e7622e18739ceecadac078e3a92ecf5969466e6731753312efe5f0b83833d3bbcff70d5d89576f88d750216944b4e8f8cffbb8c623fb6e677092c05347f4e22f1bfcd49f74e757dd32c5cfd50cefd2530ee9fb&amp;quot;,&lt;br /&gt;
    &amp;quot;confirmations&amp;quot;: 832340,&lt;br /&gt;
    &amp;quot;genesis&amp;quot;: &amp;quot;a1bc1623d785130bd7bd725d523bd2bb755518646c3831ea7cd5f86883845901&amp;quot;,&lt;br /&gt;
    &amp;quot;nexthash&amp;quot;: &amp;quot;b30d3f2c9857513a7de27cdb077568cb80af17a411c465742c1faa30ffa6491e&amp;quot;,&lt;br /&gt;
    &amp;quot;prevhash&amp;quot;: &amp;quot;0128928b2727142fbdb7b43021e26395f66d34e56806fec3ae47533d887dcbf8307109656e4321747204b25d27d6a1d86331b855939655525bf964e3b191a8bd&amp;quot;,&lt;br /&gt;
    &amp;quot;recovery&amp;quot;: &amp;quot;0a3bc3cc04ceac76f93ed0aa37ee84af7110eb49339a9319467962dad582607a&amp;quot;,&lt;br /&gt;
    &amp;quot;pubkey&amp;quot;: &amp;quot;0299cdb659f1b3a00e3cf704f628701e803ee5743246079cf937712cc6e44275653cdae80e9a680904f030fa0691c581fec506409b22be1c39416df9d438d0476d&amp;quot;,&lt;br /&gt;
    &amp;quot;signature&amp;quot;: &amp;quot;30818402401e38f9b4eb0c8f1e98294890fe6cdb3ceeb0a73171d02767d03d1c62fed806466daca8f4f4e6e8c44f83b62b5ec647804edf1f00113bcb0c478686de0ebd69140240372cc4fc0dfc7d4bbf0f50df4ac934347591911be46bd85154aff5224af68e67738890187a997e8cdc04d5b41af5483e310ddb1d9c05b7c645bd750e4e325196&amp;quot;,&lt;br /&gt;
    &amp;quot;contracts&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;id&amp;quot;: 0,&lt;br /&gt;
            &amp;quot;OP&amp;quot;: &amp;quot;CREDIT&amp;quot;,&lt;br /&gt;
            &amp;quot;for&amp;quot;: &amp;quot;COINBASE&amp;quot;,&lt;br /&gt;
            &amp;quot;txid&amp;quot;: &amp;quot;01d7b744868473cab52285c45940bc8fd1ca6dc59ed42c535fb9e196d80c574b230745ce395d146ad261ef5736100d027a5595504c886deb975f7dca8ab97e81&amp;quot;,&lt;br /&gt;
            &amp;quot;contract&amp;quot;: 2,&lt;br /&gt;
            &amp;quot;to&amp;quot;: &amp;quot;8BAv1H2YKfpaYC1RJMq9qjmMTiEV8DJiLpiKGqTY54wf2VPjznD&amp;quot;,&lt;br /&gt;
            &amp;quot;amount&amp;quot;: 234.732164,&lt;br /&gt;
            &amp;quot;token&amp;quot;: &amp;quot;0&amp;quot;,&lt;br /&gt;
            &amp;quot;ticker&amp;quot;: &amp;quot;NXS&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
 },&lt;br /&gt;
&lt;br /&gt;
These nested JSON objects and arrays can be filtered recursively using the . operator. Please ensure endpoint does not include spaces following a strict *csv format.&lt;br /&gt;
&lt;br /&gt;
 commands/verb/noun/type,confirmations,genesis,contracts.OP,contracts.to,contracts.amount,contracts.ticker&lt;br /&gt;
&lt;br /&gt;
When using recursive filtering, the nested hierarchy is retained.&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;tritium user&amp;quot;,&lt;br /&gt;
    &amp;quot;confirmations&amp;quot;: 832340,&lt;br /&gt;
    &amp;quot;genesis&amp;quot;: &amp;quot;a1bc1623d785130bd7bd725d523bd2bb755518646c3831ea7cd5f86883845901&amp;quot;,&lt;br /&gt;
    &amp;quot;contracts&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;OP&amp;quot;: &amp;quot;CREDIT&amp;quot;,&lt;br /&gt;
            &amp;quot;to&amp;quot;: &amp;quot;8BAv1H2YKfpaYC1RJMq9qjmMTiEV8DJiLpiKGqTY54wf2VPjznD&amp;quot;,&lt;br /&gt;
            &amp;quot;amount&amp;quot;: 234.732164,&lt;br /&gt;
            &amp;quot;ticker&amp;quot;: &amp;quot;NXS&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
 },&lt;/div&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
</feed>