Address

The address element declares an Address, usually that of a smart contract on Ethereum.

The address tag should define the network if this has not been done elsewhere. 1 is Ethereum mainnet, 3 is Ropsten testnet. Put the address inside the address tags.

Code Examples

Declare the Address of the token's smart contract

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

Declare a fixed address to trigger a smart contract

<ts:transaction>
    <ethereum:transaction function="transfer" contract="DAI">
            <ts:data>
                  <ts:address>0x4aa42145Aa6Ebf72e164C9bBC74fbD3788045016</ts:address>
                   <ts:uint256 ref="amount"/>
             </ts:data>
    </ethereum:transaction>
</ts:transaction>

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.