Accounts
Creating accounts that will interact with the blockchain.
Using the SDK starts with creating at least one account.
Whenever a new transaction is to be done, you will need to register the new account using the public key (B32 format or binary format).
Create
Parameters
public_b32
: string containing account addressaccount
: pointer toaccount_info_t *
Below is the structure account_info_t
Return codes
VTC_SUCCESS
: successVTC_ERROR_NO_MEM
: no more room for registering a new account
Update
Request the last info on the blockchain regarding the account: amount, opted-in apps, etc...
Parameters
account
pointer to the account, given byvertices_account_new_from_b32
.
Return codes
VTC_SUCCESS
on success
Delete
Delete the instance of the account, freeing up the spot to store another account.
Parameters
account
given byvertices_account_add
.
Return codes
VTC_SUCCESS
on success
Last updated