Accounts are the way to organize your stakes with Kiln, you can see them as folder for your stakes. It is a flexible system you can use to differentiate your client stakes for example.
List all the accounts inside your Kiln Organization or get the details of one single account.
/* getAll(): Promise<Account> */
const accounts = await k.accounts.getAll();
/* get(accountId: string): Promise<Account> */
const account = await k.accounts.get('account-id');
Create a new account by setting its title and description.
/* create(name: string, description: string): Promise<Account> */
const account = await k.accounts.create('Client #1', 'Account for Client #1');
Update the metadata (name and / or description) of an Account.
/* update(accountId: string, name?: string, description?: string): Promise<Account> */
const account = await k.accounts.update(account.id, 'Client #1 - old');