Skip to main content

Function: getId()

function getId(input): Promise<Bytes32>;

Defined in: packages/overcast-core/src/serialization.ts:207

Content-addressed id for one of the local Overcast types, matching the on-chain HashId derivation. Discriminates the input by shape: an option references both of the offers it consumed, an offer does not.

Parameters​

ParameterType
input| MarketOption | Offer

Returns​

Promise<Bytes32>