28 stable releases

3.4.1 Apr 26, 2024
3.4.0 Mar 28, 2024
3.3.0 Dec 12, 2023
3.2.0 Oct 13, 2023
1.0.0 Aug 13, 2020

#1530 in Magic Beans

Download history 538/week @ 2024-02-09 684/week @ 2024-02-16 803/week @ 2024-02-23 1181/week @ 2024-03-01 1512/week @ 2024-03-08 1651/week @ 2024-03-15 1415/week @ 2024-03-22 1797/week @ 2024-03-29 1694/week @ 2024-04-05 1430/week @ 2024-04-12 1302/week @ 2024-04-19 1420/week @ 2024-04-26 725/week @ 2024-05-03 686/week @ 2024-05-10 740/week @ 2024-05-17 535/week @ 2024-05-24

2,920 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