0.0.17 • Published 2 years ago
@cmirrorxyz/mirror-nft-sdk v0.0.17
Overview
The Mirror NFT SDK is a TypeScript Interface for the Mirror NFT Protocol.
The Mirror NFT Protocol uses a pattern where calls are executed against the NFT contract during deployment to define settings, register different types of sales, grant roles, and set metadata rendering. With this SDK, we can define a simple object type ERC721TokenConfig
and get transaction inputs (to
, value
, and data
), with all the appropriate calls encoded.
Additionally, the SDK supports a multicall
pattern, where we can deploy and collect a token in the same transaction.
Features
- Token Creation
- Generate transaction data for simple
create
transaction. - Generate signature input data for
createWithSignature
. - Generate transaction data for
createWithSignature
.
- Generate transaction data for simple
- Collecting
- Generate transaction data for fixed-sale purchases.
- Generate transaction data for signature-mint purchases using a
privateKey
parameter.
- Multicall
- Combine
createWithSignature
and any type of purchase.
- Combine