Constructor
# new ERC721Standard(options)
ERC721Standard Object
Parameters:
Name | Type | Description |
---|---|---|
options |
ERC721Standard~Options
|
Members
Methods
# __assert() → {Promise.<void>}
Contract is not deployed, first deploy it and provide a contract address
Error
Promise.<void>
# exists(params) → {Promise.<boolean>}
Verify if token ID exists
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
|
tokenID |
number
|
Token Id
Promise.<boolean>
# getURITokenID(params) → {Promise.<string>}
Verify what is the getURITokenID
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
|
tokenID |
number
|
URI
Promise.<string>
# mint(params) → {Promise.<TransactionObject>}
Mint created TokenID
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
|
tokenID |
number
|
Promise.<TransactionObject>
# setBaseTokenURI(params) → {Promise.<*>}
Set Base Token URI
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
|
URI |
string
|
Promise.<*>
# setTokenURI(params) → {Promise.<*>}
Set Token URI
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
|
tokenID |
string
|
|
URI |
string
|
Promise.<*>
Type Definitions
Object
# Options
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
test |
Boolean
|
|||
localtest |
Boolean
|
ganache local blockchain |
||
web3Connection |
Web3Connection
|
<optional> |
Web3Connection | created from params: 'test', 'localtest' and optional 'web3Connection' string and 'privateKey' |
contractAddress |
string
|
<optional> |