Ga naar hoofdinhoud

GetWarehouseTransactions

waarschuwing

Deze export is alleen beschikbaar voor serverside!

Export Syntax
exports['dream_cryptomining']:GetWarehouseTransactions(WarehouseId) -- Geeft een tabel met gegevens terug

Parameterโ€‹

  1. 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