UnlinkAuth

The unlinkAuth method is used to remove the linking of a specific smart contract action to an account permission. It returns an Action instance that can then be signed and executed on-chain using the SessionKit Transact method.

Usage

The unlinkAuth method is available on any Account instance. Here is an example of how to use it:

const action = testAccount.unlinkAuth("eosio", "claimrewards")

In the example above, we created an action that removes the link between the eosio claimrewards action and any account permission.

Arguments

  • contract: The smart contract account that the action is deployed to.
  • actionName: The name of the action.

Return Value

The unlinkAuth method returns an Action instance detailing the removal of the permission link. The action can then be passed to the SessionKit Transact method for execution.