The bytes32 Element is used to define data used in interactions with Ethereum blockchain.

Other than most elements the bytes32 element doesn't need a starting and a closing element to embedd information, but can stand alone, like <ts:bytes32 local-ref="nodeHash" />.

Code Examples

Setting an Attribute with an Ethereum call:

<ts:attribute name="emailRecord">
          <ethereum:call as="utf8" contract="PublicResolver" function="text">
                     <ts:bytes32 local-ref="nodeHash"/>

Creating an Ethereum transaction:

        <ethereum:transaction function="setText" contract="PublicResolver" as="bool">
            <ts:bytes32 local-ref="nodeHash"/>
            <ts:string ref="newRecordValue"/>

Related information


We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.