GetWarehouseTransactions
waarschuwing
Deze export is alleen beschikbaar voor serverside!
Export Syntax
exports['dream_cryptomining']:GetWarehouseTransactions(WarehouseId) -- Geeft een tabel met gegevens terug
Parameter
- WarehouseId (String) -> De Warehouse-Id. Zie Getallwarehouses.md
Response
Response Tabel
{
"TRANSACTIONID": {
"id": int, -- TransactieId
"warehouse": int, -- Warehouse-Id
"assigned": int, -- ToegewezenId
"transactionId": string -- TransactieId (bijv. T994826)
"type": string, -- [inkomend, uitgaand]
"status": string, -- [in afwachting, voltooid]
"kwh": float, -- Kwh bedrag
"server": int, -- Server bedrag
"amount": int, -- 💸 Bedrag
"date": string, -- Geformatteerde Datum (DD.MM.JJJJ HH:MM)
"created_at": float, -- Unix Tijdstempel
"updated_at": float, -- Unix Tijdstempel
},
...
}
Voorbeeld Export
local WarehouseTransactions = exports['dream_cryptomining']:GetWarehouseTransactions("WAREHOUSEID")
-- 🎉 Dit zal de magazijntransacties doorlopen
for key, value in pairs(WarehouseTransactions) do
print(value.type) -- 📌 Transactie Type
print(value.status) -- ✉️ Transactie Status
print(value.amount) -- 💸 Transactie Bedrag
-- 💬 Gebruik alle andere variabelen...
end