Class RevokeNftAllowanceParams
Removes approved spending allowance(s) for specific NFTs, or revokes a spender's approval to spend all of the owner's NFTs of a token class.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class RevokeNftAllowanceParams : TransactionParams<TransactionReceipt>
Remarks
Set exactly one of SerialNumbers or Spender. The two remove different grants: serial numbers remove the allowances on those NFTs, whoever holds them, while a spender loses only its blanket approve-for-all, keeping any allowance it holds on specific serials.
Properties
| Edit this page View SourceCancellationToken
Optional cancellation token. Cancelling stops the client waiting; it cannot recall a transaction already sent. Cancelled after the send, the outcome is unknown: settle it by its transaction id on a mirror node rather than resubmitting it.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
Owner
The ID of the owner of the NFTs
Declaration
public EntityId Owner { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
SerialNumbers
The Serial Numbers of the NFTs to revoke allowances from. Leave
null
when revoking a Spender's approval for all of the token's NFTs.
Declaration
public IReadOnlyList<long>? SerialNumbers { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<long> |
Signatory
Additional private key, keys or signing callback method required to authorize the transaction.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |
Remarks
Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction. The Owner account's key must sign, either here or through the context (for example when the owner is also the payer).
Spender
The spender whose approval to spend all of the owner's NFTs of this
token class is revoked. Leave
null
when removing the allowances on specific SerialNumbers.
Declaration
public EntityId? Spender { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Remarks
The network has no delete operation for this grant, so the SDK sends a crypto approve allowance transaction that sets the spender's approve-for-all to false. Allowances the spender holds on specific serial numbers are not affected.
Token
The Token ID of the NFT class to remove allowances.
Declaration
public EntityId Token { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |