<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged decode</title>
<link>https://www.multichain.com/qa/tag/decode</link>
<description>Powered by Question2Answer</description>
<item>
<title>How are delimiters determined for custom fields on issue transactions?</title>
<link>https://www.multichain.com/qa/10630/delimiters-determined-for-custom-fields-issue-transactions</link>
<description>The issue commands (issue, issuemore etc) accept custom fields.&lt;br /&gt;
&lt;br /&gt;
I am getting the raw transaction hex for an issuance transaction and decoding it.&lt;br /&gt;
&lt;br /&gt;
When decoding the custom field data, the documentation (&lt;a href=&quot;https://www.multichain.com/developers/native-assets/&quot; rel=&quot;nofollow&quot;&gt;https://www.multichain.com/developers/native-assets/&lt;/a&gt;) says that the name of a user-defined custom field is null-delimited (i.e. 0x00 0x00). In testing I have encountered at least 4 delimiters that are not null:&lt;br /&gt;
&lt;br /&gt;
0x00 0x0b, 0x00 0x07, 0x00 0x04, 0x00 0x02&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
74797065000776656869636c65&lt;br /&gt;
&lt;br /&gt;
74797065 - custom field name (in this case, 'type')&lt;br /&gt;
&lt;br /&gt;
0007 - delimiter&lt;br /&gt;
&lt;br /&gt;
76656869636c65 - custom field value (in this case, 'vehicle')&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
What are the rules for determining which delimiter is used? Is there a range of hex values that I can treat as delimiters?&lt;br /&gt;
&lt;br /&gt;
Note: I am intentionally not using the 'decoderawtransaction' command.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10630/delimiters-determined-for-custom-fields-issue-transactions</guid>
<pubDate>Fri, 10 Aug 2018 08:13:35 +0000</pubDate>
</item>
<item>
<title>How to get back data which is present in hexstring back to JSON, the way it was appended using appendrawmetadata</title>
<link>https://www.multichain.com/qa/1988/which-present-hexstring-appended-using-appendrawmetadata</link>
<description>There is a `data` key in the transaction object and its value is a hexstring - 53504b6300010668656c6c6f006f726967696e000468657265. How do you get back the data that I appended in JSON format?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/1988/which-present-hexstring-appended-using-appendrawmetadata</guid>
<pubDate>Mon, 13 Jun 2016 08:48:46 +0000</pubDate>
</item>
</channel>
</rss>