Commands

sign

The sign command allows signing all NFTs with a creator's keypair, to verify that creator in the creators array in the NFT metadata. Each creator can only sign for themself and only one creator can sign at a time with this command. The creator's keypair can be passed in with the --keypair option, otherwise it defaults to using default keypair specified in your Solana CLI config.

Running the command with the default keypair:

sugar sign

And running with a specific keypair:

sugar sign -k creator-keypair.json

Developers can provide a custom RPC URL with the command:

sugar sign -r <RPC_URL>

Note using sugar sign relies on an inefficient getProgramAccounts call on the Metaplex Token Metadata program (i.e., metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s). The recommended solution is to sign NFTs individually using the command:

sugar sign -m <MINT_ADDRESS>
Previous
show