31 stable releases (3 major)

4.0.0 Jun 26, 2024
3.4.3 Jul 11, 2024
3.4.1 Apr 26, 2024
3.4.0 Mar 28, 2024
1.0.0 Aug 13, 2020

#1722 in Magic Beans

Download history 1740/week @ 2024-04-04 1349/week @ 2024-04-11 1359/week @ 2024-04-18 1470/week @ 2024-04-25 796/week @ 2024-05-02 746/week @ 2024-05-09 671/week @ 2024-05-16 729/week @ 2024-05-23 577/week @ 2024-05-30 586/week @ 2024-06-06 512/week @ 2024-06-13 844/week @ 2024-06-20 676/week @ 2024-06-27 821/week @ 2024-07-04 643/week @ 2024-07-11 369/week @ 2024-07-18

2,844 downloads per month

Apache-2.0

2MB
44K SLoC

SPL Token program command-line utility

A basic command-line for creating and using SPL Tokens. See https://spl.solana.com/token for more details

Build

To build the CLI locally, simply run:

cargo build

Testing

The tests require locally built programs for Token, Token-2022, and Associated Token Account. To build these, you can run:

BUILD_DEPENDENT_PROGRAMS=1 cargo build

This method uses the local build.rs file, which can be error-prone, so alternatively, you can build the programs by running the following commands from this directory:

cargo build-sbf --manifest-path ../program/Cargo.toml
cargo build-sbf --manifest-path ../program-2022/Cargo.toml
cargo build-sbf --manifest-path ../../associated-token-account/program/Cargo.toml

After that, you can run the tests as any other Rust project:

cargo test

Dependencies

~90MB
~1.5M SLoC