Publish
New site!
All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.
Usage: client.platform.contracts.publish(contract, identity)
Description: This method will sign and broadcast any valid contract.
Parameters:
parameters | type | required | Description |
---|---|---|---|
contract | Contract | yes | A valid created contract |
identity | Identity | yes | A valid registered application identity |
Example:
const identityId = '';// Your identity identifier.
const identity = await client.platform.identities.get(identityId);
// See the contract.create documentation for more on how to create a dataContract
const contract = await client.platform.contracts.create(contractDefinitions, identity);
await client.platform.contracts.publish(contract, identity);
Returns : DataContractCreateTransition.
Updated 12 months ago