Guides
Practical, copy‑pasteable walkthroughs using the Treza SDK.
export TREZA_BASE_URL=https://app.trezalabs.com export WALLET_ADDRESS=0x4B0897b0513fdc7C541B6d9D7E929C4e5364D2dB export GITHUB_ACCESS_TOKEN=gho_xxxxxxxxxxxxxxxxxxxx # optional
Deploy your first enclave
import { TrezaClient } from '@treza/sdk';
const client = new TrezaClient();
const WALLET = process.env.WALLET_ADDRESS!;
const providers = await client.getProviders();
const provider = providers[0];
const region = provider.regions[0];const enclave = await client.createEnclave({
name: 'hello-enclave',
description: 'First run',
region,
walletAddress: WALLET,
providerId: provider.id,
providerConfig: {
dockerImage: 'hello-world:latest',
cpuCount: 1,
memoryMiB: 256,
},
});
console.log('Enclave:', enclave.id, enclave.status);Manage lifecycle (pause / resume / terminate)
Guide: View and filter logs
Schedule a task inside an enclave
Create least‑privilege API keys
Connect a GitHub repo (optional)
Use Docker images & tags
Troubleshooting
See also
Last updated