Skip to content

removeTokenProperty(______)

MarcoDotIO edited this page Jun 26, 2023 · 2 revisions

removeTokenProperty(_:_:_:)

Removes a property from a token from the given creator's account.

public func removeTokenProperty(
        _ creator: Account,
        _ token: AccountAddress,
        _ name: String
    )

The function constructs a transaction payload with the EntryFunction named "remove_property", a TypeTag for the type of the token, and TransactionArguments for the token from which the property will be removed and the name of the property.

The constructed payload is then signed and submitted for execution on the client. The function operates asynchronously and returns the result of the transaction submission.

Note: This function is marked with the async keyword, which means it returns a future that represents a result that is produced at some point in the future. When you call a function that’s marked with the async keyword, you need to use the await keyword.

Parameters

  • creator: The account which owns the token and will remove the property from it.
  • token: The address of the token from which the property will be removed.
  • name: The name of the property that will be removed from the token.

Throws

This function throws an error if creating the EntryFunction, signing the transaction, or submitting the transaction fails.

Returns

A String that represents the response from the transaction submission to remove a property from a token.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally