SDK Reference
NFT Client
Used to mint a new SPG collection for use with Story.
NFTClient
Methods
- create_nft_collection
- get_mint_fee_token
- get_mint_fee
create_nft_collection
Creates a new SPG NFT Collection.
Method |
---|
create_nft_collection |
Parameters:
name
: The name of the collection.symbol
: The symbol of the collection.is_public_minting
: If true, anyone can mint from the collection. If false, only the addresses with the minter role can mint.mint_open
: Whether the collection is open for minting on creation.mint_fee_recipient
: The address to receive mint fees.contract_uri
: The contract URI for the collection. Follows ERC-7572 standard. See here.base_uri
: [Optional] The base URI for the collection. If baseURI is not empty, tokenURI will be either baseURI + token ID (if nftMetadataURI is empty) or baseURI + nftMetadataURI.max_supply
: [Optional] The maximum supply of the collection.mint_fee
: [Optional] The cost to mint a token.mint_fee_token
: [Optional] The token to mint.owner
: [Optional] The owner of the collection.tx_options
: [Optional] Transaction options dictionary.
get_mint_fee_token
Returns the current mint fee token of the collection.
Method |
---|
get_mint_fee_token |
Parameters:
nft_contract
: The address of the NFT contract.
get_mint_fee
Returns the current mint fee of the collection.
Method |
---|
get_mint_fee |
Parameters:
nft_contract
: The address of the NFT contract.