API Reference

Enums & Types

Enums & Types

This page documents all TypeScript enums and key interfaces used in the Palindrome Escrow SDK.


EscrowState

Represents the current lifecycle state of an escrow. Used in EscrowData.state and state-checking methods.

ValueNameLabelDescription
0AWAITING_PAYMENTAwaiting PaymentBuyer must deposit funds.
1AWAITING_DELIVERYAwaiting DeliverySeller must deliver product/service.
2DISPUTEDDisputedDispute active — arbiter to resolve.
3COMPLETECompleteTransaction successfully finalized.
4REFUNDEDRefundedFunds returned to buyer.
5CANCELEDCanceledEscrow canceled by mutual agreement or timeout.
6WITHDRAWNWithdrawnFunds withdrawn by buyer/seller after resolution.

Role

Defines participant roles in the escrow. Used in submitDisputeMessage.

ValueNameDescription
0NoneNo role
1BuyerEscrow buyer
2SellerEscrow seller
3ArbiterDispute arbitrator

DisputeResolution

Arbiter decision outcomes. Used in submitArbiterDecision.

ValueNameDescription
3CompleteRelease funds to seller
4RefundedReturn funds to buyer
Previous
clearAllEscrowCache