@orangecheck/pledge-core / createOutcome
Function: createOutcome()
function createOutcome(input: CreateOutcomeInput): Promise<OutcomeEnvelope>;
Defined in: pledge-core/src/outcome.ts:51
Build, validate, and (when required) sign an outcome envelope.
For deterministic mechanisms (chain_state, nostr_event_exists, stamp_published, http_get_hash, dns_record, vote_resolves), pass no signer — the SDK leaves sig === null per §4.3.
For counterparty_signs, pass the counterparty's signer (whose address
equals input.resolved_by). The signature commits to the lowercase hex of
the outcome id.
Parameters
| Parameter | Type |
|---|---|
input | CreateOutcomeInput |
Returns
Promise<OutcomeEnvelope>