Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1c432ca17 | ||
|
|
243c661929 | ||
|
|
b64ffe369a | ||
|
|
30fafd16db | ||
|
|
99901dcfd7 | ||
|
|
f5072d882e | ||
|
|
e7f7a32dd4 | ||
|
|
d2098ad0bf | ||
|
|
d6239785cf | ||
|
|
20fdd5b6d7 | ||
|
|
438c019f01 | ||
|
|
61044013c8 | ||
|
|
e6213db8af | ||
|
|
c46b2597be | ||
|
|
9ff97688ce | ||
|
|
b4f5cc7b5a | ||
|
|
256850d1c6 | ||
|
|
acb2b9f85f | ||
|
|
6ac62ffe96 | ||
|
|
80f4bd4e53 | ||
|
|
a3072c4335 | ||
|
|
3277cf6e8e | ||
|
|
77938c4d5c | ||
|
|
3080a9baba | ||
|
|
6cf92c6b11 | ||
|
|
89ccc80d9c | ||
|
|
713ebe0a2d | ||
|
|
bfdac10dcc | ||
|
|
64964da22e | ||
|
|
260c2fd370 | ||
|
|
c61e258ec3 | ||
|
|
fdd344184b | ||
|
|
0c853e8709 | ||
|
|
7d47b4cde0 | ||
|
|
feae304da2 | ||
|
|
8f605d989c |
@@ -89,7 +89,7 @@ jobs:
|
||||
- run: pnpm test
|
||||
|
||||
- name: Code Coverage
|
||||
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
|
||||
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
|
||||
with:
|
||||
directory: packages/
|
||||
flags: packages
|
||||
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
|
||||
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
|
||||
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||
@@ -72,4 +72,4 @@ jobs:
|
||||
# ./location_of_script_within_repo/buildscript.sh
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
|
||||
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
- name: Create release Pull Request or publish to NPM
|
||||
id: changesets
|
||||
uses: changesets/action@746c25e23caa47dceb6a48ee85b4cbc5a9f5f293 #v1.4.0
|
||||
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba #v1.4.0
|
||||
with:
|
||||
publish: pnpm release
|
||||
version: pnpm version-packages
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
🤖 Codex Agent Guidelines for thirdweb-dev/js
|
||||
|
||||
Welcome, AI copilots! This guide captures the coding standards, architectural decisions, and workflow conventions that every automated agent (and human contributor!) must follow. Unless a rule explicitly targets a sub‑project, it applies repo‑wide.
|
||||
|
||||
⸻
|
||||
|
||||
1. GitHub Workflow & Etiquette
|
||||
|
||||
- Pull‑request titles must start with the affected workspace in brackets (e.g. [SDK], [Dashboard], [Portal], [Playground]).
|
||||
- Begin the PR description with a one‑sentence summary, then add a checklist of changes and reference issues with Fixes #123.
|
||||
- Keep commits small and topical – one logical change per commit.
|
||||
- Branch names should follow area/brief-topic (e.g. sdk/fix-gas-estimate). Avoid personal names.
|
||||
- Request at least one core maintainer review. Do not self‑merge unless you are the sole owner of that package.
|
||||
- All CI checks (type‑check, Biome, tests) must pass before merging.
|
||||
|
||||
⸻
|
||||
|
||||
2. Formatting & Linting
|
||||
|
||||
- Biome governs formatting and linting; its rules live in biome.json.
|
||||
- Run pnpm biome check --apply before committing.
|
||||
- Avoid editor‑specific configs; rely on the shared settings.
|
||||
|
||||
⸻
|
||||
|
||||
3. TypeScript Style Guide
|
||||
|
||||
- Write idiomatic TypeScript: explicit function declarations and return types.
|
||||
- Limit each file to one stateless, single‑responsibility function for clarity and testability.
|
||||
- Re‑use shared types from @/types or local types.ts barrels.
|
||||
- Prefer type aliases over interface except for nominal shapes.
|
||||
- Avoid any and unknown unless unavoidable; narrow generics whenever possible.
|
||||
- Choose composition over inheritance; leverage utility types (Partial, Pick, etc.).
|
||||
|
||||
⸻
|
||||
|
||||
4. Testing Strategy
|
||||
|
||||
- Co‑locate tests: foo.ts ↔ foo.test.ts.
|
||||
- Use real function invocations with stub data; avoid brittle mocks.
|
||||
- For network interactions, use Mock Service Worker (MSW) to intercept fetch/HTTP calls, mocking only scenarios that are hard to reproduce.
|
||||
- Keep tests deterministic and side‑effect free; Jest is pre‑configured.
|
||||
|
||||
⸻
|
||||
|
||||
5. packages/thirdweb
|
||||
|
||||
5.1 Public API Surface
|
||||
|
||||
- Export everything via the exports/ directory, grouped by feature.
|
||||
- Every public symbol must have comprehensive TSDoc:
|
||||
- Include at least one @example block that compiles.
|
||||
- Tag with one custom annotation (@beta, @internal, @experimental, etc.).
|
||||
- Comment only ambiguous logic; avoid restating TypeScript in prose.
|
||||
|
||||
5.2 Performance
|
||||
|
||||
- Lazy‑load heavy dependencies inside async paths to keep the initial bundle lean:
|
||||
|
||||
`const { jsPDF } = await import("jspdf");`
|
||||
|
||||
⸻
|
||||
|
||||
6. apps/dashboard & apps/playground
|
||||
|
||||
6.1 Core UI Toolkit
|
||||
|
||||
- Import primitives from @/components/ui/\_ (e.g. Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator).
|
||||
- Use NavLink for internal navigation so active states are handled automatically.
|
||||
- Group feature‑specific components under feature/components/\_ and expose a barrel index.ts when necessary.
|
||||
|
||||
6.2 Styling Conventions
|
||||
|
||||
- Tailwind CSS is the styling system – no inline styles or CSS modules.
|
||||
- Merge class names with cn() from @/lib/utils to keep conditional logic readable.
|
||||
- Stick to design tokens: backgrounds (bg-card), borders (border-border), muted text (text-muted-foreground), etc.
|
||||
- Expose a className prop on the root element of every component for overrides.
|
||||
|
||||
6.3 Component Patterns
|
||||
|
||||
- Server Components (run on the Node edge):
|
||||
-- Read cookies/headers with next/headers.
|
||||
-- Access server‑only environment variables or secrets.
|
||||
-- Perform heavy data fetching that should not ship to the client.
|
||||
-- Implement redirect logic with redirect() from next/navigation.
|
||||
-- Start files with import "server-only"; to prevent client bundling.
|
||||
- Client Components (run in the browser):
|
||||
-- Begin files with 'use client'; before imports.
|
||||
-- Handle interactive UI relying on React hooks (useState, useEffect, React Query, wallet hooks).
|
||||
-- Access browser APIs (localStorage, window, IntersectionObserver, etc.).
|
||||
-- Support fast transitions where data is prefetched on the client.
|
||||
|
||||
6.4 Data Fetching Guidelines
|
||||
|
||||
- Server Side
|
||||
-- Always call getAuthToken() to retrieve the JWT from cookies.
|
||||
-- Inject the token as an Authorization: Bearer header – never embed it in the URL.
|
||||
-- Return typed results (Project[], User[], …) – avoid any.
|
||||
- Client Side
|
||||
-- Wrap calls in React Query (@tanstack/react-query).
|
||||
-- Use descriptive, stable queryKeys for cache hits.
|
||||
-- Configure staleTime / cacheTime based on freshness requirements (default ≥ 60 s).
|
||||
-- Keep tokens secret by calling internal API routes or server actions.
|
||||
|
||||
⸻
|
||||
|
||||
7. Performance & Bundle Size
|
||||
|
||||
- Track bundle budgets via package.json#size-limit.
|
||||
- Lazy‑import optional features; avoid top‑level side‑effects.
|
||||
- De‑duplicate dependencies across packages through pnpm workspace hoisting.
|
||||
|
||||
⸻
|
||||
|
||||
8. Documentation & Developer Experience
|
||||
|
||||
- Each change in packages/\* should contain a changeset for the appropriate package, with the appropriate version bump
|
||||
|
||||
- patch for changes that don't impact the public API
|
||||
- minor for any new/modified public API
|
||||
|
||||
- Surface breaking changes prominently in PR descriptions.
|
||||
- For new UI components, add Storybook stories (\*.stories.tsx) alongside the code.
|
||||
@@ -71,7 +71,7 @@
|
||||
"ioredis": "^5.6.1",
|
||||
"ipaddr.js": "^2.2.0",
|
||||
"lucide-react": "0.503.0",
|
||||
"next": "15.3.1",
|
||||
"next": "15.3.2",
|
||||
"next-plausible": "^3.12.4",
|
||||
"next-themes": "^0.4.6",
|
||||
"nextjs-toploader": "^1.6.12",
|
||||
@@ -110,25 +110,25 @@
|
||||
"devDependencies": {
|
||||
"@chakra-ui/cli": "^2.4.1",
|
||||
"@chromatic-com/storybook": "3.2.6",
|
||||
"@next/bundle-analyzer": "15.3.1",
|
||||
"@next/eslint-plugin-next": "15.3.1",
|
||||
"@next/bundle-analyzer": "15.3.2",
|
||||
"@next/eslint-plugin-next": "15.3.2",
|
||||
"@playwright/test": "1.52.0",
|
||||
"@storybook/addon-essentials": "8.6.12",
|
||||
"@storybook/addon-interactions": "8.6.12",
|
||||
"@storybook/addon-links": "8.6.12",
|
||||
"@storybook/addon-onboarding": "8.6.12",
|
||||
"@storybook/addon-viewport": "8.6.12",
|
||||
"@storybook/blocks": "8.6.12",
|
||||
"@storybook/nextjs": "8.6.12",
|
||||
"@storybook/react": "8.6.12",
|
||||
"@storybook/test": "8.6.12",
|
||||
"@storybook/addon-essentials": "8.6.14",
|
||||
"@storybook/addon-interactions": "8.6.14",
|
||||
"@storybook/addon-links": "8.6.14",
|
||||
"@storybook/addon-onboarding": "8.6.14",
|
||||
"@storybook/addon-viewport": "8.6.14",
|
||||
"@storybook/blocks": "8.6.14",
|
||||
"@storybook/nextjs": "8.6.14",
|
||||
"@storybook/react": "8.6.14",
|
||||
"@storybook/test": "8.6.14",
|
||||
"@types/color": "4.2.0",
|
||||
"@types/node": "22.14.1",
|
||||
"@types/papaparse": "^5.3.15",
|
||||
"@types/papaparse": "^5.3.16",
|
||||
"@types/pluralize": "^0.0.33",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
"@types/react": "19.1.2",
|
||||
"@types/react-dom": "19.1.2",
|
||||
"@types/react": "19.1.4",
|
||||
"@types/react-dom": "19.1.5",
|
||||
"@types/react-table": "^7.7.20",
|
||||
"@types/spdx-correct": "^3.1.3",
|
||||
"@types/swagger-ui-react": "^5.18.0",
|
||||
@@ -140,10 +140,10 @@
|
||||
"eslint-config-biome": "1.9.4",
|
||||
"eslint-plugin-react-compiler": "19.0.0-beta-e993439-20250405",
|
||||
"eslint-plugin-storybook": "0.12.0",
|
||||
"knip": "5.50.5",
|
||||
"knip": "5.56.0",
|
||||
"next-sitemap": "^4.2.3",
|
||||
"postcss": "8.5.3",
|
||||
"storybook": "8.6.12",
|
||||
"storybook": "8.6.14",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.8.3"
|
||||
}
|
||||
|
||||
@@ -36,14 +36,6 @@ if (API_SERVER_SECRET) {
|
||||
|
||||
export const THIRDWEB_ENGINE_URL = process.env.THIRDWEB_ENGINE_URL || "";
|
||||
|
||||
if (THIRDWEB_ENGINE_URL) {
|
||||
experimental_taintUniqueValue(
|
||||
"Do not pass THIRDWEB_ENGINE_URL to the client",
|
||||
process,
|
||||
THIRDWEB_ENGINE_URL,
|
||||
);
|
||||
}
|
||||
|
||||
export const THIRDWEB_ACCESS_TOKEN = process.env.THIRDWEB_ACCESS_TOKEN || "";
|
||||
|
||||
if (THIRDWEB_ACCESS_TOKEN) {
|
||||
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
NEXT_PUBLIC_IPFS_GATEWAY_URL,
|
||||
} from "@/constants/public-envs";
|
||||
import {
|
||||
THIRDWEB_BRIDGE_URL,
|
||||
THIRDWEB_BUNDLER_DOMAIN,
|
||||
THIRDWEB_INAPP_WALLET_DOMAIN,
|
||||
THIRDWEB_INSIGHT_API_DOMAIN,
|
||||
@@ -35,6 +36,7 @@ export function getConfiguredThirdwebClient(options: {
|
||||
social: THIRDWEB_SOCIAL_API_DOMAIN,
|
||||
bundler: THIRDWEB_BUNDLER_DOMAIN,
|
||||
insight: THIRDWEB_INSIGHT_API_DOMAIN,
|
||||
bridge: THIRDWEB_BRIDGE_URL,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ async function getRoutesToRender(params: SearchParams) {
|
||||
}
|
||||
}
|
||||
// Temporary, will update this after the /routes endpoint
|
||||
let routes = await getRoutes({ limit: 100_000 });
|
||||
let routes = await getRoutes({ limit: 500_000 });
|
||||
|
||||
const totalCount = routes.length;
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ function useChainStatswithRPC(_rpcUrl: string) {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
jsonrpc: "2.0",
|
||||
method: "eth_blockNumber",
|
||||
params: [],
|
||||
method: "eth_getBlockByNumber",
|
||||
params: ["latest", false],
|
||||
id: 1,
|
||||
}),
|
||||
});
|
||||
@@ -41,9 +41,12 @@ function useChainStatswithRPC(_rpcUrl: string) {
|
||||
const json = await res.json();
|
||||
const latency = (performance.now() - startTimeStamp).toFixed(0);
|
||||
|
||||
const blockNumber = Number.parseInt(json.result.number, 16);
|
||||
const blockGasLimit = Number.parseInt(json.result.gasLimit, 16);
|
||||
return {
|
||||
latency,
|
||||
blockNumber: Number.parseInt(json.result, 16),
|
||||
blockNumber,
|
||||
blockGasLimit,
|
||||
};
|
||||
},
|
||||
refetchInterval: (query) => {
|
||||
@@ -115,6 +118,21 @@ export function ChainLiveStats(props: { rpc: string }) {
|
||||
</div>
|
||||
)}
|
||||
</PrimaryInfoItem>
|
||||
|
||||
{/* Block Gas Limit */}
|
||||
<PrimaryInfoItem title="Block Gas Limit" titleIcon={<PulseDot />}>
|
||||
{stats.isError ? (
|
||||
<p className="fade-in-0 animate-in text-destructive-text">N/A</p>
|
||||
) : stats.data ? (
|
||||
<p className="fade-in-0 animate-in">
|
||||
{stats.data.blockGasLimit ?? "N/A"}
|
||||
</p>
|
||||
) : (
|
||||
<div className="flex h-[28px] w-[140px] py-1">
|
||||
<Skeleton className="h-full w-full" />
|
||||
</div>
|
||||
)}
|
||||
</PrimaryInfoItem>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 123 KiB |
@@ -8,6 +8,8 @@ import alephZeroBaner from "./temp-assets/AlephZeroBanner.jpg";
|
||||
import alephZeroCTA from "./temp-assets/AlephZeroCTA.jpg";
|
||||
import cotiBanner from "./temp-assets/COTI_Banner.jpg";
|
||||
import cotiCTA from "./temp-assets/COTI_CTA.jpg";
|
||||
import eduBanner from "./temp-assets/EDUBanner.jpeg";
|
||||
import eduCTA from "./temp-assets/EDUCTA.png";
|
||||
import hemiSepoliaBanner from "./temp-assets/HemiBanner.png";
|
||||
import hemiSepoliaCTA from "./temp-assets/HemiCTA.png";
|
||||
import ancient8Banner from "./temp-assets/ancient8-banner.png";
|
||||
@@ -376,6 +378,31 @@ const chainMetaRecord = {
|
||||
about:
|
||||
"Monetize your passion, your way. Discover the freedom to grow with our creator-focused platform.",
|
||||
},
|
||||
//EDUMainnet
|
||||
41923: {
|
||||
headerImgUrl: eduBanner.src,
|
||||
about:
|
||||
"Education On-Chain - A Layer 3 blockchain preparing students and learners for the future of work while advancing onchain education finance (EduFi).",
|
||||
cta: {
|
||||
backgroundImageUrl: eduCTA.src,
|
||||
title: "Education On-Chain",
|
||||
buttonLink: "https://educhain.xyz/",
|
||||
buttonText: "Learn More",
|
||||
},
|
||||
},
|
||||
//EDU Testnet <Open Campus Codex>
|
||||
656476: {
|
||||
headerImgUrl: eduBanner.src,
|
||||
about:
|
||||
"Education On-Chain - A Layer 3 blockchain preparing students and learners for the future of work while advancing onchain education finance (EduFi).",
|
||||
cta: {
|
||||
backgroundImageUrl: eduCTA.src,
|
||||
title: "Education On-Chain",
|
||||
buttonLink: "https://educhain.xyz/",
|
||||
buttonText: "Learn More",
|
||||
},
|
||||
},
|
||||
|
||||
//Etherlink Testnet
|
||||
128123: {
|
||||
headerImgUrl: etherlinkBanner.src,
|
||||
|
||||
@@ -273,14 +273,14 @@ function CreateWebhookButton(props: PropsWithChildren<PayWebhooksPageProps>) {
|
||||
/>
|
||||
|
||||
<section>
|
||||
<FormLabel>Secret Key</FormLabel>
|
||||
<FormLabel>Webhook Secret</FormLabel>
|
||||
|
||||
<CopyTextButton
|
||||
textToCopy={secret}
|
||||
className="!h-auto my-1 w-full justify-between truncate bg-card px-3 py-3 font-mono"
|
||||
textToShow={shortenString(secret)}
|
||||
copyIconPosition="right"
|
||||
tooltip="Copy Secret Key"
|
||||
tooltip="Copy Webhook Secret"
|
||||
/>
|
||||
<FormDescription>
|
||||
Passed as a bearer token in all webhook requests to verify the
|
||||
@@ -293,7 +293,7 @@ function CreateWebhookButton(props: PropsWithChildren<PayWebhooksPageProps>) {
|
||||
setSecretStored(!!v);
|
||||
}}
|
||||
/>
|
||||
I confirm that I've securely stored my secret key
|
||||
I confirm that I've securely stored my webhook secret
|
||||
</CheckboxWithLabel>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ export function TryItOut() {
|
||||
const sdkExample = () => `\
|
||||
import { createThirdwebClient, sendTransaction, getContract, Engine } from "thirdweb";
|
||||
import { baseSepolia } from "thirdweb/chains";
|
||||
import { claimTo } from "thirdweb/extensions/1155";
|
||||
import { claimTo } from "thirdweb/extensions/erc1155";
|
||||
|
||||
// Create a thirdweb client
|
||||
const client = createThirdwebClient({
|
||||
@@ -228,7 +228,7 @@ const txHash = await Engine.waitForTransactionHash({
|
||||
client,
|
||||
transactionId,
|
||||
});
|
||||
console.log("Transaction hash:", result.transactionHash);
|
||||
console.log("Transaction hash:", txHash);
|
||||
`;
|
||||
|
||||
const curlExample = () => `\
|
||||
|
||||
@@ -95,12 +95,12 @@ function BackendWalletsSection(props: {
|
||||
</UnderlineLink>{" "}
|
||||
tab, or{" "}
|
||||
<TrackedUnderlineLink
|
||||
href="https://portal.thirdweb.com/infrastructure/engine/features/backend-wallets"
|
||||
href="https://portal.thirdweb.com/engine/v2/configure-wallets/server-wallet"
|
||||
target="_blank"
|
||||
label="learn-more"
|
||||
category="engine"
|
||||
>
|
||||
learn more about backend wallets.
|
||||
learn more about server wallets.
|
||||
</TrackedUnderlineLink>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -178,7 +178,7 @@ export const InAppWalletSettingsUI: React.FC<
|
||||
const hasCustomBranding =
|
||||
!!config.applicationImageUrl?.length || !!config.applicationName?.length;
|
||||
|
||||
const authRequiredPlan = "accelerate";
|
||||
const authRequiredPlan = "growth";
|
||||
const brandingRequiredPlan = "starter";
|
||||
|
||||
// accelerate or higher plan required
|
||||
|
||||
@@ -8,4 +8,4 @@ export const DEFAULT_FEE_RECIPIENT =
|
||||
"0x1af20c6b23373350ad464700b5965ce4b0d2ad94";
|
||||
|
||||
export const DEFAULT_FEE_BPS = 250;
|
||||
export const DEFAULT_FEE_BPS_NEW = 150;
|
||||
export const DEFAULT_FEE_BPS_NEW = 200;
|
||||
|
||||
@@ -26,3 +26,6 @@ export const THIRDWEB_INSIGHT_API_DOMAIN =
|
||||
|
||||
export const THIRDWEB_ANALYTICS_DOMAIN =
|
||||
process.env.NEXT_PUBLIC_ANALYTICS_URL || "c.thirdweb-dev.com";
|
||||
|
||||
export const THIRDWEB_BRIDGE_URL =
|
||||
process.env.NEXT_PUBLIC_BRIDGE_URL || "bridge.thirdweb-dev.com";
|
||||
|
||||
@@ -43,6 +43,7 @@ export const TEAM_PLANS: Record<
|
||||
"$100 Usage Credits",
|
||||
"Email support",
|
||||
"SMS Onboarding",
|
||||
"Custom Wallet Branding & Auth",
|
||||
"30d User Analytics",
|
||||
"Gas grant for transactions",
|
||||
],
|
||||
@@ -55,8 +56,6 @@ export const TEAM_PLANS: Record<
|
||||
description: "For funded startups and mid-size businesses.",
|
||||
features: [
|
||||
"$250 Usage Credits",
|
||||
"Custom Wallet Branding & Auth",
|
||||
"Dedicated Engine Server",
|
||||
"24hr Guaranteed Support",
|
||||
"90d User Analytics",
|
||||
],
|
||||
@@ -68,7 +67,7 @@ export const TEAM_PLANS: Record<
|
||||
subTitle: "Everything in Accelerate, plus:",
|
||||
trialPeriodDays: 0,
|
||||
features: [
|
||||
"$400 Usage Credits",
|
||||
"$500 Usage Credits",
|
||||
"12hr Guaranteed Response",
|
||||
"Slack Channel Support",
|
||||
"Whitelabel Infra Support",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"jose": "6.0.10",
|
||||
"lucide-react": "0.503.0",
|
||||
"next": "15.3.1",
|
||||
"next": "15.3.2",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
@@ -38,10 +38,10 @@
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@types/node": "22.14.1",
|
||||
"@types/react": "19.1.2",
|
||||
"@types/react-dom": "19.1.2",
|
||||
"@types/react": "19.1.4",
|
||||
"@types/react-dom": "19.1.5",
|
||||
"eslint": "9.24.0",
|
||||
"eslint-config-next": "15.3.1",
|
||||
"eslint-config-next": "15.3.2",
|
||||
"postcss": "8.5.3",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.8.3"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { setThirdwebDomains } from "thirdweb/utils";
|
||||
import {
|
||||
THIRDWEB_BRIDGE_DOMAIN,
|
||||
THIRDWEB_BUNDLER_DOMAIN,
|
||||
THIRDWEB_INAPP_WALLET_DOMAIN,
|
||||
THIRDWEB_PAY_DOMAIN,
|
||||
@@ -19,6 +20,7 @@ export function initDevMode() {
|
||||
storage: THIRDWEB_STORAGE_DOMAIN,
|
||||
social: THIRDWEB_SOCIAL_API_DOMAIN,
|
||||
bundler: THIRDWEB_BUNDLER_DOMAIN,
|
||||
bridge: THIRDWEB_BRIDGE_DOMAIN,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,3 +16,6 @@ export const THIRDWEB_SOCIAL_API_DOMAIN =
|
||||
|
||||
export const THIRDWEB_BUNDLER_DOMAIN =
|
||||
process.env.NEXT_PUBLIC_BUNDLER_URL || "bundler.thirdweb-dev.com";
|
||||
|
||||
export const THIRDWEB_BRIDGE_DOMAIN =
|
||||
process.env.NEXT_PUBLIC_BRIDGE_URL || "bridge.thirdweb-dev.com";
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "4.1.0",
|
||||
"lucide-react": "0.503.0",
|
||||
"next": "15.3.1",
|
||||
"next": "15.3.2",
|
||||
"next-themes": "^0.4.6",
|
||||
"nextjs-toploader": "^1.6.12",
|
||||
"openapi-types": "^12.1.3",
|
||||
@@ -51,14 +51,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "22.14.1",
|
||||
"@types/react": "19.1.2",
|
||||
"@types/react-dom": "19.1.2",
|
||||
"@types/react": "19.1.4",
|
||||
"@types/react-dom": "19.1.5",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-config-biome": "1.9.4",
|
||||
"eslint-config-next": "15.3.1",
|
||||
"eslint-config-next": "15.3.2",
|
||||
"eslint-plugin-react-compiler": "19.0.0-beta-e993439-20250405",
|
||||
"knip": "5.50.5",
|
||||
"knip": "5.56.0",
|
||||
"postcss": "8.5.3",
|
||||
"tailwindcss": "3.4.17",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
@@ -109,7 +109,7 @@ function modifyParametersForPlayground(_parameters: BlueprintParameter[]) {
|
||||
const parameters = [..._parameters];
|
||||
|
||||
// make chain query param required - its not required in open api spec - because it either has to be set in subdomain or as a query param
|
||||
const chainIdParameter = parameters.find((p) => p.name === "chain");
|
||||
const chainIdParameter = parameters.find((p) => p.name === "chain_id");
|
||||
if (chainIdParameter) {
|
||||
chainIdParameter.required = true;
|
||||
}
|
||||
@@ -122,6 +122,12 @@ function modifyParametersForPlayground(_parameters: BlueprintParameter[]) {
|
||||
parameters.splice(clientIdParameterIndex, 1);
|
||||
}
|
||||
|
||||
// remove the chain parameter if it is present
|
||||
const chainParameterIndex = parameters.findIndex((p) => p.name === "chain");
|
||||
if (chainParameterIndex !== -1) {
|
||||
parameters.splice(chainParameterIndex, 1);
|
||||
}
|
||||
|
||||
return parameters;
|
||||
}
|
||||
|
||||
@@ -163,7 +169,7 @@ function BlueprintPlaygroundUI(props: {
|
||||
values[param.name] = Math.floor(
|
||||
(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000) / 1000,
|
||||
);
|
||||
} else if (param.name === "chain") {
|
||||
} else if (param.name === "chain_id") {
|
||||
values[param.name] = [];
|
||||
} else {
|
||||
values[param.name] = "";
|
||||
@@ -466,7 +472,7 @@ function ParameterSection(props: {
|
||||
key={param.name}
|
||||
className={cn(
|
||||
"grid items-center",
|
||||
param.name === "chain"
|
||||
param.name === "chain_id"
|
||||
? "grid-cols-1 lg:grid-cols-2"
|
||||
: "grid-cols-2",
|
||||
)}
|
||||
@@ -485,14 +491,14 @@ function ParameterSection(props: {
|
||||
)}
|
||||
</div>
|
||||
<div className="relative">
|
||||
{param.name === "chain" ? (
|
||||
{param.name === "chain_id" ? (
|
||||
<MultiNetworkSelector
|
||||
selectedBadgeClassName="bg-background"
|
||||
selectedChainIds={
|
||||
props.form.watch("chain") as number[]
|
||||
props.form.watch("chain_id") as number[]
|
||||
}
|
||||
onChange={(chainIds) => {
|
||||
props.form.setValue("chain", chainIds, {
|
||||
props.form.setValue("chain_id", chainIds, {
|
||||
shouldValidate: true,
|
||||
shouldDirty: true,
|
||||
});
|
||||
@@ -821,6 +827,9 @@ function openAPIV3ParamToZodFormSchema(
|
||||
function createParametersFormSchema(parameters: BlueprintParameter[]) {
|
||||
const shape: z.ZodRawShape = {};
|
||||
for (const param of parameters) {
|
||||
if (param.deprecated) {
|
||||
continue;
|
||||
}
|
||||
const paramSchema = openAPIV3ParamToZodFormSchema(
|
||||
param.schema,
|
||||
!!param.required,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import {
|
||||
Breadcrumb,
|
||||
BreadcrumbItem,
|
||||
@@ -5,6 +6,7 @@ import {
|
||||
BreadcrumbList,
|
||||
BreadcrumbSeparator,
|
||||
} from "@/components/ui/breadcrumb";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { redirect } from "next/navigation";
|
||||
import { THIRDWEB_CLIENT } from "../../../lib/client";
|
||||
import { isProd } from "../../../lib/env";
|
||||
@@ -53,8 +55,28 @@ export default async function Page(props: {
|
||||
<div>
|
||||
<Breadcrumbs />
|
||||
<h1 className="mt-3 mb-6 font-semibold text-2xl tracking-tight lg:text-3xl">
|
||||
{title}
|
||||
<div className="flex items-center gap-2">
|
||||
<span
|
||||
className={cn(
|
||||
pathMetadata.deprecated && "text-muted-foreground line-through",
|
||||
)}
|
||||
>
|
||||
{title}
|
||||
</span>
|
||||
{pathMetadata.deprecated && (
|
||||
<Badge variant="destructive" className="text-xs">
|
||||
Deprecated
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
</h1>
|
||||
{pathMetadata.deprecated && (
|
||||
<div className="mt-3 mb-6">
|
||||
<div className="flex items-center gap-2">
|
||||
<span>{pathMetadata.description}</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<BlueprintPlayground
|
||||
key={searchParams.path}
|
||||
metadata={pathMetadata}
|
||||
|
||||
@@ -9,14 +9,17 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get events",
|
||||
path: "/v1/events",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get contract events",
|
||||
path: "/v1/events/{contractAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get contract events with specific signature",
|
||||
path: "/v1/events/{contractAddress}/{signature}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -27,14 +30,17 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get transactions",
|
||||
path: "/v1/transactions",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get contract transactions",
|
||||
path: "/v1/transactions/{contractAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get contract transactions with specific signature",
|
||||
path: "/v1/transactions/{contractAddress}/{signature}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -45,6 +51,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get blocks",
|
||||
path: "/v1/blocks",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -55,38 +62,47 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get token transfers by transaction",
|
||||
path: "/v1/tokens/transfers/transaction/{transaction_hash}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get token transfers by contract",
|
||||
path: "/v1/tokens/transfers/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get token transfers",
|
||||
path: "/v1/tokens/transfers",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get ERC-20 balances by address",
|
||||
path: "/v1/tokens/erc20/{ownerAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get ERC-721 balances by address",
|
||||
path: "/v1/tokens/erc721/{ownerAddress}",
|
||||
deprecated: true,
|
||||
},
|
||||
{
|
||||
name: "Get ERC-1155 balances by address",
|
||||
path: "/v1/tokens/erc1155/{ownerAddress}",
|
||||
deprecated: true,
|
||||
},
|
||||
{
|
||||
name: "Get supported tokens for price data",
|
||||
path: "/v1/tokens/price/supported",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get token price",
|
||||
path: "/v1/tokens/price",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Token lookup",
|
||||
path: "/v1/tokens/lookup",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -97,54 +113,67 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get NFT balances by address",
|
||||
path: "/v1/nfts/balance/{ownerAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get collection",
|
||||
path: "/v1/nfts/collections/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFTs by owner",
|
||||
path: "/v1/nfts",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT owners by contract",
|
||||
path: "/v1/nfts/owners/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT owners by token",
|
||||
path: "/v1/nfts/owners/{contract_address}/{token_id}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT transfers",
|
||||
path: "/v1/nfts/transfers",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT transfers by transaction",
|
||||
path: "/v1/nfts/transfers/transaction/{transaction_hash}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT transfers by contract",
|
||||
path: "/v1/nfts/transfers/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFTs by contract",
|
||||
path: "/v1/nfts/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT transfers by token",
|
||||
path: "/v1/nfts/transfers/{contract_address}/{token_id}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get NFT by token ID",
|
||||
path: "/v1/nfts/{contract_address}/{token_id}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Force refresh collection metadata",
|
||||
path: "/v1/nfts/metadata/refresh/{contract_address}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Force refresh token metadata",
|
||||
path: "/v1/nfts/metadata/refresh/{contract_address}/{token_id}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -155,6 +184,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get wallet transactions",
|
||||
path: "/v1/wallets/{wallet_address}/transactions",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -165,10 +195,12 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Get contract ABI",
|
||||
path: "/v1/contracts/abi/{contractAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
{
|
||||
name: "Get contract metadata",
|
||||
path: "/v1/contracts/metadata/{contractAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -179,6 +211,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Decode logs and transactions",
|
||||
path: "/v1/decode/{contractAddress}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -189,6 +222,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
|
||||
{
|
||||
name: "Resolve",
|
||||
path: "/v1/resolve/{input}",
|
||||
deprecated: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -29,6 +29,7 @@ export default function Page() {
|
||||
return {
|
||||
name: pathInfo.name,
|
||||
link: `/insight/${blueprint.id}?path=${pathInfo.path}`,
|
||||
deprecated: pathInfo.deprecated,
|
||||
};
|
||||
})}
|
||||
/>
|
||||
@@ -41,7 +42,7 @@ export default function Page() {
|
||||
|
||||
function BlueprintSection(props: {
|
||||
title: string;
|
||||
blueprints: { name: string; link: string }[];
|
||||
blueprints: { name: string; link: string; deprecated?: boolean }[];
|
||||
}) {
|
||||
return (
|
||||
<div className="overflow-hidden rounded-lg border bg-card">
|
||||
@@ -60,10 +61,19 @@ function BlueprintSection(props: {
|
||||
<span className="flex items-center gap-3">
|
||||
<Link
|
||||
href={item.link}
|
||||
className="before:absolute before:inset-0"
|
||||
className={`${
|
||||
item.deprecated
|
||||
? "line-through before:absolute before:inset-0"
|
||||
: ""
|
||||
}`}
|
||||
>
|
||||
{item.name}
|
||||
</Link>
|
||||
{item.deprecated && (
|
||||
<span className="rounded bg-destructive/10 px-2 py-0.5 font-medium text-destructive text-xs">
|
||||
Deprecated
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
@@ -6,6 +6,9 @@ import type { OpenAPIV3 } from "openapi-types";
|
||||
export type BlueprintParameter = OpenAPIV3.ParameterObject;
|
||||
export type BlueprintPathMetadata = OpenAPIV3.PathItemObject;
|
||||
|
||||
const THIRDWEB_INSIGHT_API_DOMAIN =
|
||||
process.env.NEXT_PUBLIC_INSIGHT_URL || "insight.thirdweb.com";
|
||||
|
||||
export type BlueprintListItem = {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -17,6 +20,7 @@ export type BlueprintListItem = {
|
||||
name: string;
|
||||
path: string;
|
||||
method: string;
|
||||
deprecated: boolean;
|
||||
}[];
|
||||
};
|
||||
|
||||
@@ -33,6 +37,7 @@ export type MinimalBlueprintSpec = {
|
||||
paths: {
|
||||
name: string;
|
||||
path: string;
|
||||
deprecated: boolean;
|
||||
}[];
|
||||
};
|
||||
|
||||
@@ -40,7 +45,7 @@ export async function fetchBlueprintSpec(params: {
|
||||
blueprintId: string;
|
||||
}) {
|
||||
const res = await fetch(
|
||||
`https://insight.thirdweb.com/v1/blueprints/${params.blueprintId}`,
|
||||
`https://${THIRDWEB_INSIGHT_API_DOMAIN}/v1/blueprints/${params.blueprintId}`,
|
||||
);
|
||||
|
||||
if (!res.ok) {
|
||||
|
||||
@@ -141,6 +141,7 @@ export function getSidebarLinks() {
|
||||
return {
|
||||
name: pathInfo.name,
|
||||
href: `/insight/${blueprint.id}?path=${pathInfo.path}`,
|
||||
crossedOut: pathInfo.deprecated,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
import { useTheme } from "next-themes";
|
||||
import { getContract } from "thirdweb";
|
||||
import { base, polygon } from "thirdweb/chains";
|
||||
import { prepareTransaction } from "thirdweb";
|
||||
import { base, baseSepolia, polygon } from "thirdweb/chains";
|
||||
import { transfer } from "thirdweb/extensions/erc20";
|
||||
import { claimTo, getNFT } from "thirdweb/extensions/erc1155";
|
||||
import {
|
||||
@@ -12,6 +13,7 @@ import {
|
||||
useActiveAccount,
|
||||
useReadContract,
|
||||
} from "thirdweb/react";
|
||||
import { toWei } from "thirdweb/utils";
|
||||
import { THIRDWEB_CLIENT } from "../../lib/client";
|
||||
import { StyledConnectButton } from "../styled-connect-button";
|
||||
|
||||
@@ -99,6 +101,27 @@ export function PayTransactionButtonPreview() {
|
||||
>
|
||||
Buy VIP Pass
|
||||
</TransactionButton>
|
||||
<div className="h-10" />
|
||||
<div className="flex items-center gap-2">Price: 0.1 ETH</div>
|
||||
<TransactionButton
|
||||
transaction={() => {
|
||||
if (!account) throw new Error("No active account");
|
||||
return prepareTransaction({
|
||||
chain: baseSepolia,
|
||||
client: THIRDWEB_CLIENT,
|
||||
to: account.address,
|
||||
value: toWei("0.1"),
|
||||
});
|
||||
}}
|
||||
onError={(e) => {
|
||||
console.error(e);
|
||||
}}
|
||||
payModal={{
|
||||
theme: theme === "light" ? "light" : "dark",
|
||||
}}
|
||||
>
|
||||
Send 0.1 ETH
|
||||
</TransactionButton>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -11,6 +11,7 @@ import { CustomAccordion } from "./CustomAccordion";
|
||||
export type LinkMeta = {
|
||||
name: string;
|
||||
href: string;
|
||||
crossedOut?: boolean;
|
||||
};
|
||||
|
||||
export type LinkGroup = {
|
||||
@@ -83,6 +84,7 @@ function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void }) {
|
||||
className={clsx(
|
||||
"block overflow-hidden text-ellipsis py-1 font-medium transition-colors duration-300 hover:text-foreground lg:text-base",
|
||||
isActive ? "text-foreground" : "text-muted-foreground",
|
||||
"crossedOut" in link && link.crossedOut && "line-through",
|
||||
)}
|
||||
>
|
||||
{link.name}
|
||||
|
||||
@@ -10,6 +10,7 @@ setThirdwebDomains({
|
||||
pay: process.env.NEXT_PUBLIC_PAY_URL,
|
||||
analytics: process.env.NEXT_PUBLIC_ANALYTICS_URL,
|
||||
insight: process.env.NEXT_PUBLIC_INSIGHT_URL,
|
||||
bridge: process.env.NEXT_PUBLIC_BRIDGE_URL,
|
||||
});
|
||||
|
||||
const isDev =
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
"@thirdweb-dev/chains",
|
||||
"@thirdweb-dev/wallets",
|
||||
"thirdweb",
|
||||
"@types/mdx",
|
||||
"@types/flexsearch"
|
||||
],
|
||||
"entry": [
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@dirtycajunrice/klee": "^1.0.6",
|
||||
"@mdx-js/loader": "^2.3.0",
|
||||
"@mdx-js/react": "^2.3.0",
|
||||
"@next/mdx": "15.3.1",
|
||||
"@next/mdx": "15.3.2",
|
||||
"@radix-ui/react-dialog": "1.1.10",
|
||||
"@radix-ui/react-dropdown-menu": "^2.1.11",
|
||||
"@radix-ui/react-select": "^2.2.2",
|
||||
@@ -37,7 +37,7 @@
|
||||
"github-slugger": "^2.0.0",
|
||||
"he": "^1.2.0",
|
||||
"lucide-react": "0.503.0",
|
||||
"next": "15.3.1",
|
||||
"next": "15.3.2",
|
||||
"next-themes": "^0.4.6",
|
||||
"nextjs-toploader": "^1.6.12",
|
||||
"node-html-markdown": "^1.3.0",
|
||||
@@ -57,13 +57,13 @@
|
||||
"typedoc-better-json": "0.9.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "15.3.1",
|
||||
"@next/eslint-plugin-next": "15.3.2",
|
||||
"@types/flexsearch": "^0.7.42",
|
||||
"@types/he": "^1.2.3",
|
||||
"@types/mdx": "^2.0.13",
|
||||
"@types/node": "22.14.1",
|
||||
"@types/react": "19.1.2",
|
||||
"@types/react-dom": "19.1.2",
|
||||
"@types/react": "19.1.4",
|
||||
"@types/react-dom": "19.1.5",
|
||||
"@types/react-html-parser": "^2.0.7",
|
||||
"@types/tryghost__content-api": "^1.3.16",
|
||||
"@typescript-eslint/eslint-plugin": "7.14.1",
|
||||
@@ -71,10 +71,10 @@
|
||||
"autoprefixer": "^10.4.21",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-config-biome": "1.9.4",
|
||||
"eslint-plugin-mdx": "3.4.0",
|
||||
"eslint-plugin-mdx": "3.4.2",
|
||||
"eslint-plugin-svg-jsx": "^1.2.4",
|
||||
"eslint-plugin-tailwindcss": "^3.18.0",
|
||||
"knip": "5.50.5",
|
||||
"knip": "5.56.0",
|
||||
"next-sitemap": "^4.2.3",
|
||||
"postcss": "8.5.3",
|
||||
"tailwindcss": "3.4.17",
|
||||
|
||||
@@ -1046,6 +1046,27 @@ const v4ToV5Redirects = {
|
||||
"/references/wallets/:path*": "/typescript/v5/supported-wallets",
|
||||
};
|
||||
|
||||
const payRedirects = {
|
||||
"/connect/pay/overview": "/pay",
|
||||
"/connect/pay/onramp-providers": "/pay/onramp-providers",
|
||||
"/connect/pay/fees": "/pay/fees",
|
||||
"/connect/pay/get-started": "/pay/get-started",
|
||||
"/connect/pay/guides/accept-direct-payments":
|
||||
"/pay/guides/accept-direct-payments",
|
||||
"/connect/pay/guides/build-a-custom-experience":
|
||||
"/pay/guides/build-a-custom-experience",
|
||||
"/connect/pay/guides/cross-chain-swapping":
|
||||
"/pay/guides/cross-chain-swapping",
|
||||
"/connect/pay/customization/connectbutton":
|
||||
"/pay/customization/connectbutton",
|
||||
"/connect/pay/customization/payembed": "/pay/customization/payembed",
|
||||
"/connect/pay/customization/send-transaction":
|
||||
"/pay/customization/send-transaction",
|
||||
"/connect/pay/webhooks": "/pay/webhooks",
|
||||
"/connect/pay/testing-pay": "/pay/testing-pay",
|
||||
"/connect/pay/faqs": "/pay/faqs",
|
||||
};
|
||||
|
||||
/**
|
||||
* @type {import('next').NextConfig['redirects']}
|
||||
*/
|
||||
@@ -1066,6 +1087,7 @@ export const redirects = async () => {
|
||||
...createRedirects(unrealEngineRedirects),
|
||||
...createRedirects(v4ToV5Redirects),
|
||||
...createRedirects(glossaryRedirects),
|
||||
...createRedirects(payRedirects),
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -26,6 +26,10 @@ import {
|
||||
import { ThirdwebIcon } from "../icons/thirdweb";
|
||||
|
||||
const links = [
|
||||
{
|
||||
name: "Bridge",
|
||||
href: "/pay",
|
||||
},
|
||||
{
|
||||
name: "Engine",
|
||||
href: "/engine",
|
||||
@@ -118,9 +122,13 @@ export const connectLinks: Array<{
|
||||
] as const;
|
||||
|
||||
const apisLinks = [
|
||||
{
|
||||
name: "Nebula",
|
||||
href: "/nebula/api-reference",
|
||||
},
|
||||
{
|
||||
name: "Insight",
|
||||
href: "https://insight-api.thirdweb.com/reference",
|
||||
href: "https://insight.thirdweb.com/reference",
|
||||
},
|
||||
{
|
||||
name: "Engine Cloud",
|
||||
@@ -135,11 +143,7 @@ const apisLinks = [
|
||||
const supportLinks = [
|
||||
{
|
||||
name: "Get thirdweb support",
|
||||
href: "https://thirdweb.com/support",
|
||||
},
|
||||
{
|
||||
name: "Knowledge Base",
|
||||
href: "https://support.thirdweb.com",
|
||||
href: "/knowledge-base",
|
||||
},
|
||||
{
|
||||
name: "Contact Sales",
|
||||
|
||||
@@ -9,7 +9,6 @@ const inAppSlug = "/connect/in-app-wallet";
|
||||
const walletSlug = "/connect/wallet";
|
||||
const aAslug = "/connect/account-abstraction";
|
||||
const authSlug = "/connect/auth";
|
||||
const paySlug = "/connect/pay";
|
||||
|
||||
export const sidebar: SideBar = {
|
||||
name: "Connect",
|
||||
@@ -229,100 +228,6 @@ export const sidebar: SideBar = {
|
||||
],
|
||||
},
|
||||
{ separator: true },
|
||||
{
|
||||
name: "Universal Bridge",
|
||||
isCollapsible: false,
|
||||
links: [
|
||||
{
|
||||
name: "Overview",
|
||||
href: `${paySlug}/overview`,
|
||||
},
|
||||
{
|
||||
name: "Supported Routes",
|
||||
href: "https://thirdweb.com/routes",
|
||||
},
|
||||
{
|
||||
name: "Onramp Providers",
|
||||
href: `${paySlug}/onramp-providers`,
|
||||
},
|
||||
{
|
||||
name: "Service Fees",
|
||||
href: `${paySlug}/fees`,
|
||||
},
|
||||
{
|
||||
name: "API",
|
||||
href: "https://bridge.thirdweb.com/reference",
|
||||
},
|
||||
{
|
||||
name: "Get Started",
|
||||
href: `${paySlug}/get-started`,
|
||||
expanded: true,
|
||||
links: [
|
||||
{
|
||||
name: "ConnectButton",
|
||||
href: `${paySlug}/get-started#option-1-connectbutton`,
|
||||
},
|
||||
{
|
||||
name: "Embed",
|
||||
href: `${paySlug}/get-started#option-2-embed-pay`,
|
||||
},
|
||||
{
|
||||
name: "Send a Transaction",
|
||||
href: `${paySlug}/get-started#option-3-send-a-transaction-with-pay`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Tutorials",
|
||||
isCollapsible: true,
|
||||
|
||||
links: [
|
||||
{
|
||||
name: "Accept Direct Payments",
|
||||
href: `${paySlug}/guides/accept-direct-payments`,
|
||||
},
|
||||
{
|
||||
name: "Build a Custom Onramp Experience",
|
||||
href: `${paySlug}/guides/build-a-custom-experience`,
|
||||
},
|
||||
{
|
||||
name: "Cross-Chain Swapping",
|
||||
href: `${paySlug}/guides/cross-chain-swapping`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Customization",
|
||||
isCollapsible: true,
|
||||
links: [
|
||||
{
|
||||
name: "ConnectButton",
|
||||
href: `${paySlug}/customization/connectbutton`,
|
||||
},
|
||||
{
|
||||
name: "PayEmbed",
|
||||
href: `${paySlug}/customization/payembed`,
|
||||
},
|
||||
{
|
||||
name: "useSendTransaction",
|
||||
href: `${paySlug}/customization/send-transaction`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Webhooks",
|
||||
href: `${paySlug}/webhooks`,
|
||||
},
|
||||
{
|
||||
name: "Developer Mode",
|
||||
href: `${paySlug}/testing-pay`,
|
||||
},
|
||||
{
|
||||
name: "FAQs",
|
||||
href: `${paySlug}/faqs`,
|
||||
},
|
||||
],
|
||||
},
|
||||
// User identity
|
||||
{
|
||||
name: "User Identity",
|
||||
|
||||
@@ -96,10 +96,12 @@ Learn more about [admins](/engine/v2/features/admins) and [access tokens](/engin
|
||||
**Backend wallet** are your wallets managed by Engine. Engine will send blockchain transactions from these wallets.
|
||||
|
||||
- Configure how to back up wallets.
|
||||
- Create or import a backend wallet.
|
||||
- Specify the backend wallet to use when calling the Engine API.
|
||||
|
||||
[Learn more about backend wallets.](/engine/v2/features/backend-wallets)
|
||||
- Create or import a server wallet.
|
||||
- Specify the server wallet to use when calling the Engine API.
|
||||
|
||||
|
||||
[Learn more about server wallets.](/engine/v2/configure-wallets/server-wallet)
|
||||
|
||||
## Interact with the blockchain
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@ import { Callout, Details } from "@doc";
|
||||
# Engine FAQs
|
||||
|
||||
<Details summary="How is pricing calculated for Engine Cloud?">
|
||||
Pricing is calculated through the number of write requests (ex: /v1/write/contract) made through the Engine API. Requests cost $1 per 1,000 requests. Read requests made through Engine API are free, within the RPC limits/plan.
|
||||
Pricing is calculated through the number of write requests (ex: /v1/write/contract) and sign requests (ex: /v1/sign/transaction) made through the Engine API. Write and sign requests cost $1 per 1,000 requests. Read requests made through Engine API are free, within the RPC limits/plan.
|
||||
|
||||
For transactions through server wallets paid through the user's thirdweb account, users will pay a 5% premium on the gas fee of each transaction completed on any mainnet as part of account abstraction fees. There are no gas charges for testnets.
|
||||
|
||||
**Please note: Legacy pricing plans may be subject to the 10% fee instead of 5%. Please update your pricing plan to avoid being subject to the 10% fee.**
|
||||
**Please note: Legacy pricing plans may be subject to the 10% fee specified when signed up instead of 5%. [See pricing page for updated plans and benefits](https://thirdweb.com/pricing)**
|
||||
|
||||
The breakdown for usage and transaction fees can be found in your usage dashboard under the team overview.
|
||||
</Details>
|
||||
|
||||
@@ -82,13 +82,13 @@ export const sidebar: SideBar = {
|
||||
},
|
||||
{
|
||||
name: "API Reference",
|
||||
href: "https://insight-api.thirdweb.com/reference#tag/webhooks",
|
||||
href: "https://insight.thirdweb.com/reference#tag/webhooks",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "API Reference",
|
||||
href: "https://insight-api.thirdweb.com/reference",
|
||||
href: "https://insight.thirdweb.com/reference",
|
||||
icon: <BracesIcon />,
|
||||
},
|
||||
{
|
||||
|
||||
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 328 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 353 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 421 KiB |
|
After Width: | Height: | Size: 173 KiB |
|
After Width: | Height: | Size: 314 KiB |
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,68 @@
|
||||
import { WalletIcon, FileIcon, MessageCircleIcon, BracesIcon, BotIcon, BlocksIcon } from "lucide-react";
|
||||
import { DocImage, createMetadata, FeatureCard, GithubTemplateCard, Stack, Grid, ArticleCard, ArticleIconCard } from "@doc";
|
||||
import { ExternalLink } from "lucide-react";
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: "thirdweb Knowledge Base",
|
||||
|
||||
description:
|
||||
"This Knowledge Base collects concise guides and troubleshooting tips for common web3 development challenges—especially when using thirdweb, but many articles apply to any web3 project.",
|
||||
});
|
||||
|
||||
# Welcome to thirdweb Support!
|
||||
|
||||
This section shows you how to leverage our Knowledge Base, request support, and understand our response process.
|
||||
|
||||
---
|
||||
|
||||
## 1. thirdweb Resources
|
||||
|
||||
Before opening a support ticket, check these resources:
|
||||
|
||||
- **Documentation:** [thirdweb Docs](https://portal.thirdweb.com/)
|
||||
- **Changelog:** Stay up to date with our latest releases: [thirdweb Changelog](https://portal.thirdweb.com/changelog)
|
||||
- **Status Page:** [thirdweb Status](https://status.thirdweb.com/)
|
||||
- **Guides & Troubleshooting:** Explore tutorials and tips: [thirdweb Guides](https://blog.thirdweb.com/guides/)
|
||||
- **Templates:** [thirdweb Starters](https://github.com/thirdweb-example/)
|
||||
- **Video Tutorials:** [YouTube](https://www.youtube.com/@thirdweb_)
|
||||
- **Playground:** Test live in [thirdweb Playground](https://playground.thirdweb.com/)
|
||||
|
||||
---
|
||||
|
||||
## 2. How to Request Support
|
||||
|
||||
- **Submit a ticket** through our system: [thirdweb.com/support](https://thirdweb.com/support).
|
||||
- Our team operates **worldwide** and will respond **as soon as possible**.
|
||||
- *Response times may vary depending on issue severity and priority.*
|
||||
- We’ll keep you updated on your ticket’s progress.
|
||||
- For faster resolution, please include a minimal reproduction with step-by-step instructions.
|
||||
- Found an issue in our open-source code? Submit a PR: [thirdweb-dev/js](https://github.com/thirdweb-dev/js).
|
||||
|
||||
---
|
||||
|
||||
## 3. Response Time Expectations
|
||||
|
||||
### Starter Plan
|
||||
|
||||
- Estimated response time: **3 business days**.
|
||||
- We aim to respond sooner when possible.
|
||||
|
||||
### Growth Plan & Accelerate Customers
|
||||
|
||||
- Estimated response time: **Within 48 business hours**.
|
||||
|
||||
### Scale & Pro Plans
|
||||
|
||||
- Estimated response time: **Within 2 business hours**.
|
||||
- Customers on the **Scale** or **Pro** plans get a **dedicated Slack channel or Telegram group**.
|
||||
|
||||
---
|
||||
|
||||
## Need Help?
|
||||
|
||||
You can [submit a ticket](https://thirdweb.com/support), and we’ll be happy to help you!
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
import { DocImage, Step, Steps } from "@doc";
|
||||
import ScreenshotConsole from "../../assets/screenshot-console.png";
|
||||
import TabConsole from "../../assets/tab-console.png";
|
||||
import Inspect from "../../assets/inspect-console.png";
|
||||
|
||||
# How to share your console log errors
|
||||
|
||||
Follow these steps to capture and share your browser console errors:
|
||||
|
||||
<Steps>
|
||||
|
||||
<Step title="Open your app">
|
||||
Navigate to the page where you’re seeing errors.
|
||||
</Step>
|
||||
|
||||
<Step title="Inspect the page">
|
||||
Right-click and choose **Inspect** (or **Inspect Element**) to open DevTools.
|
||||
<DocImage src={Inspect} />
|
||||
</Step>
|
||||
|
||||
<Step title="Switch to the Console">
|
||||
Click on the **Console** tab to view logs and errors.
|
||||
<DocImage src={TabConsole} />
|
||||
</Step>
|
||||
|
||||
<Step title="Capture the error">
|
||||
Screenshot any red error messages in **Console**.
|
||||
<DocImage src={ScreenshotConsole} />
|
||||
</Step>
|
||||
|
||||
<Step title="Share with us">
|
||||
Send your screenshots to our support team.
|
||||
</Step>
|
||||
|
||||
</Steps>
|
||||
|
||||
|
||||
By following these steps, you’ll give us the full error context so we can resolve your issue quickly.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Still stuck? [**Contact our support team**](https://thirdweb.com/support)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import { DocImage } from "@doc";
|
||||
import Soulbound from "../../assets/soulbound-explorer.png";
|
||||
import Permissions from "../../assets/permissions-soulbound.png";
|
||||
|
||||
# What is a Soulbound Token
|
||||
|
||||
Let’s first understand what a Soulbound Token (SBT) is:
|
||||
|
||||
A **Soulbound Token** is a unique digital asset that cannot be transferred to another wallet. Once minted, it remains permanently tied to the owner’s wallet—perfect for credentials, achievement badges, or any on-chain proof of identity.
|
||||
|
||||
## How to make your tokens Soulbound or Non-Transferrable
|
||||
|
||||
The easiest way is via the **Permissions** tab on your thirdweb contract dashboard. For a visual walkthrough, check out our [guide on making NFTs non-transferable](https://blog.thirdweb.com/guides/make-your-nft-non-transferable/?utm_source=dc).
|
||||
|
||||
If you prefer using the **Explorer**, follow these steps:
|
||||
|
||||
1. **Connect your wallet**
|
||||
Ensure your wallet is connected to the Dashboard/Explorer and set to the same network as your contract.
|
||||
|
||||
2. **Select the correct network**
|
||||
Verify the network selector (top-right) matches your contract’s deployment chain (e.g., Ethereum Mainnet, Goerli).
|
||||
|
||||
3. **Open the Explorer**
|
||||
In the thirdweb Dashboard, select your contract and switch to the **Explorer** tab.
|
||||
|
||||
4. **Choose `revokeRole` under write**
|
||||
The `revokeRole` function requires two inputs: **Role** and **Account**.
|
||||
|
||||
5. **Convert `TRANSFER_ROLE` to bytes32**
|
||||
Use a [keccak256 tool](https://emn178.github.io/online-tools/keccak_256.html) to hash the string `TRANSFER_ROLE`, then prefix with `0x`.
|
||||
For example:
|
||||
`0x8502233096d909befbda0999bb8ea2f3a6be3c138b9fbf003752a4c8bce86f6c`
|
||||
|
||||
6. **Set the account to the zero address**
|
||||
Enter `0x0000000000000000000000000000000000000000` to revoke transfer rights from every wallet.
|
||||
|
||||
7. **Confirm the on-chain transaction**
|
||||
Click “write” and approve the transaction in your wallet.
|
||||
|
||||
<DocImage src={Soulbound} />
|
||||
|
||||
8. **Verify in Permissions**
|
||||
Refresh the **Permissions** tab to confirm that `TRANSFER_ROLE` is revoked for the zero address.
|
||||
|
||||
<DocImage src={Permissions} />
|
||||
|
||||
That’s it—your tokens are officially soulbound!
|
||||
@@ -0,0 +1,73 @@
|
||||
import { DocImage } from "@doc";
|
||||
import deployGithub from "../../assets/deploy-github.png";
|
||||
import newProject from "../../assets/new-project-github.png";
|
||||
import newProjectName from "../../assets/new-project-name-github.png";
|
||||
import newVercel from "../../assets/add-new-vercel.png";
|
||||
import createVercel from "../../assets/create-project-vercel.png";
|
||||
import variablesVercel from "../../assets/variables-vercel.png";
|
||||
import deployVercel from "../../assets/deploy-vercel.png";
|
||||
|
||||
|
||||
|
||||
# How to deploy an NFT Mint site template [NO CODE]
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- [GitHub account](https://github.com)
|
||||
- [thirdweb account](https://thirdweb.com/)
|
||||
- [Vercel account](https://vercel.com/)
|
||||
|
||||
|
||||
## Step-by-Step Guide
|
||||
|
||||
### 1. Initial Setup
|
||||
|
||||
- Navigate to the [NFT Minting Template repository](https://github.com/thirdweb-example/nft-minting-template)
|
||||
- Click **Deploy with Vercel**
|
||||
|
||||
<DocImage src={deployGithub} />
|
||||
|
||||
### 2. Configure Git Repository
|
||||
|
||||
- **Choose your Git provider** (GitHub, GitLab, or Bitbucket)
|
||||
- **Set up your repository details**:
|
||||
- **Git Scope**: Select your GitHub username or organization
|
||||
- **Repository Name**: Enter a name (e.g., `my-nft-minting-website`)
|
||||
- **Team**: Select your team if applicable
|
||||
|
||||
<DocImage src={newProject} />
|
||||
<DocImage src={newProjectName} />
|
||||
|
||||
|
||||
### 3. Create Thirdweb Project
|
||||
|
||||
- Go to the [thirdweb dashboard](https://thirdweb.com/team/~/~/) and create a new project
|
||||
- Enter your project name (e.g., `NFT MINTING TEMPLATE`)
|
||||
- Configure allowed domains:
|
||||
- Add your custom domain (e.g., `mydomain.com`)
|
||||
- Add `localhost:<port>` for local development
|
||||
- Click **Create** and save your Client ID and Secret Key
|
||||
|
||||
<DocImage src={newVercel} />
|
||||
<DocImage src={createVercel} />
|
||||
|
||||
|
||||
### 4. Configure Environment Variables
|
||||
|
||||
- In Vercel, add the following:
|
||||

|
||||
- `NEXT_PUBLIC_THIRDWEB_CLIENT_ID`: Your thirdweb Client ID
|
||||
- `THIRDWEB_SECRET_KEY`: Your thirdweb Secret Key
|
||||
- `NFT_CONTRACT_ADDRESS`: Your NFT contract address
|
||||
- `NFT_CONTRACT_CHAIN_ID`: Chain ID (e.g., 43113 for Avalanche testnet)
|
||||
- `NFT_CONTRACT_TOKEN_ID`: `0` for ERC-721 or the token ID for ERC-1155
|
||||
|
||||
<DocImage src={variablesVercel} />
|
||||
|
||||
### 5. Deploy
|
||||
|
||||
- Click **Deploy** in the Vercel dashboard
|
||||
- Wait for the build and deployment to complete
|
||||
- Access your new mint site via the provided Vercel URL
|
||||
|
||||
<DocImage src={deployVercel} />
|
||||
@@ -0,0 +1,18 @@
|
||||
import { DocLayout } from "@/components/Layouts/DocLayout";
|
||||
import { createMetadata } from "@doc";
|
||||
import { sidebar } from "./sidebar";
|
||||
|
||||
export default async function Layout(props: { children: React.ReactNode }) {
|
||||
return (
|
||||
<DocLayout sideBar={sidebar} editPageButton={true}>
|
||||
{props.children}
|
||||
</DocLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: "thirdweb Knowledge Base",
|
||||
|
||||
description:
|
||||
"This Knowledge Base collects concise guides and troubleshooting tips for common web3 development challenges—especially when using thirdweb, but many articles apply to any web3 project.",
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
# Issue linking device on the authorization page via Thirdweb CLI
|
||||
|
||||
Encountering issues when linking a new device via the authorization page.
|
||||
|
||||
### Error
|
||||
|
||||
How to authorize your account using `secretKey` for the thirdweb CLI
|
||||
|
||||
### Solution
|
||||
|
||||
You can authorize the CLI with a `secretKey` in just a couple of steps:
|
||||
|
||||
1. **Get your `secretKey`**
|
||||
Head over to the thirdweb dashboard and generate a key: https://thirdweb.com/team/~/~/.
|
||||
|
||||
2. **Deploy with your `secretKey`**
|
||||
Run the following command: `npx thirdweb deploy -k secretKey`
|
||||
|
||||
3. **Use the same pattern for other commands**
|
||||
You can also use other methods like `upload`, `publish`, and `build` using the same format:
|
||||
- `npx thirdweb upload -k secretKey`
|
||||
- `npx thirdweb publish -k secretKey`
|
||||
- `npx thirdweb build -k secretKey`
|
||||
|
||||
That’s it! The CLI will now use your `secretKey` to authenticate every command.
|
||||
@@ -0,0 +1,68 @@
|
||||
import { WalletIcon, FileIcon, MessageCircleIcon, BracesIcon, BotIcon, BlocksIcon } from "lucide-react";
|
||||
import { DocImage, createMetadata, FeatureCard, GithubTemplateCard, Stack, Grid, ArticleCard, ArticleIconCard } from "@doc";
|
||||
import { ExternalLink } from "lucide-react";
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: "thirdweb Knowledge Base",
|
||||
|
||||
description:
|
||||
"This Knowledge Base collects concise guides and troubleshooting tips for common web3 development challenges—especially when using thirdweb, but many articles apply to any web3 project.",
|
||||
});
|
||||
|
||||
# Welcome to thirdweb Support!
|
||||
|
||||
This section shows you how to leverage our Knowledge Base, request support, and understand our response process.
|
||||
|
||||
---
|
||||
|
||||
## 1. thirdweb Resources
|
||||
|
||||
Before opening a support ticket, check these resources:
|
||||
|
||||
- **Documentation:** [thirdweb Docs](https://portal.thirdweb.com/)
|
||||
- **Changelog:** Stay up to date with our latest releases: [thirdweb Changelog](https://portal.thirdweb.com/changelog)
|
||||
- **Status Page:** [thirdweb Status](https://status.thirdweb.com/)
|
||||
- **Guides & Troubleshooting:** Explore tutorials and tips: [thirdweb Guides](https://blog.thirdweb.com/guides/)
|
||||
- **Templates:** [thirdweb Starters](https://github.com/thirdweb-example/)
|
||||
- **Video Tutorials:** [YouTube](https://www.youtube.com/@thirdweb_)
|
||||
- **Playground:** Test live in [thirdweb Playground](https://playground.thirdweb.com/)
|
||||
|
||||
---
|
||||
|
||||
## 2. How to Request Support
|
||||
|
||||
- **Submit a ticket** through our system: [thirdweb.com/support](https://thirdweb.com/support).
|
||||
- Our team operates **worldwide** and will respond **as soon as possible**.
|
||||
- *Response times may vary depending on issue severity and priority.*
|
||||
- We’ll keep you updated on your ticket’s progress.
|
||||
- For faster resolution, please include a minimal reproduction with step-by-step instructions.
|
||||
- Found an issue in our open-source code? Submit a PR: [thirdweb-dev/js](https://github.com/thirdweb-dev/js).
|
||||
|
||||
---
|
||||
|
||||
## 3. Response Time Expectations
|
||||
|
||||
### Starter Plan
|
||||
|
||||
- Estimated response time: **3 business days**.
|
||||
- We aim to respond sooner when possible.
|
||||
|
||||
### Growth Plan & Accelerate Customers
|
||||
|
||||
- Estimated response time: **Within 48 business hours**.
|
||||
|
||||
### Scale & Pro Plans
|
||||
|
||||
- Estimated response time: **Within 2 business hours**.
|
||||
- Customers on the **Scale** or **Pro** plans get a **dedicated Slack channel or Telegram group**.
|
||||
|
||||
---
|
||||
|
||||
## Need Help?
|
||||
|
||||
You can [submit a ticket](https://thirdweb.com/support), and we’ll be happy to help you!
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
import type { SideBar } from "@/components/Layouts/DocLayout";
|
||||
|
||||
import { BracesIcon, CodeIcon, RocketIcon } from "lucide-react";
|
||||
|
||||
export const sidebar: SideBar = {
|
||||
name: "Support Knowledge Base",
|
||||
links: [
|
||||
{
|
||||
name: "Get Started",
|
||||
href: "/knowledge-base/get-started",
|
||||
icon: <RocketIcon />,
|
||||
},
|
||||
{
|
||||
separator: true,
|
||||
},
|
||||
{
|
||||
name: "thirdweb Resources",
|
||||
isCollapsible: false,
|
||||
links: [
|
||||
{
|
||||
name: "How to",
|
||||
icon: <BracesIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "Creating Soulbound NFTs",
|
||||
expanded: true,
|
||||
href: "/knowledge-base/how-to/creating-soulbound-nfts",
|
||||
},
|
||||
{
|
||||
name: "Console Error Sharing",
|
||||
expanded: true,
|
||||
href: "/knowledge-base/how-to/console-error-sharing",
|
||||
},
|
||||
{
|
||||
name: "Deploy mint template",
|
||||
expanded: true,
|
||||
href: "/knowledge-base/how-to/deploy-mint-template",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Troubleshoot",
|
||||
isCollapsible: false,
|
||||
links: [
|
||||
{
|
||||
name: "Onchain common errors",
|
||||
icon: <RocketIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "Thirdweb CLI: Device Link Error",
|
||||
href: "/knowledge-base/onchain-common-errors/thirdweb-cli/device-link-error",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Contracts",
|
||||
icon: <CodeIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "Airdrop Contract",
|
||||
href: "/knowledge-base/troubleshoot/contracts/airdrop-contract",
|
||||
},
|
||||
{
|
||||
name: "Embed Feature Not Found",
|
||||
href: "/knowledge-base/troubleshoot/contracts/embed-feature-not-found",
|
||||
},
|
||||
{
|
||||
name: "Batch Upload",
|
||||
href: "/knowledge-base/troubleshoot/contracts/batch-upload",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -0,0 +1,48 @@
|
||||
import { DocImage } from "@doc";
|
||||
import setApproval from "../../../assets/set-approval-forall.png";
|
||||
|
||||
|
||||
# Airdrop Contract Troubleshooting
|
||||
|
||||
Airdropping NFTs to your community is a popular way to provide utility in many NFT-based projects. Using the [airdrop contracts](https://thirdweb.com/explore/airdrop), you can airdrop any ERC20, ERC721, or ERC1155 tokens.
|
||||
|
||||
To get started, here is a quick overview of how to airdrop NFTs:
|
||||
|
||||
- Deploy your NFT/token contract and mint tokens
|
||||
- Deploy the airdrop contract
|
||||
- Approve the airdrop contract in your NFT contract via `approve` or `setApprovalForAll`. We recommend `setApprovalForAll` for large airdrops so you don’t need to approve each token ID individually.
|
||||
- Enter your NFT/token parameters into the airdrop contract’s `airdrop` function and execute
|
||||
|
||||
<aside>
|
||||
Note: We recommend testing the airdrop contract with a small number of tokens on **testnet** before executing the full airdrop on mainnet.
|
||||
</aside>
|
||||
|
||||
If you encounter an error after following these steps, verify the following:
|
||||
|
||||
- You have enough funds in your wallet to cover gas fees
|
||||
- The airdrop contract has been granted approval on the NFT contract. See the example below:
|
||||
|
||||
<DocImage src={setApproval} />
|
||||
|
||||
- Your airdrop parameters use the correct formatting:
|
||||
- **recipients** must be an array of quoted addresses: `["0x...","0x...","0x..."]`
|
||||
- **token ID** must be an array of numeric IDs: `[0,1,2]`
|
||||
|
||||
## Common Airdrop Issues
|
||||
|
||||
1. NFTs aren’t minted/claimed
|
||||
2. Trying to airdrop too many NFTs at once
|
||||
3. Airdropping NFTs to invalid wallet addresses
|
||||
|
||||
**NFTs aren’t minted/claimed**
|
||||
Make sure you’ve minted the NFTs to your wallet first. You can only airdrop tokens you already own.
|
||||
|
||||
**Trying to airdrop too many NFTs at once**
|
||||
Most chains limit a single transaction to around 100 recipients. Split large lists into batches of 100 addresses or fewer.
|
||||
|
||||
**Airdropping NFTs to invalid wallet addresses**
|
||||
If you see `execution reverted: ERC1155: transfer to non ERC1155Receiver implementer`, one or more addresses in your list aren’t valid ERC1155 recipients. Remove any invalid addresses and try again.
|
||||
|
||||
---
|
||||
|
||||
Can’t get this working? [**Contact our support team**](https://thirdweb.com/support) for help.
|
||||
@@ -0,0 +1,23 @@
|
||||
# Batch Upload Issues
|
||||
|
||||
Uploading large amounts of media for your drop contracts can sometimes fail. This guide will help you identify and resolve the most common causes.
|
||||
|
||||
## Common Causes
|
||||
|
||||
### 1. Oversized batches
|
||||
Although our batch uploader technically supports up to 25 GB, we recommend splitting large uploads into smaller chunks—ideally 100 MB per batch, and no more than 1–2 GB at a time. If you still see errors, try uploading just 2–3 files as a quick test.
|
||||
|
||||
### 2. Network interference
|
||||
- **VPNs** can interrupt your connection—disable any active VPN during uploads.
|
||||
- **Ad blockers** may block necessary requests—turn them off temporarily.
|
||||
- **Anti-virus software** can also interfere—pause it while you upload.
|
||||
|
||||
## Best Practices
|
||||
|
||||
- Aim for 100 MB batches when possible.
|
||||
- Keep each batch upload under 10 minutes to avoid timeout.
|
||||
- Test with a small batch of 2–3 files to verify your setup before larger uploads.
|
||||
|
||||
## Need More Help?
|
||||
|
||||
If you’ve tried these steps and still encounter issues, [contact our support team](https://thirdweb.com/support).
|
||||
@@ -0,0 +1,38 @@
|
||||
import { createMetadata } from "@doc";
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: "Missing embed menu in contracts",
|
||||
description:
|
||||
"Troubleshooting guide for the deprecated embed menu feature in thirdweb contracts.",
|
||||
});
|
||||
|
||||
# Missing embed Menu in Contracts
|
||||
|
||||
|
||||
## Problem
|
||||
|
||||
The embed menu in your thirdweb contract has been deprecated and will no longer appear in the dashboard—this can be confusing if you’ve used it before. Here are a few alternative solutions to embed contract functionality into your project:
|
||||
|
||||
## Solution
|
||||
|
||||
The embed feature has been deprecated. However, there are alternative solutions available for embedding contract functionality into a project:
|
||||
|
||||
### Alternative Solutions
|
||||
|
||||
1. **Use NFT Minting Templates**
|
||||
- Deploy NFT minting pages using the following templates:
|
||||
- **Vercel:** [NFT Minting Template](https://github.com/thirdweb-example/nft-minting-template)
|
||||
- **Railway:** [NFT Minting Page for Railway](https://github.com/warengonzaga/thirdweb-nft-minting-page-railway)
|
||||
- For a full no-code walkthrough, check out our [Deploy Mint Template guide](/knowledge-base/how-to/deploy-mint-template).
|
||||
|
||||
|
||||
|
||||
2. **Configure API Key Settings**
|
||||
- Ensure that your API keys are correctly set up to prevent authorization errors.
|
||||
- Refer to the API Key Configuration guide: https://portal.thirdweb.com/account/api-keys/access
|
||||
|
||||
## Additional Tips
|
||||
|
||||
- If you experience issues deploying the templates, check your environment variables and API key configurations.
|
||||
- Reach out to thirdweb support for further assistance if needed.
|
||||
- **Join our [Telegram community](https://t.me/officialthirdweb)** for updates, changelogs, and new features.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Nebula Troubleshoot Guide
|
||||
|
||||
For any issues you encounter while using Nebula, please [visit our support site](https://thirdweb.com/support).
|
||||
@@ -7,4 +7,9 @@ This server can be integrated with any client that supports the Model Context Pr
|
||||
|
||||
1. Run the MCP server with the appropriate configuration
|
||||
2. Connect your MCP client to the server using the selected transport (stdio or SSE)
|
||||
3. Access thirdweb services through the exposed MCP tools
|
||||
3. Access thirdweb services through the exposed MCP tools
|
||||
|
||||
|
||||
#### References
|
||||
|
||||
[thirdweb-mcp references](https://github.com/thirdweb-dev/ai/tree/main/python/thirdweb-mcp)
|
||||
|
||||
@@ -8,7 +8,6 @@ import { ReactIcon } from "../icons";
|
||||
import { TypeScriptIcon } from "../icons";
|
||||
import { BridgeIcon } from "../icons/products/BridgeIcon";
|
||||
import { ConnectIcon } from "../icons/products/ConnectIcon";
|
||||
import { ContractsIcon } from "../icons/products/ContractsIcon";
|
||||
import { EngineIcon } from "../icons/products/EngineIcon";
|
||||
import { InsightIcon } from "../icons/products/InsightIcon";
|
||||
import { NebulaIcon } from "../icons/products/NebulaIcon";
|
||||
@@ -39,8 +38,7 @@ function Hero() {
|
||||
thirdweb Documentation
|
||||
</h1>
|
||||
<p className="mb-8 max-w-md text-lg text-muted-foreground leading-normal">
|
||||
Frontend, Backend, and Onchain tools to build complete web3 apps —
|
||||
on every EVM chain.
|
||||
Development framework for building onchain apps, games, and agents.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -115,7 +113,7 @@ function ReferenceSection() {
|
||||
/>
|
||||
<SDKCard
|
||||
title="Insight"
|
||||
href="https://insight-api.thirdweb.com/reference"
|
||||
href="https://insight.thirdweb.com/reference#tag/webhooks"
|
||||
icon={InsightIcon}
|
||||
isExternal
|
||||
iconClassName="text-muted-foreground"
|
||||
@@ -127,13 +125,6 @@ function ReferenceSection() {
|
||||
isExternal
|
||||
iconClassName="text-muted-foreground"
|
||||
/>
|
||||
<SDKCard
|
||||
title="Contracts"
|
||||
href="https://contracts.thirdweb.com/reference"
|
||||
icon={ContractsIcon}
|
||||
isExternal
|
||||
iconClassName="text-muted-foreground"
|
||||
/>
|
||||
<SDKCard
|
||||
title="Wallets"
|
||||
href="/connect/wallet/get-users" // TODO: actual openAPI docs
|
||||
@@ -162,6 +153,12 @@ function LearningResourcesSection() {
|
||||
description="Wallets, auth, and onchain interactions"
|
||||
icon={ConnectIcon}
|
||||
/>
|
||||
<ArticleCardIndex
|
||||
href="/pay"
|
||||
title="Universal Bridge"
|
||||
description="Bridge and onramp tokens on any chain"
|
||||
icon={BridgeIcon}
|
||||
/>
|
||||
<ArticleCardIndex
|
||||
href="/engine"
|
||||
title="Engine"
|
||||
@@ -180,12 +177,6 @@ function LearningResourcesSection() {
|
||||
description="API interface for LLMs"
|
||||
icon={NebulaIcon}
|
||||
/>
|
||||
<ArticleCardIndex
|
||||
title="Contracts"
|
||||
description="Solidity contracts and deployment tools"
|
||||
href="/contracts"
|
||||
icon={ContractsIcon}
|
||||
/>
|
||||
</Grid>
|
||||
</section>
|
||||
);
|
||||
|
||||
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
@@ -92,7 +92,7 @@ You can specify which onramp provider to present to your users. By default, we c
|
||||
<PayEmbed
|
||||
client={client}
|
||||
payOptions={{
|
||||
preferredProvider: "STRIPE" | "KADO" | "TRANSAK",
|
||||
preferredProvider: "COINBASE" | "STRIPE" | "TRANSAK",
|
||||
}}
|
||||
/>
|
||||
```
|
||||
@@ -88,7 +88,7 @@ You can specify which onramp provider to present to your users. By default, we c
|
||||
```tsx
|
||||
const { mutate: sendTransaction } = useSendTransaction({
|
||||
payModal: {
|
||||
preferredProvider: "STRIPE" | "KADO" | "TRANSAK",
|
||||
preferredProvider: "COINBASE" | "STRIPE" | "TRANSAK",
|
||||
},
|
||||
});
|
||||
```
|
||||
|
Before Width: | Height: | Size: 569 KiB After Width: | Height: | Size: 569 KiB |
@@ -94,7 +94,7 @@ The `quote` object contains detailed transaction information including the estim
|
||||
|
||||
</Step>
|
||||
<Step title='Check for a Buy With Crypto Step'>
|
||||
The `quote` object contains `quote.onRampToken` and `quote.toToken` objects containing intermediate and detination token information.
|
||||
The `quote` object contains `quote.onRampToken` and `quote.toToken` objects containing intermediate and destination token information.
|
||||
|
||||
If `quote.onRampToken` is not the same as `quote.toToken`, then your users will need to onramp to intermediary token before arriving at their destination token.
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { DocLayout } from "@/components/Layouts/DocLayout";
|
||||
import { createMetadata } from "@doc";
|
||||
import { sidebar } from "./sidebar";
|
||||
|
||||
export default async function Layout(props: { children: React.ReactNode }) {
|
||||
return (
|
||||
<DocLayout sideBar={sidebar} editPageButton={true}>
|
||||
{props.children}
|
||||
</DocLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export const metadata = createMetadata({
|
||||
title: "thirdweb Universal Bridge Documentation",
|
||||
image: {
|
||||
title: "thirdweb Universal Bridge Docs",
|
||||
icon: "nebula",
|
||||
},
|
||||
description:
|
||||
"thirdweb Universal Bridge documentation. Learn how to use the thirdweb Universal Bridge to send and receive tokens across different blockchains.",
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createMetadata, DocImage, Grid, SDKCard, FeatureCard } from "@doc";
|
||||
import PayOverviewImage from "../assets/pay-overview.png";
|
||||
import SupportedChains from "../../../_images/supported-chains.png";
|
||||
import PayOverviewImage from "./assets/pay-overview.png";
|
||||
import SupportedChains from "../_images/supported-chains.png";
|
||||
import {RocketIcon, ArrowLeftRightIcon, WalletIcon, PencilIcon, ShieldCheckIcon, PiggyBankIcon, GlobeIcon, ComponentIcon} from "lucide-react";
|
||||
|
||||
export const metadata = createMetadata({
|
||||
@@ -0,0 +1,131 @@
|
||||
import type { SideBar } from "@/components/Layouts/DocLayout";
|
||||
import {
|
||||
AlbumIcon,
|
||||
ArrowLeftRightIcon,
|
||||
BracesIcon,
|
||||
CircleDollarSignIcon,
|
||||
CodeIcon,
|
||||
FlaskConicalIcon,
|
||||
MessageCircleQuestionIcon,
|
||||
PaletteIcon,
|
||||
RocketIcon,
|
||||
TriangleRightIcon,
|
||||
WalletIcon,
|
||||
WebhookIcon,
|
||||
} from "lucide-react";
|
||||
|
||||
const paySlug = "/pay";
|
||||
|
||||
export const sidebar: SideBar = {
|
||||
name: "Universal Bridge",
|
||||
links: [
|
||||
{
|
||||
name: "Overview",
|
||||
href: `${paySlug}`,
|
||||
icon: <WalletIcon />,
|
||||
},
|
||||
{
|
||||
name: "Supported Routes",
|
||||
href: "https://thirdweb.com/routes",
|
||||
icon: <ArrowLeftRightIcon />,
|
||||
},
|
||||
{
|
||||
name: "Onramp Providers",
|
||||
href: `${paySlug}/onramp-providers`,
|
||||
icon: <TriangleRightIcon />,
|
||||
},
|
||||
{
|
||||
name: "Service Fees",
|
||||
href: `${paySlug}/fees`,
|
||||
icon: <CircleDollarSignIcon />,
|
||||
},
|
||||
{
|
||||
name: "Get Started",
|
||||
href: `${paySlug}/get-started`,
|
||||
icon: <RocketIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "ConnectButton",
|
||||
href: `${paySlug}/get-started#option-1-connectbutton`,
|
||||
},
|
||||
{
|
||||
name: "Embed",
|
||||
href: `${paySlug}/get-started#option-2-embed-pay`,
|
||||
},
|
||||
{
|
||||
name: "Send a Transaction",
|
||||
href: `${paySlug}/get-started#option-3-send-a-transaction-with-pay`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Tutorials",
|
||||
isCollapsible: true,
|
||||
icon: <AlbumIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "Accept Direct Payments",
|
||||
href: `${paySlug}/guides/accept-direct-payments`,
|
||||
},
|
||||
{
|
||||
name: "Build a Custom Onramp Experience",
|
||||
href: `${paySlug}/guides/build-a-custom-experience`,
|
||||
},
|
||||
{
|
||||
name: "Cross-Chain Swapping",
|
||||
href: `${paySlug}/guides/cross-chain-swapping`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Customization",
|
||||
isCollapsible: true,
|
||||
icon: <PaletteIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "ConnectButton",
|
||||
href: `${paySlug}/customization/connectbutton`,
|
||||
},
|
||||
{
|
||||
name: "PayEmbed",
|
||||
href: `${paySlug}/customization/payembed`,
|
||||
},
|
||||
{
|
||||
name: "useSendTransaction",
|
||||
href: `${paySlug}/customization/send-transaction`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "API Reference",
|
||||
href: "https://bridge.thirdweb.com/reference",
|
||||
icon: <BracesIcon />,
|
||||
},
|
||||
{
|
||||
name: "SDK Reference",
|
||||
href: "/typescript/v5/buy/quote",
|
||||
icon: <CodeIcon />,
|
||||
links: [
|
||||
{
|
||||
name: "TypeScript SDK",
|
||||
href: "/typescript/v5/buy/quote",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Webhooks",
|
||||
href: `${paySlug}/webhooks`,
|
||||
icon: <WebhookIcon />,
|
||||
},
|
||||
{
|
||||
name: "Developer Mode",
|
||||
href: `${paySlug}/testing-pay`,
|
||||
icon: <FlaskConicalIcon />,
|
||||
},
|
||||
{
|
||||
name: "FAQs",
|
||||
href: `${paySlug}/faqs`,
|
||||
icon: <MessageCircleQuestionIcon />,
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -16,7 +16,7 @@ Developers can turn on Test Mode to test both fiat-to-crypto transactions and cr
|
||||
|
||||
## Buy With Fiat
|
||||
|
||||
By setting `testMode` to `true` for Buy With Fiat, you can enable test experiences for our underlying providers (Stripe, Kado, and Transak).
|
||||
By setting `testMode` to `true` for Buy With Fiat, you can enable test experiences for our underlying providers (Coinbase, Stripe, and Transak).
|
||||
|
||||
<Tabs defaultValue="connectbutton">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
BadgeHelpIcon,
|
||||
BrainIcon,
|
||||
type LucideIcon,
|
||||
ScrollTextIcon,
|
||||
VideoIcon,
|
||||
@@ -37,17 +38,24 @@ function Links() {
|
||||
|
||||
<FooterLinkItem
|
||||
prefix="Watch our"
|
||||
label="Video Tutorials"
|
||||
label="video Tutorials"
|
||||
href="https://www.youtube.com/@thirdweb_"
|
||||
icon={VideoIcon}
|
||||
/>
|
||||
|
||||
<FooterLinkItem
|
||||
prefix="View our"
|
||||
label="Changelog"
|
||||
label="changelog"
|
||||
href="/changelog"
|
||||
icon={ScrollTextIcon}
|
||||
/>
|
||||
|
||||
<FooterLinkItem
|
||||
prefix="Using AI?"
|
||||
label="View llms.txt"
|
||||
href="/llms-full.txt"
|
||||
icon={BrainIcon}
|
||||
/>
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||