This crate contains example programs to interact with Turnkey.
whoami.rsshows how to authenticate to the Turnkey API for the simplest endpoint we have.sub_organization.rsshows the creation and deletion of sub-organizations.wallet.rsshows basic wallet management (creation, signature, export, deletion).proofs.rsshows e2e verification of wallet creation by verifying the app proof and boot proof.
Copy the example .env.example into a .env file:
cp .env.example .env
Populate your .env file with your own organization ID, public key and private key. You can follow the instructions from our quickstart.
Run the examples with cargo run:
cargo run -p turnkey_examples --bin whoami
cargo run -p turnkey_examples --bin sub_organization
cargo run -p turnkey_examples --bin wallet
cargo run -p turnkey_examples --bin proofs