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
| Parameter | Type | Description |
|---|---|---|
| { 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.