Skip to main content

Interface: IEscrowDataWithTokenInfo

Detailed information about the escrow

Example

// A returned object might look e.g. like this:
{
challengePeriod: 1209600,
challengePeriodStart: "2023-01-24T11:54:33.000Z",
challengePeriodEnd: "2023-02-07T11:54:33.000Z",
status: {
state: "Paid",
latestChallengeBy: null,
latestSettlementOfferBy: null,
claimed: false
},
escrowId: 434,
amount: "2500000000",
marketplace: "0xf8C03F09b4f53FDc05b57c7846da5F428798f187",
buyer: "0x1cB9dc49C0cC09D72E8dA74a9Ea956A0b1A65ab4",
seller: "0xA98135151f8dCd5632A63CC6358f5684c62B041D",
splitMarketplace: 10,
splitBuyer: 0,
splitSeller: 100,
splitProtocol: 0.69,
consensusBuyer: 0,
consensusSeller: 1,
arbitration: {
arbitrator: "0x3C86F543e64810E1d843809B2b70a4FDcC3b9B66",
consensusSeller: true,
consensusBuyer: true,
arbitrated: false,
arbitratorFee: 0
},
settlement: null,
token: {
address: "0x7eD124F79447a1390281c88bB9bca2AC4F009BBE"
}
}

Hierarchy

Properties

amount

amount: BigNumberJs

Amount in token's (or ETH's) wei unit

Inherited from

IEscrowData.amount

Defined in

typing/index.ts:172


buyer

buyer: string

Buyer (payer) address

Inherited from

IEscrowData.buyer

Defined in

typing/index.ts:181


challengePeriod

challengePeriod: number

How much a challenge period will extend by if challenged

Inherited from

IEscrowData.challengePeriod

Defined in

typing/index.ts:188


challengePeriodEnd

challengePeriodEnd: Date

Current challenge period end (when it will be possible to claim the payment)

Inherited from

IEscrowData.challengePeriodEnd

Defined in

typing/index.ts:192


challengePeriodStart

challengePeriodStart: Date

Current challenge period start (either payment time or the latest challenge)

Inherited from

IEscrowData.challengePeriodStart

Defined in

typing/index.ts:190


consensusBuyer

consensusBuyer: number

Indicates status of the payment from buyer's and seller's side. Negative value means that party was challenged.

Examples for various states:
0, 1: Paid - If the payment is claimed after challenge period ends, consensus remains like this
1, 1: Released by buyer
1,-1: 1x Challenged by buyer - If the payment is claimed after CP ends, consensus remains like this
-1, 2: 1x Challenged by buyer and 1x by Seller
2,-2: 2x Challenged by buyer, 1x by seller
3, 2: Released, Refunded, or Settled. Deduct 1 from each consensus number to calculate number of challenges

Inherited from

IEscrowData.consensusBuyer

Defined in

typing/index.ts:219


consensusSeller

consensusSeller: number

See consensusBuyer for details

Inherited from

IEscrowData.consensusSeller

Defined in

typing/index.ts:222


createdAt

Optional createdAt: Date

When was the payment sent to the escrow

Inherited from

IEscrowData.createdAt

Defined in

typing/index.ts:225


ensAddresses

Optional ensAddresses: IEnsAddresses

ENS Addresses

Inherited from

IEscrowData.ensAddresses

Defined in

typing/index.ts:235


escrowId

escrowId: number

Inherited from

IEscrowData.escrowId

Defined in

typing/index.ts:173


latestSettlementOfferAddress

Optional latestSettlementOfferAddress: string

Address that sent the latest settlement offer (if any)

Inherited from

IEscrowData.latestSettlementOfferAddress

Defined in

typing/index.ts:228


latestSettlementOfferBuyer

Optional latestSettlementOfferBuyer: number

What was the proposed seller's split in the latest settlement offer

Inherited from

IEscrowData.latestSettlementOfferBuyer

Defined in

typing/index.ts:232


latestSettlementOfferSeller

Optional latestSettlementOfferSeller: number

What was the proposed seller's split in the latest settlement offer

Inherited from

IEscrowData.latestSettlementOfferSeller

Defined in

typing/index.ts:230


marketplace

marketplace: string

Marketplace address

Inherited from

IEscrowData.marketplace

Defined in

typing/index.ts:179


seller

seller: string

Seller (payee) address

Inherited from

IEscrowData.seller

Defined in

typing/index.ts:183


splitBuyer

splitBuyer: number

How much (%) of the payment is meant for the buyer (default 0)

Inherited from

IEscrowData.splitBuyer

Defined in

typing/index.ts:195


splitMarketplace

splitMarketplace: number

Marketplace fee (%)

Inherited from

IEscrowData.splitMarketplace

Defined in

typing/index.ts:205


splitProtocol

splitProtocol: number

Protocol fee (%)

Inherited from

IEscrowData.splitProtocol

Defined in

typing/index.ts:203


splitSeller

splitSeller: number

How much (%) of the payment is meant for the seller (default 100). Buyer and seller splits are "gross", i.e. before fee deduction. They are recalculated at the time of the claim based on fee and the latest status of the escrow

Inherited from

IEscrowData.splitSeller

Defined in

typing/index.ts:201


status

status: IEscrowStatus

See the interface for more details

Inherited from

IEscrowData.status

Defined in

typing/index.ts:176


token

token: IToken

Information about the payment token

Inherited from

IEscrowData.token

Defined in

typing/index.ts:185


tokenInfo

tokenInfo: IToken

Defined in

typing/index.ts:239