Transacting
Using the Public Mint blockchain
Transactions in the Public Mint blockchain are quite similar to Ethereum, with one key difference: for now the USD token is the same as native blockchain token.
Read on to learn your way around the basics.
What you'll need
Just like Ethereum, transactions in the Public Mint blockchain can either read or write to the blockchain. While read-type transactions are free, writing (i.e. changing the state) entails fees. Ethereum fees are paid in ETH. In contrast, all fees on Public Mint are paid in fiat.
Creating a wallet
If you haven't created a Public Mint Web Wallet and don't have your own, then the first thing you need is a wallet. Start by connecting to a node - check the previous section to get the code.
After that, it's simple:
And that's it - keep them safe and don't show anyone. Please DO NOT send funds into the addresses above as they are published on the internet, taken from the web3.js documentation.
Looking up your balance
Let's use PublicMint-web3.js to get the balance of a Public Mint address.
Sending Funds
Here is what you need to do to send funds to another Public Mint address.
Follow the steps above to get a wallet and check your balance. Here's the code snippet to transfer tokens:
More transactions
For a comprehensive list of transactions with examples, please check the web3.js documentation's list of methods.
Last updated