Wallet Data Object
The Wallet model is comprised by its balance in terms of amount of tokens and a set of transactions.
Wallet
address
wallet address e.g.wallet://sharing-cities/etuyetrhgfjhf
owner
the wallet owner GUID URL (user public key)created
timestamp creationbalance
amount of tokenstransactions
all transactions performed with this wallet. See belowaccounts
all accounts associated with this wallet. See belowstatus
active or deletedprofile
a JSON object with any attributes describing the wallet or the wallet owner e.g. age range, workplace, etcbonus-credit
amount of tokens available to spend on bonus.
Transaction
recipient
wallet address of the recipientdata
data that was used to generate this transaction e.g. walking distancesource
data stream address that was used to generate this transactiondate
transaction date.value
amount of tokens in the transaction. If-1
it is an unsuccessful transactionnonce
the count of the number of performed mining transactions, starting with 0description
optional text to describe or identify the transaction. For unsuccessful transactions it may be used to describe the reason.bonus
true if transaction is related to a bonus item false otherwise.
Account
An Account represents a source from where tokens are transferred e.g. “Walk Activity” account provide data about how the Wallet owner has earned tokens with Walk Activities.
name
name of the account e.g. “Caminhada”.totalBalance
the total ammount of tokens of this accounttotalData
the total ammount of data that was used to generated the total ammount of tokens. Example, “20” of Walk Activity Total data accounts 20 km of walking distance for wallet owner.lastBalance
the ammount of tokens earned in the last period of time.lastData
the ammount of data accounted in the last period of time.dataUnit
the measurement unit used for data. Example, “km” for Walking Activities.lastPeriod
the period of time used to calculatelastBalance
andlastData
description
optional text to describe the Account.