Dogecoin
The Dogecoin
class from the @moonup/moon-api
package provides methods to interact with Dogecoin accounts and transactions.
Initialization
To use the Dogecoin
class, you need to create an instance of it by passing an instance of the HttpClient
class to its constructor. The HttpClient
class is also part of the @moonup/moon-api
package and provides a convenient way to make HTTP requests.
Here's an example of how to create an instance of the Dogecoin
class:
Methods
The Dogecoin
class provides the following methods:
createDogeCoinAccount(data: DogeCoinInput, params?: RequestParams): Promise<CreateDogeCoinAccountData>
Creates a new Dogecoin account.
data
is an object of typeDogeCoinInput
that contains the necessary information to create the account.params
is an optional object of typeRequestParams
that can be used to customize the request.Returns a promise that resolves to an object of type
CreateDogeCoinAccountData
.
Example usage:
getDogeCoinAccount(accountName: string, params?: RequestParams): Promise<GetDogeCoinAccountData>
Retrieves information about a specific Dogecoin account.
accountName
is a string that represents the name of the account.params
is an optional object of typeRequestParams
that can be used to customize the request.Returns a promise that resolves to an object of type
GetDogeCoinAccountData
.
Example usage:
listDogeCoinAccounts(params?: RequestParams): Promise<ListDogeCoinAccountsData>
Retrieves a list of all Dogecoin accounts.
params
is an optional object of typeRequestParams
that can be used to customize the request.Returns a promise that resolves to an object of type
ListDogeCoinAccountsData
.
Example usage:
signDogeCoinTransaction(accountName: string, data: DogeCoinTransactionInput, params?: RequestParams): Promise<SignDogeCoinTransactionData>
Signs a Dogecoin transaction for a specific account.
accountName
is a string that represents the name of the account.data
is an object of typeDogeCoinTransactionInput
that contains the necessary information to sign the transaction.params
is an optional object of typeRequestParams
that can be used to customize the request.Returns a promise that resolves to an object of type
SignDogeCoinTransactionData
.
Example usage:
These methods can be used to perform various operations on Dogecoin accounts and transactions, such as creating new accounts, retrieving account information, signing transactions, and more. The Dogecoin
class is a part of the @moonup/moon-api
package, which provides a convenient way to interact with the Moon API.
Last updated