sdk.factory.createconstellation
Home > @openformat/sdk > Factory > createConstellation
Factory.createConstellation() method
Creates a new contract with the given name.
create
Signature:
createConstellation({ name, symbol, decimals, supply, }: {
name: string;
symbol: string;
decimals: number;
supply: BigNumberish;
}): Promise<{
constellationAddress: string;
}>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| { name, symbol, decimals, supply, } | { name: string; symbol: string; decimals: number; supply: BigNumberish; } |
Returns:
Promise<{ constellationAddress: string; }>
{Promise<ContractReceipt>} A Promise that resolves to the transaction receipt of the contract creation.