ONT Contract API
Index
Methods
BalanceOf
BalanceOfFetch the balance of a specific address.
BalanceOfV2
BalanceOfV2Fetch the balance of a specific address.
ONT has 9 decimals.
Transfer
TransferInitiate a transaction.
Emit a corresponding contract event. For example:
TransferV2
TransferV2 Initiate a transaction.
ONT has 9 decimals.
If the transfer amount is divisible by 10^9, the event emitted will be the same as the one by Transfer.
Otherwise, the amount consists of two integers. The first one represents amount/10^9, and the second one represents amount%10^9. For example, if the transaction amount is 123.4567 ONT, the event looks like:
MultiTransfer
MultiTransferInitiate a batch transfer from one address to multiple addresses.
MultiTransferV2
MultiTransferV2Initiate a batch transfer from one address to multiple addresses.
ONT has 9 decimals.
Approve
ApproveApprove tokens to be withdrawn as allowance.
ApproveV2
ApproveV2Approve tokens to be withdrawn as allowance.
ONT has 9 decimals.
Allowance
AllowanceReturn the allowance from the from account to the to account.
AllowanceV2
AllowanceV2Return the allowance from the from account to the to account.
ONT has 9 decimals.
TransferFrom
TransferFromAllow tokens to be transferred from allowance.
TransferFromV2
TransferFromV2Allow tokens to be transferred from allowance.
ONT has 9 decimals.
Last updated