Skip to main content

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

ParameterTypeDescription
metadataTokenContractDeployMetadatathe contract metadata

Returns:

Promise<string>

the address of the deployed contract

Remarks

Deploys a Token contract and returns the address of the deployed contract