🌐 bank · API em Inglês 🌙 Lua Crescente+
Funções acessadas com o prefixo bank-en., ex.: bank-en.get-account().
This is the same Bank API, just with English names (a 1:1 alias of the methods above, same behaviour and same rules). Use whichever style you prefer — the two can even be mixed in the same script. Here, the target user is always an explicit parameter instead of always defaulting to whoever ran the script.
bank.getAccount(userId?)
→ { userId, saldoEstrelas, saldoLocal, status }
→
bank.getBalance(userId?)
→ number
→
bank.getBank()
→ { nome, icone, descricao, fundadorId, status } | nil
→
bank.getCurrency()
→ object
→
bank.getReserves()
→ { reservaEstrelas, receitaTaxas }
→
bank.getCirculation()
→ number
→
bank.getTransactions(userId?, limit?)
→ array
→
bank.deposit(userId?, quantidade)
→ { ok }
→
bank.withdraw(userId?, quantidade)
→ { ok }
→
bank.transfer(fromUserId?, toUserId, quantidade)
→ { ok }
→
bank.convert(userId?, quantidade)
→ { taxa, liquidoEstrelas, moedaGerada }
→
bank.redeem(userId?, quantidade)
→ { taxa, liquidoEstrelas }
→