multiversx_sdk.accounts package
Submodules
multiversx_sdk.accounts.account module
- class multiversx_sdk.accounts.account.Account(secret_key: UserSecretKey, hrp: str | None = None)[source]
Bases:
object
- classmethod new_from_keystore(file_path: Path, password: str, address_index: int | None = None, hrp: str | None = None) Account [source]
- classmethod new_from_mnemonic(mnemonic: str, address_index: int = 0, hrp: str | None = None) Account [source]
- save_to_keystore(path: Path, password: str = '')[source]
Saves the secret key to a keystore file with kind=secretKey.
- sign_transaction(transaction: Transaction) bytes [source]
Module contents
- class multiversx_sdk.accounts.Account(secret_key: UserSecretKey, hrp: str | None = None)[source]
Bases:
object
- classmethod new_from_keystore(file_path: Path, password: str, address_index: int | None = None, hrp: str | None = None) Account [source]
- classmethod new_from_mnemonic(mnemonic: str, address_index: int = 0, hrp: str | None = None) Account [source]
- save_to_keystore(path: Path, password: str = '')[source]
Saves the secret key to a keystore file with kind=secretKey.
- sign_transaction(transaction: Transaction) bytes [source]