function purchaseHistoryOf(
address user
) public view returns (PurchaseHistory[] memory) {
...
return purchaseHistoryList;
}
PurchaseHistory[] memory
struct PurchaseHistory {
uint256 purchaseId; // Purchase ID (PK)
uint256 purchasedItemPrice; // 구매 아이템 가격 (wei)
address buyer; // 구매자 EOA
string uuid; // 구매자 UUID
string itemId; // 구매한 Item ID
}