Class

ERC721Standard

ERC721Standard(options)

Constructor

# new ERC721Standard(options)

ERC721Standard Object

Parameters:
Name Type Description
options ERC721Standard~Options

View Source models/ERC721/ERC721Standard.js, line 13

Methods

# __assert() → {Promise.<void>}

View Source models/ERC721/ERC721Standard.js, line 28

Contract is not deployed, first deploy it and provide a contract address

Error
Promise.<void>

# async baseURI() → {Promise.<string>}

Verify what is the baseURI

View Source models/ERC721/ERC721Standard.js, line 78

URI

Promise.<string>

# async exists(params) → {Promise.<boolean>}

Verify if token ID exists

Parameters:
Name Type Description
params Object
tokenID number

View Source models/ERC721/ERC721Standard.js, line 54

Token Id

Promise.<boolean>

# getERC20Contract()

View Source models/ERC721/ERC721Standard.js, line 147

ERC20Contract|undefined

# async getURITokenID(params) → {Promise.<string>}

Verify what is the getURITokenID

Parameters:
Name Type Description
params Object
tokenID number

View Source models/ERC721/ERC721Standard.js, line 67

URI

Promise.<string>

# async mint(params) → {Promise.<TransactionObject>}

Mint created TokenID

Parameters:
Name Type Description
params Object
tokenID number

View Source models/ERC721/ERC721Standard.js, line 111

Promise.<TransactionObject>

# setBaseTokenURI(params) → {Promise.<*>}

Set Base Token URI

Parameters:
Name Type Description
params Object
URI string

View Source models/ERC721/ERC721Standard.js, line 89

Promise.<*>

# setTokenURI(params) → {Promise.<*>}

Set Token URI

Parameters:
Name Type Description
params Object
tokenID string
URI string

View Source models/ERC721/ERC721Standard.js, line 101

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>

View Source models/ERC721/ERC721Standard.js, line 5