Skip to content

Currency

Mistium edited this page Sep 11, 2024 · 3 revisions

The Currency system in rotur is simple and intuitive.

Every day that a user logs in, they gain 1 credit that they can send to any other user or buy items with.

Get Balance

block_15_08_2024-02_28_38

This block lets you view how many credits that your user account has, and will update when others send you credits or when you send them credits, or make purchases.

Transfer To

block_15_08_2024-02_28_40

This block is simple and allows you to transfer a number of credits from your account to another

Successful Transfer

"Success"

Failed Transfer

Attempted to send a string:
"Transaction Must Be A Number"

Attempted to send a small value
"Transaction Cannot Be Less Than 0.01"

Tried to transfer currency to yourself:
"You Cannot Send To Yourself"

Attempted to send to an account that doesn't exist:
"No Account With That Name"

Attempted to send more credits than you have:
"Not Enough Credits For This Transaction"

When Balance Changed

block_15_08_2024-02_28_42

This hat block will fire whenever the user's balance has changed

Get Transactions

block_15_08_2024-02_28_43

This reporter will return an array of text that can be displayed to the user for each past transaction on the account

Example data:

[
  "sent 5 to Hello",
  "sent 1234 to Mist",
  "got 1234 from mist",
]
Clone this wiki locally