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>

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

Verify what is the baseURI

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

URI

Promise.<string>

# 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 148

ERC20Contract|undefined

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

Verify what is the getURITokenID

Parameters:
Name Type Description
params Object
tokenID number

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

URI

Promise.<string>

# 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 87

Promise.<*>

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

Set Token URI

Parameters:
Name Type Description
params Object
tokenID string
URI string

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

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