<token> element

token element defines a Token

A token element defines a Token. It can be used as a root element of a TokenScript File: It starts the TokenScript and ends it.

The token element needs to declare which version of TokenScript and XML and which blockchain is used.

Code Examples

<ts:token xmlns:ts="http://tokenscript.org/2020/06/tokenscript"
          xmlns:ethereum="urn:ethereum:constantinople"
          xmlns:xhtml="http://www.w3.org/1999/xhtml"
          xmlns:xml="http://www.w3.org/XML/1998/namespace"
          xsi:schemaLocation="http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          custodian="false"
>
    ...
    ...
</ts:token>