Skip to main content

AccountAPI

class AccountAPI
Methods

constructor

new AccountAPI()

Cannot be constructed.

Methods

info

static

Fetches an Account information

Returns: Promise<IAccountInfoResponse>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringAPI endpoint URL
addressstringThe one we want the info from

setInfo

static

Sets Account information

Returns: Promise<IAccountSetInfoResponse>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringAPI endpoint URL
payloadstringThe set information info raw payload to be submitted to the chain
metadatastringThe base64 encoded metadata JSON object

transfersList

static

Returns paginated list of transfers for a specific account

Returns: Promise<IAccountTransfersResponse>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringAPI endpoint URL
accountIdstringaccountId to get transfers
pagenumber✔️0The page number

electionsList

static

Returns paginated list of elections for a specific account

Returns: Promise<IElectionListResponse>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringAPI endpoint URL
accountIdstringaccountId to get elections
pagenumber✔️0The page number

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.