Connect Account from private key

You can connect any existing blockchain account by using the relevant chain module and passing in the private key or mnemonics of the account.

Usage

CSDKAccount(
    private_key=None,
    hrp="cosmos")
  • private_key - string

Example

from aleph_client.chains.cosmos import CSDKAccount

account = CSDKAccount("<Your Private Key Here>")

Accounts will respond to the following functions:

  • .get_address()

  • .get_public_key()

Last updated