Last active
March 2, 2022 09:38
-
-
Save evanVtatum/6811ffc0c53cd3a697b369e68d384b58 to your computer and use it in GitHub Desktop.
Deploy ERC-20 Celo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {prepareDeployErc20SignedTransaction} from '@tatumio/tatum' | |
/** | |
* Sign Ethereum deploy ERC20 transaction with private keys locally. Nothing is broadcast to the blockchain. | |
* @param body content of the transaction to broadcast | |
* @param provider url of the Ethereum Server to connect to. If not set, default public server will be used. | |
* @returns transaction data to be broadcast to blockchain. | |
*/ | |
const body = { | |
chain: "CELO", | |
symbol: "ERC_SYMBOL", | |
name: "MyERC20", | |
totalCap: "10000000", | |
supply: "10000000", | |
digits: 18, | |
address: "0xa0Ca9FF38Bad06eBe64f0fDfF279cAE35129F5C6", | |
fromPrivateKey: "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2", | |
feeCurrency: "CELO" | |
} | |
const prepareDeploy = await prepareDeployErc20SignedTransaction(body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment