API and SDK Reference

The PaymentHistoryItem type represents a receipt on a loan payment.

export type PaymentHistoryItem = {
  blockNumber: number;
  buyerAtTime: Address;
  interestPaid: string;
  principalPaid: string;
  royaltiesPaid: string;
  sellerAtTime: Address;
  transactionHash: string;
};

These properties provide details about a loan payment, which can be used for various purposes such as tracking the payment progress, calculating the remaining balance of the loan, and managing the payment flow.

blockNumber

A number representing the transaction block in which the payment was made.

buyerAtTime

An Address representing the Ethereum address of the buyer at the time of payment.

interestPaid

A BigNumber string representing the amount of interest paid in the payment.

principalPaid

A BigNumber string representing the amount of principal paid in the payment.

royaltiesPaid

A BigNumber string representing the amount of royalties paid in the payment.

sellerAtTime

An Address representing the Ethereum address of the seller at the time of payment.

transactionHash

A string representing the payment transaction hash.