Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NftRevoke

Revoke an approved account for a specific token.

Requirements

  • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
  • If contract requires >1yN deposit on nft_approve, contract MUST refund associated storage deposit when owner revokes approval
  • Contract MUST panic if called by someone other than token owner

Arguments:

  • token_id: the token for which to revoke an approval
  • account_id: the account to remove from approvals
contractmethod

change

Hierarchy

  • NftRevoke

Index

Properties

Properties

args: { account_id: string; token_id: string }

Type declaration

  • account_id: string
  • token_id: string
options: { attachedDeposit?: string; gas?: string }

Type declaration

  • Optional attachedDeposit?: string

    Units in yoctoNear

    default

    "0"

  • Optional gas?: string

    Units in gas

    pattern

    [0-9]+

    default

    "30000000000000"

Generated using TypeDoc