Skip to main content

sdk.factory.createstar

Home > @openformat/sdk > Factory > createStar

Factory.createStar() method

Creates a new contract with the given name.

create

Signature:

createStar({ name, constellation, owner, }: {
name: string;
constellation: string;
owner: string;
}): Promise<{
starAddress: string;
}>;

Parameters

ParameterTypeDescription
{ name, constellation, owner, }{ name: string; constellation: string; owner: string; }

Returns:

Promise<{ starAddress: string; }>

{Promise<ContractReceipt>} A Promise that resolves to the transaction receipt of the contract creation.