Wallet Transactions
How to transfer tokenized fiat to other accounts using publicmint-web3.js
Creating a wallet
import PublicMint from '@publicmint/publicmint-web3';
const web3 = new PublicMint();
// Instantiate wallet
const {
wallet
} = web3.pm
// Add your first account
// 0x4389Af2E0515dDFe3453B1bD748aDfD5e2598cFd
const walletAccountPrivateKey1 = "0xba6cdfcc795484a9774eb98e756983da822ef3481b37d4ba649864e2d1ab4e5e";
wallet.add(walletAccountPrivateKey1);
const getAccountsRes = pm.wallet.accounts.getAccounts;
// [
// '0x4389Af2E0515dDFe3453B1bD748aDfD5e2598cFd'
// ]Checking your balance
Sending Funds
More transactions
Last updated