Environment
Create a new environment
import { ARK } from "@arkecosystem/platform-sdk-ark";
import { Environment } from "@arkecosystem/platform-sdk-profiles";
import { Request } from "@arkecosystem/platform-sdk-http-bent";
new Environment({
coins: { ARK },
httpClient: new Request(),
storage: "localstorage"
});
Profiles
These methods are accessible through env.profiles()
which exposes a ProfileRepository
instance.
Get a list of all profiles
env.profiles().all();
Find the profile for the given ID
env.profiles().findById("uuid");
Create a new profile for the given name
env.profiles().create("John Doe");
Forget the profile for the given ID
env.profiles().forget("uuid");
Last updated 3 months ago
Edit Page