================
File: src/pages/chain/tools/faucets/lenscan.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
export default ({ children }) =>
================
File: src/pages/chain/tools/faucets/thirdweb.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
export default ({ children }) =>
================
File: src/pages/chain/tools/on-ramp/halliday.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
import { routes } from "@/utils/routes";
export default ({ children }) =>
Alchemy offers reliable and robust infrastructure tailored for developers, making it perfect for production environments.
To access Alchemy RPC endpoints:
1. Login to your Alchemy account.
2. From the Alchemy dashboard, select **Create New App**.
3. Select **Lens** within the **Choose Chains** tab.
4. Select **Node API** within the **Activate Services** tab.
5. Once the project is created, an API key is assigned and can be used with the Alchemy RPC endpoint: `https://lens-sepolia.g.alchemy.com/v2/insert_api_key_here`.
For more details on JSON-RPC methods, see the [Alchemy Ethereum API documentation](https://docs.alchemy.com/reference/ethereum-api-quickstart).
================
File: src/pages/chain/tools/rpc/chainstack.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
export default ({ children }) =>
## Get Started
Go to [chainstack.com/build-better-with-lens](https://chainstack.com/build-better-with-lens/) and fill out request form for dedicated RPC access.
## Features
- Dedicated Lens Chain mainnet & testnet nodes
- Fully managed infrastructure
- Unlimited requests, flat monthly rate
- SOC 2 certified with 99.99% uptime SLA
For more details on dedicated nodes, see the [Chainstack documentation](https://docs.chainstack.com/docs/dedicated-node).
================
File: src/pages/chain/tools/rpc/drpc.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
export default ({ children }) =>
To access dRPC endpoints:
1. Login to dRPC Dashboard.
2. From the dRPC dashboard, select **Add Key**.
3. Enter application info and **Create**.
4. Once the project is created, an API key is assigned and can be used with the dRPC endpoint: `https://lb.drpc.org/ogrpc?network=lens&dkey=insert_api_key_here`.
For more details on JSON-RPC methods, see the [dRPC documentation](https://drpc.org/docs).
================
File: src/pages/chain/tools/rpc/public.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
import { routes } from "@/utils/routes";
export default ({ children }) =>
QuickNode delivers robust, production-ready infrastructure trusted by top teams for its speed, reliability, and scalability making it the perfect choice for developers and enterprises alike.
To access QuickNode RPC endpoints:
1. Go to [QuickNode Dashboard](https://dashboard.quicknode.com) and create or log in to your account.
2. Navigate to the **Endpoints** tab.
3. Click **Create Endpoint**.
4. Select **Lens** as the network.
5. Once your endpoint is created, you’ll receive a unique RPC URL and credentials. Use this URL in your application to connect to the Lens network via QuickNode.
There is also public RPC endpoint for Lens Chain available at https://light-icy-dinghy.lens-mainnet.quiknode.pro/, with rate limits of 20/second, 2000/minute, 100000/day.
For more details on available JSON-RPC methods, see the [QuickNode documentation](https://www.quicknode.com/docs).
================
File: src/pages/chain/tools/rpc/tenderly.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
import { routes } from "@/utils/routes";
export default ({ children }) =>
To access Tenderly RPC endpoints:
1. Login to your Tenderly account.
2. From the Tenderly Dashboard, open the **Node RPCs** section in the side panel.
3. Click **Create Node RPC**.
4. Select **Lens Testnet**.
5. Copy RPC endpoint from dashboard, it will be in format: `https://lens-sepolia.gateway.tenderly.co/insert_api_key_here`
Tenderly Node RPCs include additional methods for simulation and debugging:
- `tenderly_simulateTransaction`: Simulate the outcome of a transaction before signing.
- `tenderly_simulateBundle`: Simulate multiple transactions in a single request.
- `tenderly_traceTransaction`: Get a decoded trace of an existing transaction.
- `tenderly_estimateGas`: Get information on gas usage for a given transaction.
- `tenderly_estimateGasBundle`: Get information on gas usage for a bundle of transactions.
- `tenderly_decodeInput`: Heuristically decode external function calls.
- `tenderly_decodeError`: Heuristically decode custom errors.
- `tenderly_decodeEvent`: Heuristically decode emitted events.
- `tenderly_functionSignatures`: Retrieve function interfaces based on 4-byte function selectors.
- `tenderly_errorSignatures`: Retrieve error interfaces based on 4-byte selectors.
- `tenderly_eventSignature`: Retrieve event interfaces based on 32-byte event signatures.
For more details on JSON-RPC methods, see the [Tenderly Node documentation](https://docs.tenderly.co/node)
================
File: src/pages/chain/tools/rpc/thirdweb.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
import { routes } from "@/utils/routes";
export default ({ children }) =>
To access thirdweb RPC endpoints:
1. Login to your thirdweb account
2. From the thirdweb Dashboard, select **Add New** -> **Project**
3. Once the project is created, an API key is assigned and can be used with the thirdweb RPC endpoint: `https://37111.rpc.thirdweb.com/insert_api_key_here`.
================
File: src/pages/chain/tools/smart-contract-development/smart-contract-development.mdx
================
export const meta = {
showBreadcrumbs: false,
showTableOfContents: true,
showPrev: true,
showNext: true,
};
import Layout from "@/components/Layouts/Mdx";
import { routes } from "@/utils/routes";
export default ({ children }) => Loading…
; } if (error) { return{error.message}
; } // data: Account | null ``` ```ts filename="Lens Username" import { useAccount, evmAddress } from "@lens-protocol/react"; // … const { data, loading, error } = useAccount({ username: { localName: "wagmi", }, }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Account | null ``` ```ts filename="Custom Username" import { useAccount, evmAddress } from "@lens-protocol/react"; // … const { data, loading, error } = useAccount({ username: { localName: "foobar", namespace: evmAddress("0x1234…"), // the Username namespace address }, }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Account | null ``` ```ts filename="Tx Hash" import { useAccount, txHash } from "@lens-protocol/react"; // … const { data, loading, error } = useAccount({ txHash: txHash("0x1234…"), }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Account | null ``` ```ts filename="Legacy Profile Id" import { useAccount, LegacyProfileId } from "@lens-protocol/react"; // … const { data, loading, error } = useAccount({ legacyProfileId: "0x05" as LegacyProfileId, }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Account | null ```Loading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: Array
Loading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: Post | null ``` ```ts filename="By Tx Hash" import { usePost, txHash } from "@lens-protocol/react"; // … const { data, loading, error } = usePost({ txHash: txHash("0x1234…"), }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Post | null ```Loading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: Group | null ``` ```ts filename="By Tx Hash" import { txHash, useGroup } from "@lens-protocol/react"; // … const { data, loading, error } = useGroup({ txHash: txHash("0x1234…"), }); if (loading) { returnLoading…
; } if (error) { return{error.message}
; } // data: Group | null ```Loading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: ArrayLoading…
; } if (error) { return{error.message}
; } // data: {items: Array