Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

examples

This crate contains example programs to interact with Turnkey.

  • whoami.rs shows how to authenticate to the Turnkey API for the simplest endpoint we have.
  • sub_organization.rs shows the creation and deletion of sub-organizations.
  • wallet.rs shows basic wallet management (creation, signature, export, deletion).
  • proofs.rs shows e2e verification of wallet creation by verifying the app proof and boot proof.

Running examples

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