Account
Create
Description:
This function creates a new sugarfunge account to interact with the node.
Steps:
Call the account/create endpoint.
Expected Output:
seed: represents the private key of the new account.
account: represents the public key of the new account.
Exists
Description:
This function checks if the account exists and is active.
Previous Steps:
Steps:
Call the account/exists endpoint with the following request body:
account: the account address that will be checked.
Example Input:
Expected Output:
account: the checked account address.
exists: the account current status.
Seeded
Description:
This function computes the account from seed.
Previous Steps:
Steps:
Call the account/seeded endpoint with the following request body:
seed: the seed of the account to be computed.
Example Input:
Expected Output:
seed: the seed of the account.
account: the account address thas was computed.
Fund
Description:
This function funds an account to be able to carry out different operations on the node.
Previous Steps:
Steps:
Call the account/fund endpoint with the following request body:
seed: the seed of the account that would be doing the funding.
to: the account address that will be funded.
amount: the specific amount to be added to the account.
Example Input:
Expected Output:
from: the account address that did the funding.
to: the account address thas was funded.
amount: the specific amount that was added to the account.
Balance
Description:
This function checks the balance of sugar in an account.
Previous Steps:
Steps:
Call the account/balance endpoint with the following request body:
account: the account address that will be checked.
Example Input:
Expected Output:
amount: the amount of sugar in an account.
Last updated