Contract

The contract elements declares address, network and name of the token's smart contract.

The element usually appears early in the file, close to the token tag. It needs to specify name and interface of the contract and add an address element.

Code Example

<ts:contract name="DAI" interface="erc20">
        <ts:address Network="1">0x6b175474e89094c44da98b954eedeac495271d0f</ts:address>
</ts:contract>

Related information

TokenScript File

We make tokens smart

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