#account-balance #query #management #web3 #export #import #account

account

Provides a simple tool library for managing web3 accounts.It provides a set of APIs for account management, including account creation, account import, account export, account deletion, account balance query, account transfer, etc

1 unstable release

0.1.1-beta1 Jan 28, 2024

#33 in #account-balance

Download history 7/week @ 2024-12-08 1/week @ 2024-12-15 111/week @ 2025-01-12 386/week @ 2025-01-19 546/week @ 2025-01-26 408/week @ 2025-02-02 366/week @ 2025-02-09 341/week @ 2025-02-16 340/week @ 2025-02-23 490/week @ 2025-03-02 507/week @ 2025-03-09 437/week @ 2025-03-16

1,789 downloads per month
Used in samir_practice

MIT/Apache

12KB
194 lines

Account


Provides a simple tool library for managing web3 accounts. It provides a set of APIs for account management, including account creation, account import, account export, account deletion, account balance query, account transfer, etc.

Usage

use account::account::Account;

fn main() {
    // create account
    let password = None;
    let account = Account::new(password);

    // using a child path to sign and verify
    let child_path = "m/44'/0'/0'/0/0'";
    // sign and verify
    let example_msg = b"Hello, world!";
    let sign_message = account.sign(child_path, example_msg);
    account.verify(child_path, example_msg, &sign_message.unwrap());
}

Dependencies

~9MB
~137K SLoC