ContractDeployer.deployToken() method
Deploys a new Token contract
Example
const contractAddress = await sdk.deployer.deployToken({
name: "My Token",
primary_sale_recipient: "your-address",
});
Signature:
deployToken(metadata: TokenContractDeployMetadata): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
metadata | TokenContractDeployMetadata | the contract metadata |
Returns:
Promise<string>
the address of the deployed contract
Remarks
Deploys a Token contract and returns the address of the deployed contract