Show / Hide Table of Contents

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.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
RevokeNftAllowanceParams
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

CancellationToken

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?
| Edit this page View Source

Owner

The ID of the owner of the NFTs

Declaration
public EntityId Owner { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

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>
| Edit this page View Source

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).

| Edit this page View Source

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.

| Edit this page View Source

Token

The Token ID of the NFT class to remove allowances.

Declaration
public EntityId Token { get; set; }
Property Value
Type Description
EntityId
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph