# hopper-token
Hopper-owned SPL Token builders. The default public API is safety-first:
`TransferChecked`, `MintToChecked`, `BurnChecked`, `ApproveChecked`, plus
`CloseAccount`, `Revoke`, and `InitializeAccount`. Stack-allocated instruction
data, no heap.
[](https://crates.io/crates/hopper-token)
[](https://docs.rs/crate/hopper-token/0.1.0)
Part of the **[Hopper](https://hopperzero.dev)** framework.
```rust
use hopper::prelude::*;
hopper_token::instructions::TransferChecked {
from,
mint,
to,
authority,
amount,
decimals,
}
.invoke()?;
```
Deprecated plain builders (`Transfer`, `MintTo`, `Burn`, `Approve`) are hidden
unless the non-default `legacy-token-instructions` feature is enabled. Use that
feature only for migration tests against legacy SPL Token programs that cannot
use the checked instructions.
For Token-2022 mints with extension awareness, see
[`hopper-token-2022`](../hopper-token-2022).
Docs: <https://docs.rs/crate/hopper-token/0.1.0>
License: Apache-2.0.