Accounts
Lists accounts using the provided authorization token.
- The authorization token from the request header.
A promise that resolves to an AccountAPIResponse object containing the list of accounts.
Interface representing the response from the Account API. Extends the BaseAPIResponse to include additional data specific to account responses.
The success status of the operation.
The message associated with the operation.
The address associated with the operation.
A promise that resolves to an AccountAPIResponse object containing the list of accounts.
Creates a new account using the provided authorization token and account input data.
- The authorization token from the request header.
- The input data required to create a new account.
An optional private key for the account.
A promise that resolves to an AccountAPIResponse object containing the success status, message, and data.
Interface representing the response from the Account API. Extends the BaseAPIResponse to include additional data specific to account responses.
The success status of the operation.
The message associated with the operation.
The address associated with the operation.
A promise that resolves to an AccountAPIResponse object containing the success status, message, and data.
Retrieves the account details for a given account name.
- The name of the account to retrieve.
- The authorization token from the request header.
A promise that resolves to an AccountAPIResponse object containing the account details.
Interface representing the response from the Account API. Extends the BaseAPIResponse to include additional data specific to account responses.
The success status of the operation.
The message associated with the operation.
The address associated with the operation.
A promise that resolves to an AccountAPIResponse object containing the account details.
Deletes an account based on the provided account name.
- The name of the account to be deleted.
- The authorization token from the request header.
A promise that resolves to an AccountAPIResponse object indicating the success or failure of the operation.
Interface representing the response from the Account API. Extends the BaseAPIResponse to include additional data specific to account responses.
The success status of the operation.
The message associated with the operation.
The address associated with the operation.
A promise that resolves to an AccountAPIResponse object indicating the success or failure of the operation.