Skip to main content
This guide connects the Rust SDK to Tapenet, reserves a tape, writes a file, and reads it back. You’ll need the crate installed and a connection to Tapenet. Current network details are on the networks page.
1

Fund a wallet

Complete the wallet and funding setup and use that wallet as the payer in your SDK client. Local Tapedrive isn’t released yet, so this guide runs against Tapenet. Check the wallet’s SOL and TAPE balances before writing:
2

Set up a wallet and client

Create or load the Solana keypair that signs everything and owns the tape, then build the client. The full client takes an RPC connection and your keypair as payer. If you only read, a gateway endpoint is enough. No keypair needed.
3

Reserve a tape

The one payment step. Create the tape’s key (or derive its address from your wallet), price the reservation, then reserve capacity for a duration. What you get back is a tape controlled by that key, with room for the uploads that follow.The tape key is the tape: store it like you store the data (why).
4

Write

One call writes a file. The SDK picks the path by size: small data rides inside the transaction, larger data is erasure-coded, and very large data streams in segments (how the paths work). This example uses a file big enough to take the erasure-coded path.The write certifies the track before it returns. Certification is the network’s proof that your data is held: a quorum of the storage nodes that received your slices signs, and that aggregate signature lands on-chain (what certification promises).The receipt carries the manifest address, which the last step reads back.
5

Read it back

Two ways to get your bytes: through the SDK by track address, or from any gateway over plain HTTP. The address is the same in both.

Where to go next

You’ve connected, reserved, written, and read back. From here: reading and writing for everything those flows can do, objects for the S3-style layer, and docs.rs for every method.