Common

Below you can find out which methods mean what

General

getName: Name of the relevant asset

getSymbol: Symbol of the relevant asset

getBalance: Asset balance at the wallet address sent as a parameter

getDecimals: The decimal value of the respective asset applies to this Coin and Token. For NFT it is always 0 and does not have to be in every contract.

transfer: Initiates a transfer transaction that can be signed by the owner of the relevant asset

Contracts

The methods here do not have to be in every contract. Only standard asset contracts on blockchain networks have them.

approve: Executes a transaction that allows the asset to be managed and spent by another wallet

transferFrom: Executes the transaction by which the asset can be transferred to any other wallet by the wallet address authorized by "approve"

NFT

getApproved: Checks whether the relevant NFT is authorized to spend to any other wallet

getTokenURI: Returns the URL address where the metadata of the relevant NFT is located

getOwner: Returns the wallet address of the owner of the relevant NFT

Token

getAllowance: It is basically the same as getApproved in NFT. However, since tokens are not just one, the total amount authorized to spend is returned.

getTotalSupply: Returns the total supply of the respective token

Last updated