-
Notifications
You must be signed in to change notification settings - Fork 648
Blockchain Objects
In contrast to most cryptocurrency wallets, the BitShares 2.0 has a different model to represent the blockchain, its transactions and accounts. This chapter wants to given an introduction to the concepts of objects as they are used by the BitShares 2.0 client. Furthermore, we will briefly introduce the API and show how to subscribe to object changes (such as new blocks or incoming deposits). Afterwards, we will show how exchange may monitor their accounts and credit incoming funds to their corresponding users.
Another helpful document can be found at this link: BItShares Developers Portal - Blockchain Objects and their Identifiers.
On the BitShares blockchains there are no addresses, but objects identified by a unique id, an type and a space in the form:
space.type.id
Some examples:
1.2.15 # protocol space / account / id: 15
1.6.105 # protocol space / witness / id: 105
1.14.7 # protocol space / worker / id: 7
2.1.0 # implementation space / dynamic global properties
2.3.8 # implementation space / dynamic asset data / id: 8
2.5.80 # implementation space / account-balance / id: 80
2.6.80 # implementation space / account-statistics / id: 80
2.9.80 # implementation space / account-transactions / id: 80
2.7.80 # implementation space / transactions / id: 80
2.8.80 # implementation space / block-summary / id: 80
Related source code: this and this.
The BitShares blockchain users are required to register each account with a
unique username and 3 public keys on the blockchain. The blockchain assigns an
incremental user id and offers to resolve the name-to-id pair. For instance
1.2.15
.