diff --git a/docs/getting-started/wallets/index.md b/docs/getting-started/wallets/index.md new file mode 100644 index 0000000..7df27e8 --- /dev/null +++ b/docs/getting-started/wallets/index.md @@ -0,0 +1,15 @@ +# Connect a Wallet + +After building your first smart contract, you're ready to connect a browser wallet to interact with dApps on Cedra. Wallets let you manage your accounts, sign transactions, and interact with decentralized applications. + +#### Cedra currently supports two wallets: + +- **[Nightly Wallet Setup](/getting-started/wallets/nightly)** - Multi-chain wallet with 1M+ users +- **[Zedra Wallet Setup](/getting-started/wallets/zedra)** - Built specifically for Cedra + +### What's Next? + +Once you've set up your wallet: +- Import your testnet account from CLI (if you have one) +- Connect to dApps built on Cedra +- Explore the [TypeScript SDK](/sdks/typescript-sdk) for wallet integration in your apps diff --git a/docs/getting-started/wallets/nightly.md b/docs/getting-started/wallets/nightly.md new file mode 100644 index 0000000..b1134ed --- /dev/null +++ b/docs/getting-started/wallets/nightly.md @@ -0,0 +1,60 @@ +# Nightly Wallet + +Nightly is a browser extension and mobile wallet that works with multiple chains including Cedra. + +**Website:** [nightly.app](https://nightly.app) + +1. Go to [nightly.app](https://nightly.app) and click **Download** +2. Pick your browser (Chrome, Firefox, Safari, or Edge) +3. Click **Add to Browser** + +![Nightly Download Page](./screenshots/nightly-download.png) + + +## Create a wallet + +1. Click the Nightly icon in your browser toolbar +2. Click **Create a new wallet** +3. Pick how you want to secure it: + - **Seed phrase** - you control everything + - **Social login** - easier setup, recovery depends on the service +4. Write down your 12 words somewhere safe +5. Confirm your recovery phrase + +:::warning Keep your seed phrase safe +Anyone with your seed phrase can take your funds. Write it down on paper and store it offline. +::: + +## Add Cedra network + +1. Click the network selector at the top of the wallet +2. Search for **Cedra** +3. Pick **Cedra Testnet** + +![Nightly Create Wallet](./screenshots/wallet.png) + +## Import an existing account + +Already have a Cedra account from the CLI? Import it: + +1. Click **Import Wallet** +2. Choose **Private Key** or **Seed Phrase** +3. Paste your credentials + +Export your private key from CLI: +```bash +cedra config show-private-key --profile default +``` +Import it via Add New Wallet +![Nightly Create Wallet](./screenshots/import.png) + +## Check it works + +1. Switch to Cedra network +2. You should see your address (starts with `0x`) +3. On testnet, grab some tokens from the [faucet](/getting-started/faucet) + +## Next steps + +- Get testnet tokens from the [Faucet](/getting-started/faucet) +- See [wallet integration](/sdks/typescript-sdk) for connecting wallets to your dApp diff --git a/docs/getting-started/wallets/screenshots/import.png b/docs/getting-started/wallets/screenshots/import.png new file mode 100644 index 0000000..b22f324 Binary files /dev/null and b/docs/getting-started/wallets/screenshots/import.png differ diff --git a/docs/getting-started/wallets/screenshots/nightly-download.png b/docs/getting-started/wallets/screenshots/nightly-download.png new file mode 100644 index 0000000..58c810f Binary files /dev/null and b/docs/getting-started/wallets/screenshots/nightly-download.png differ diff --git a/docs/getting-started/wallets/screenshots/wallet.png b/docs/getting-started/wallets/screenshots/wallet.png new file mode 100644 index 0000000..6c5ee3b Binary files /dev/null and b/docs/getting-started/wallets/screenshots/wallet.png differ diff --git a/docs/getting-started/wallets/screenshots/zedra-download.png b/docs/getting-started/wallets/screenshots/zedra-download.png new file mode 100644 index 0000000..a963259 Binary files /dev/null and b/docs/getting-started/wallets/screenshots/zedra-download.png differ diff --git a/docs/getting-started/wallets/zedra.md b/docs/getting-started/wallets/zedra.md new file mode 100644 index 0000000..403fa3c --- /dev/null +++ b/docs/getting-started/wallets/zedra.md @@ -0,0 +1,49 @@ +# Zedra Wallet + +Zedra is a browser wallet made for Cedra. + +1. Go to [zedra.app](https://zedra.app) +2. Click **Download** or **Install Extension** +3. Pick your browser and confirm + +![Zedra Download Page](./screenshots/zedra-download.png) + +### Create a wallet + +1. Click the Zedra icon in your browser toolbar +2. Click **Create Wallet** +3. Set a password +4. Write down your 12 words somewhere safe +5. Confirm your recovery phrase + +:::warning Keep your seed phrase safe +Anyone with your seed phrase can take your funds. Write it down on paper and store it offline. +::: + +### Pick a network + +1. Open Zedra +2. Click the network selector +3. Choose **Cedra Testnet** + +## Import an existing account + +Already have a Cedra account from the CLI? Import it: + +1. Click **Import Wallet** +2. Enter your seed phrase or private key + +Export your private key from CLI: +```bash +cedra config show-private-key --profile default +``` + +## Check it works + +1. You should see your address (starts with `0x`) +2. On testnet, grab some tokens from the [faucet](/getting-started/faucet) + +## Next steps + +- Get testnet tokens from the [Faucet](/getting-started/faucet) +- See [wallet integration](/sdks/typescript-sdk) for connecting wallets to your dApp diff --git a/sidebars.ts b/sidebars.ts index adb36b3..aa5ff95 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -72,6 +72,26 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; label: 'Build a Counter Contract', className: 'sidebar-badge-tutorial' }, + { + type: 'category', + label: 'Connect a Wallet', + link: { + type: 'doc', + id: 'getting-started/wallets/index', + }, + items: [ + { + type: 'doc', + id: 'getting-started/wallets/nightly', + label: 'Nightly Wallet' + }, + { + type: 'doc', + id: 'getting-started/wallets/zedra', + label: 'Zedra Wallet' + } + ] + }, { type: 'category', label: 'For Solidity Developers',