AccountAPI
class AccountAPI
Methods
constructor
new AccountAPI()
Cannot be constructed.
Methods
info
static
Fetches an Account information
Returns: Promise<IAccountInfoResponse>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | API endpoint URL | ||
address | string | The one we want the info from |
setInfo
static
Sets Account information
Returns: Promise<IAccountSetInfoResponse>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | API endpoint URL | ||
payload | string | The set information info raw payload to be submitted to the chain | ||
metadata | string | The base64 encoded metadata JSON object |
transfersList
static
Returns paginated list of transfers for a specific account
Returns: Promise<IAccountTransfersResponse>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | API endpoint URL | ||
accountId | string | accountId to get transfers | ||
page | number | ✔️ | 0 | The page number |
electionsList
static
Returns paginated list of elections for a specific account
Returns: Promise<IElectionListResponse>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | API endpoint URL | ||
accountId | string | accountId to get elections | ||
page | number | ✔️ | 0 | The page number |
Was this helpful?