Skip to content

Instantly share code, notes, and snippets.

@evanVtatum
Last active March 2, 2022 09:37
Show Gist options
  • Save evanVtatum/920c2c98aa882afa46c6f4998a35a05b to your computer and use it in GitHub Desktop.
Save evanVtatum/920c2c98aa882afa46c6f4998a35a05b to your computer and use it in GitHub Desktop.
Deploy ERC-1155 Celo
import {Currency, deployMultiToken} from '@tatumio/tatum';
/**
* Deploy MultiTokens (1155) contract.
* @param testnet - testnet or mainnet
* @param body - body of the request - https://docs.tatum.io/rest/smart-contracts#/deploy-multi-token-smart-contract
* @param provider - (optional) provider to broadcast tx
*/
const body = {
fromPrivateKey: '0x4874827a55d87f2309c55b835af509e3427aa4d52321eeb49a2b93b5c0f8edfb',
chain: Currency.CELO,
uri: "https://example.com/{id}",
feeCurrency: Currency.CELO
}
const txId = deployMultiToken(false, body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment