Skip to main content

Class: CloseSettlementOfferOperation

Defined in: packages/overcast-core/src/operation.ts:187

A taker delegating close_settlement_offer for the given offerId.

Extends

  • CloseOfferOperation

Constructors

Constructor

new CloseSettlementOfferOperation(offerId, params?): CloseSettlementOfferOperation;

Defined in: packages/overcast-core/src/operation.ts:168

Parameters

ParameterTypeDescription
offerIdstringThe content-addressed id of the offer being closed.
params?OperationParams-

Returns

CloseSettlementOfferOperation

Inherited from

CloseOfferOperation.constructor

Properties

actionByte

readonly actionByte: number = ACTIONS.CloseSettlementOffer;

Defined in: packages/overcast-core/src/operation.ts:188

The action's distinct discriminant byte (see ACTIONS).

Overrides

CloseOfferOperation.actionByte

offerId

readonly offerId: string;

Defined in: packages/overcast-core/src/operation.ts:170

The content-addressed id of the offer being closed.

Inherited from

CloseOfferOperation.offerId

params

readonly params: OperationParams;

Defined in: packages/overcast-core/src/operation.ts:86

Inherited from

CloseOfferOperation.params

Methods

digest()

digest(): string;

Defined in: packages/overcast-core/src/operation.ts:105

Build the canonical 32-byte message the signer commits to, returned as a base58 Id (the same encoding getId uses for content ids).

Preimage layout (SHA-256 hashed), mirroring Operation::digest: "overcast_intent" (15B) | version=1 (1B) | action (1B) | expiry LE (8B, i64) | nonce (32B) | payload_bytes (variable)

Returns

string

Inherited from

CloseOfferOperation.digest

payloadBytes()

payloadBytes(): Uint8Array;

Defined in: packages/overcast-core/src/operation.ts:176

Serializes the action payload into its explicit ToBytes byte layout.

Returns

Uint8Array

Inherited from

CloseOfferOperation.payloadBytes