Snip721Tx..::..SetRoyaltyInfo Method
If a token_id is supplied, SetRoyaltyInfo will update the specified token's RoyaltyInfo to the input. If no RoyaltyInfo is provided,
it will delete the RoyaltyInfo and replace it with the contract's default RoyaltyInfo (if there is one).
If no token_id is provided, SetRoyaltyInfo will update the contract's default RoyaltyInfo to the input, or delete it if no RoyaltyInfo is provided.
Only an authorized minter may update the contract's default RoyaltyInfo.
Only a token's creator may update its RoyaltyInfo, and only if they are also the current owner.
This implementation will throw an error if trying to set the royalty of a SNIP-722 non-transferable token, because they can never be transferred as part of a sale.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SingleSecretTx<SetRoyaltyInfoResponse>> SetRoyaltyInfo( MsgSetRoyaltyInfo msg, Nullable<TxOptions> txOptions )
Public Function SetRoyaltyInfo ( _ msg As MsgSetRoyaltyInfo, _ txOptions As Nullable(Of TxOptions) _ ) As Task(Of SingleSecretTx(Of SetRoyaltyInfoResponse))
public: Task<SingleSecretTx<SetRoyaltyInfoResponse^>^>^ SetRoyaltyInfo( MsgSetRoyaltyInfo^ msg, Nullable<TxOptions^> txOptions )
Parameters
- msg
- Type: SecretNET.NFT..::..MsgSetRoyaltyInfo
The MSG.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.