Class RevokeNftAllowanceExtensions
Extension methods for revoking NFT allowances.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class RevokeNftAllowanceExtensions
Methods
| Edit this page View SourceRevokeNftAllowancesAsync(ConsensusClient, RevokeNftAllowanceParams, Action<IConsensusContext>?)
Removes approved spending allowance(s) for specific NFTs.
Declaration
public static Task<TransactionReceipt> RevokeNftAllowancesAsync(this ConsensusClient client, RevokeNftAllowanceParams revokeParams, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client orchestrating the revocation. |
| RevokeNftAllowanceParams | revokeParams | The parameters containing the token id, owner and serial numbers |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<TransactionReceipt> | A TransactionId record indicating success, or an exception is thrown. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission. |
| ConsensusException | If the network was unable to come to consensus before the duration of the transaction expired. |
| TransactionException | If the network rejected the revoke request as invalid or had missing data. |