> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attest.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create your first attestation in 5 minutes

## Install

```bash theme={null}
npm install @attestprotocol/stellar-sdk @stellar/stellar-sdk
```

## Initialize Client

```typescript theme={null}
import { StellarAttestationClient } from '@attestprotocol/stellar-sdk';
import { Keypair, Networks, Transaction } from '@stellar/stellar-sdk';

// Your Stellar keypair
const keypair = Keypair.fromSecret('SXXXX...');

// Create signer
const signer = {
  signTransaction: async (xdr: string) => {
    const tx = new Transaction(xdr, Networks.TESTNET);
    tx.sign(keypair);
    return tx.toXDR();
  }
};

// Initialize client
const client = new StellarAttestationClient({
  rpcUrl: 'https://soroban-testnet.stellar.org',
  network: 'testnet',
  publicKey: keypair.publicKey()
});
```

## Create Schema

```typescript theme={null}
const schemaResult = await client.createSchema({
  definition: 'struct KYC { bool verified; string level; }',
  revocable: true,
  options: { signer }
});
```

## Create Attestation

```typescript theme={null}
// Generate schema UID
const schemaUid = client.generateSchemaUid({
  definition: 'struct KYC { bool verified; string level; }',
  authority: keypair.publicKey()
});

// Attest
await client.attest({
  schemaUid,
  value: JSON.stringify({ verified: true, level: 'basic' }),
  options: { signer }
});
```

## Verify Attestation

```typescript theme={null}
const attestation = await client.getAttestation(attestationUid);
console.log(attestation.result);
```

## Next Steps

<CardGroup cols={2}>
  <Card title="How It Works" icon="lightbulb" href="/concepts/how-it-works">
    Understand the architecture
  </Card>

  <Card title="Stellar Guide" icon="star" href="/stellar/getting-started">
    Complete walkthrough with all features
  </Card>
</CardGroup>
