<attribute> element

<attribute> element defines an attribute for a token or a card

Attributes requires the attribute @name. It can have any given name and will be used to call the attribute.

An attribute from a smart contract function call

    <ts:attribute name="balance">
            <ethereum:call function="balanceOf" as="uint">
                <ts:data><ts:address ref="ownerAddress"/></ts:data>

Related information


We make tokens smart

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