@staticmethod
def generate_account_from_mnemonic(mnemonic: str, passphrase: str = "", account_path: str = "m/44'/60'/0'/0/0") -> Optional[Tuple[ChecksumAddress, HexBytes]]
# 从助记词生成账户
mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
account_data = Utils.generate_account_from_mnemonic(
mnemonic=mnemonic,
passphrase="optional password",
account_path="m/44'/60'/0'/0/1" # 使用自定义路径
)
if account_data:
address, private_key = account_data
print(f"Generated Account Address: {address}")
print(f"Private Key: {private_key.hex()}")