cosmpy.aerial.wallet¶
Wallet Generation.
Wallet Objects¶
Wallet Generation.
Arguments:
ABC
: ABC abstract methodUserString
: user string
address¶
get the address of the wallet.
Returns:
None
public_
key¶
get the public key of the wallet.
Returns:
None
signer¶
get the signer of the wallet.
Returns:
None
data¶
Get the address of the wallet.
Returns:
Address
__
json__
¶
Return the address in string format.
Returns:
address in string format
LocalWallet Objects¶
Generate local wallet.
Arguments:
Wallet
: wallet
generate¶
generate the local wallet.
Arguments:
prefix
: prefix, defaults to None
Returns:
local wallet
from_
mnemonic¶
Generate local wallet from mnemonic.
Arguments:
mnemonic
: mnemonicprefix
: prefix, defaults to None
Returns:
local wallet
from_
unsafe_
seed¶
@staticmethod
def from_unsafe_seed(text: str,
index: Optional[int] = None,
prefix: Optional[str] = None) -> "LocalWallet"
Generate local wallet from unsafe seed.
Arguments:
text
: textindex
: index, defaults to Noneprefix
: prefix, defaults to None
Returns:
Local wallet
__
init__
¶
Init wallet with.
Arguments:
private_key
: private key of the walletprefix
: prefix, defaults to None
address¶
Get the wallet address.
Returns:
Wallet address.
public_
key¶
Get the public key of the wallet.
Returns:
public key
signer¶
Get the signer of the wallet.
Returns:
signer