invokeContract
function for other calls. All standard ERC-20 functions are supported. Below is an example of how to call a deployed ERC20 contract.
Tokens can be created and interacted with by doing the following:
mint
and mintBatch
. mint
requires a single to
address and mintBatch
requires an array of to
addresses and an array of values
of the same length.
Name | Type | Description |
---|---|---|
name | string | The name of the token |
symbol | string | The symbol of the token |
baseURI | string | The base URI for the token metadata |
Name | Type | Description |
---|---|---|
to | address | The address to mint the token to |
Name | Type | Description |
---|---|---|
to | address | The address to mint the token to |
data | bytes | The data to pass to the minted token |
Name | Type | Description |
---|---|---|
to | address | The address to mint tokens to |
quantity | uint8 | The number of tokens to mint |
Name | Type | Description |
---|---|---|
to | address | The address to mint tokens to |
quantity | uint8 | The number of tokens to mint |
data | bytes | The data to pass to the minted tokens |
Name | Type | Description |
---|---|---|
uri | string | The URI for all the token metadata, should be of the format “https://token-cdn-domain/{id}.json” |
Name | Type | Description |
---|---|---|
to | address | The address to receive the minted tokens |
id | uint256 | The ID of the token to mint |
value | uint256 | The amount of tokens to mint |
Name | Type | Description |
---|---|---|
to | address | The address to receive the minted tokens |
id | uint256 | The ID of the token to mint |
value | uint256 | The amount of tokens to mint |
data | bytes | Additional data with no specified format, to be passed to the receiver contract |
Name | Type | Description |
---|---|---|
to | address | The address to receive the minted tokens |
ids | uint256[] | The IDs of the tokens to mint |
values | uint256[] | The amounts of tokens to mint, must be the same length as ids |
Name | Type | Description |
---|---|---|
to | address | The address to receive the minted tokens |
ids | uint256[] | The IDs of the tokens to mint |
values | uint256[] | The amounts of tokens to mint, must be the same length as ids |
data | bytes | Additional data with no specified format, to be passed to the receiver contract |