BRC20 allows the implementation of a standard API to ensure the interoperability between tokens. It offers basic functionalities to transfer tokens, obtain account balances, get the total supply of tokens, and allow token approvals.
To define an BRC20 token you need:
- The address of the contract
- The number of tokens available
However, there are other optional values for additional information such as:
- Name, for example “Augur Token”
- Symbol, such as “REP”
- Decimals, or how much you can divide the token. You can chose from 0 to 18 decimal values
BRC20 defines two types of events,
Transfer(), triggered when tokens are transferred
Approve(), used for every successful call of the
This token may also include functions such as
transferFrom() to offer advanced functionalities and authorize some other
Bitdollar address to utilise your tokens on your behalf. This other Bitdollar address could be a
smart contract designed to handle tokens or just another account.