upvest v0.1.1 Upvest.Clientele.Wallet View Source

Handles operations related to Wallet

You can:

  • Retrieve wallet
  • List all wallets
  • List specific number of wallets

For more details see https://doc.upvest.co/reference#kms_wallet_list

Link to this section Summary

Functions

List all Wallet

List specific number of Wallet

Retrive a(n) Wallet by its ID

Sign (the hash of) data with the private key corresponding to this wallet.

Link to this section Types

Link to this type

t()

View Source
t() :: %Upvest.Clientele.Wallet{
  address: term(),
  balances: term(),
  id: term(),
  index: term(),
  protocol: term(),
  status: term()
}

Link to this section Functions

Link to this function

create(client, password, asset_id, index \\ 0, type \\ :encrypted)

View Source

Create a new wallet.

The password is necessary to decrypt the Seed data to create the private key for the new wallet, and then to encrypt the new private key.

List all Wallet

List specific number of Wallet

Link to this function

retrieve(client, id)

View Source
retrieve(Upvest.Client.t(), binary()) ::
  {:ok, Upvest.Clientele.Wallet.t()} | {:error, Upvest.error()}

Retrive a(n) Wallet by its ID

Link to this function

sign(client, password, wallet_id, to_sign, input_format, output_format)

View Source

Sign (the hash of) data with the private key corresponding to this wallet.