Skip to main content

Interface: IPayTransactionPayload

Passed to the callbacks when the payment is being broadcasted and confirmed

Properties

amount

Optional amount: string

Payment amount in ETH's or token's WEI

Defined in

typing/index.ts:681


amountArbitrator

Optional amountArbitrator: string

Amount (in ETH's or token's WEI) which the arbitrator would receive if the payment was claimed as is (amount * fee in this case)

Defined in

typing/index.ts:693


amountBuyer

Optional amountBuyer: string

Amount (in ETH's or token's WEI) which the buyer would receive if the payment was claimed as is (0 in this case)

Defined in

typing/index.ts:684


amountMarketplace

Optional amountMarketplace: string

Amount (in ETH's or token's WEI) which the marketplace would receive if the payment was claimed as is (amount * fee in this case)

Defined in

typing/index.ts:690


amountProtocol

Optional amountProtocol: string

Amount (in ETH's or token's WEI) which the protocol would receive if the payment was claimed as is (amount * fee in this case)

Defined in

typing/index.ts:696


amountSeller

Optional amountSeller: string

Amount (in ETH's or token's WEI) which the seller would receive if the payment was claimed as is (amount - fees in this case)

Defined in

typing/index.ts:687


arbitrator

Optional arbitrator: string

Arbitrator address (null if none)

Defined in

typing/index.ts:630


arbitratorFee

Optional arbitratorFee: number

Arbitrator fee specified in the payment (%, can be 0)

Defined in

typing/index.ts:624


blockNumber

Optional blockNumber: number

Number of the block in which the payment transaction was minted

Defined in

typing/index.ts:618


buyer

Optional buyer: string

Address of the buyer (who sent the payment)

Defined in

typing/index.ts:633


challengePeriod

Optional challengePeriod: number

Initial challenge period (seconds)

Defined in

typing/index.ts:639


challengePeriodEnd

Optional challengePeriodEnd: Date

When does the current challenge period end (paidAt + challengePeriod in this case)

Defined in

typing/index.ts:648


challengePeriodExtension

Optional challengePeriodExtension: number

By how much does the challenge period extend after each challenge

Defined in

typing/index.ts:642


challengePeriodStart

Optional challengePeriodStart: Date

When does the current challenge period start (same as paidAt in this case)

Defined in

typing/index.ts:645


claimed

Optional claimed: boolean

If the payment was claimed (always false here)

Defined in

typing/index.ts:660


consensusBuyer

Optional consensusBuyer: number

Buyer's consensus over the escrow (0 in this case)

Defined in

typing/index.ts:663


consensusSeller

Optional consensusSeller: number

Seller's consensus over the scrow (1 in this case)

Defined in

typing/index.ts:666


escrowId

Optional escrowId: number

Escrow Id generated by the contract (available only in confirmed callback)

Defined in

typing/index.ts:621


marketplace

Optional marketplace: string

Address of the marketplace that facilitated the payment (null if none)

Defined in

typing/index.ts:651


marketplaceFee

Optional marketplaceFee: number

Marketplace fee (%, can be 0 even if a marketplace was defined)

Defined in

typing/index.ts:654


name

Optional name: string

Name of the event ("Pay")

Defined in

typing/index.ts:615


paidAt

Optional paidAt: Date

When was the payment sent

Defined in

typing/index.ts:627


seller

Optional seller: string

Address of the seller (whom is the payment for)

Defined in

typing/index.ts:636


splitBuyer

Optional splitBuyer: number

Buyer's split of the payment (0 in this case)

Defined in

typing/index.ts:669


splitMarketplace

Optional splitMarketplace: number

Marketplace fee (%)

Defined in

typing/index.ts:675


splitProtocol

Optional splitProtocol: number

Protocol fee (%)

Defined in

typing/index.ts:678


splitSeller

Optional splitSeller: number

Seller's split of the payment (100 in this case)

Defined in

typing/index.ts:672


tokenAddress

Optional tokenAddress: string

Address of the escrowed token (null for ETH)

Defined in

typing/index.ts:657


transactionHash

transactionHash: string

Defined in

typing/index.ts:612