repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polkadot-example/src/vite-env.d.ts
other/polkadot-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/vite.config.ts
other/xrpl-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/src/App.tsx
other/xrpl-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import {getAccounts, getBalance, signMessage, signAndSendTransaction} from "./xrplRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: connectEr...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/src/web3authContext.tsx
other/xrpl-example/src/web3authContext.tsx
// IMP START - Quick Start import { CHAIN_NAMESPACES, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; import { XrplPrivateKeyProvider } from "@web3auth/modal/providers/xrpl-provider"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NT...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/src/index.tsx
other/xrpl-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/src/xrplRPC.ts
other/xrpl-example/src/xrplRPC.ts
import type { IProvider } from "@web3auth/modal"; import { convertStringToHex, Payment, xrpToDrops } from "xrpl"; export async function getAccounts(provider: IProvider): Promise<any> { try { const accounts = await provider.request<never, string[]>({ method: "xrpl_getAccounts", }); console.log("acco...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xrpl-example/src/vite-env.d.ts
other/xrpl-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/vite.config.ts
other/xmtp-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/App.tsx
other/xmtp-example/src/App.tsx
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { useEffect, useState } from "react"; import { FloatingInbox } from "./FloatingInbox"; import { ethers, JsonRpcSigner } from "ethers"; import "./index.css"; declare global { interface Window { F...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/main.tsx
other/xmtp-example/src/main.tsx
import "./index.css"; import React from "react"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.crea...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/web3authContext.ts
other/xmtp-example/src/web3authContext.ts
// IMP START - Quick Start import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // IM...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/vite-env.d.ts
other/xmtp-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/MessageItem.tsx
other/xmtp-example/src/FloatingInbox/MessageItem.tsx
import React from "react"; import { useClient, ContentTypeId, DecodedMessage } from "@xmtp/react-sdk"; interface MessageItemProps { message: DecodedMessage; senderAddress: string; isPWA?: boolean; } const MessageItem: React.FC<MessageItemProps> = ({ message, senderAddress, isPWA = false }) => { const { client...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/MessageInput.tsx
other/xmtp-example/src/FloatingInbox/MessageInput.tsx
import React, { useState, KeyboardEvent, ChangeEvent } from "react"; interface MessageInputProps { onSendMessage: (message: string) => void; replyingToMessage?: any; // Replace 'any' with the actual type of replyingToMessage if known isPWA?: boolean; } export const MessageInput: React.FC<MessageInputProps> = ({...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/ListConversations.tsx
other/xmtp-example/src/FloatingInbox/ListConversations.tsx
import React, { useState, useEffect, useCallback } from "react"; import { useConversations, useStreamConversations, useClient, Conversation, } from "@xmtp/react-sdk"; interface ListConversationsProps { searchTerm: string; selectConversation: (conversation: Conversation) => void; onConversationFound: (fou...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/index.tsx
other/xmtp-example/src/FloatingInbox/index.tsx
import Home from "./Home"; import { XMTPProvider } from "@xmtp/react-sdk"; import { Signer } from "ethers"; interface FloatingInboxProps { isPWA?: boolean; wallet: Signer; onLogout: () => void; isContained?: boolean; isConsent?: boolean; } export function FloatingInbox({ isPWA = false, wallet, onLogou...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/MessageContainer.tsx
other/xmtp-example/src/FloatingInbox/MessageContainer.tsx
import React, { useRef, useEffect } from "react"; import { MessageInput } from "./MessageInput"; import { useMessages, useSendMessage, useStreamMessages, useClient, Conversation, DecodedMessage, Client, } from "@xmtp/react-sdk"; import MessageItem from "./MessageItem"; interface MessageContainerProps { ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/NewConversation.tsx
other/xmtp-example/src/FloatingInbox/NewConversation.tsx
import React, { useCallback } from "react"; import { MessageInput } from "./MessageInput"; import { useStartConversation, CachedConversation } from "@xmtp/react-sdk"; interface NewConversationProps { selectConversation: (conversation: CachedConversation) => void; peerAddress: string; isPWA?: boolean; } export c...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/ConversationContainer.tsx
other/xmtp-example/src/FloatingInbox/ConversationContainer.tsx
import React, { useState, useEffect } from "react"; import { MessageContainer } from "./MessageContainer"; import { useCanMessage, useClient } from "@xmtp/react-sdk"; import { ListConversations } from "./ListConversations"; import { ethers } from "ethers"; import { NewConversation } from "./NewConversation"; interface...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/xmtp-example/src/FloatingInbox/Home.tsx
other/xmtp-example/src/FloatingInbox/Home.tsx
import React, { useState, useEffect } from "react"; import { ethers, Signer } from "ethers"; import { Client, useClient } from "@xmtp/react-sdk"; import { ConversationContainer } from "./ConversationContainer"; interface HomeProps { wallet: Signer; env?: string; isPWA?: boolean; onLogout?: () => void; isCont...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/vite.config.ts
other/solana-pay-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/App.tsx
other/solana-pay-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react"; import { WALLET_CONNECTORS } from "@web3auth/modal"; import { useSolanaWallet } from "@web3auth/modal/react/solana"; import { SignTransaction } from "./components/signTransaction"; import { Balance } f...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/web3authContext.tsx
other/solana-pay-example/src/web3authContext.tsx
// IMP START - Quick Start import { WEB3AUTH_NETWORK } from "@web3auth/modal"; import { type Web3AuthContextConfig } from "@web3auth/modal/react"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BFcLTVqWlTSpBBaELDPSz4_LFgG8Nf8hEltPlf3QeUG_88GDrQSw82fSjjYj5x4F3ys3ghMq8-InU7Azx7NbFSs"; /...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/main.tsx
other/solana-pay-example/src/main.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/vite-env.d.ts
other/solana-pay-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/signTransaction.tsx
other/solana-pay-example/src/components/signTransaction.tsx
import { FormEvent } from "react"; import { useSolanaWallet, useSignTransaction } from "@web3auth/modal/react/solana"; import { LAMPORTS_PER_SOL, PublicKey, SystemProgram, Transaction } from "@solana/web3.js"; export function SignTransaction() { const { data: signedTransaction, error, loading: isPending, signTransac...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/solanaPay.tsx
other/solana-pay-example/src/components/solanaPay.tsx
import { Keypair, PublicKey } from "@solana/web3.js"; import { createQR, encodeURL } from "@solana/pay"; import BigNumber from "bignumber.js"; import { useEffect, useRef, useState } from "react"; import { createPortal } from "react-dom"; import { useSolanaWallet } from "@web3auth/modal/react/solana"; export function ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/getBalance.tsx
other/solana-pay-example/src/components/getBalance.tsx
import { useSolanaWallet } from "@web3auth/modal/react/solana"; import { LAMPORTS_PER_SOL, PublicKey, } from "@solana/web3.js"; import { useEffect, useState } from "react"; export function Balance() { const { accounts, connection } = useSolanaWallet(); const [balance, setBalance] = useState<number | null>(null...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/signMessage.tsx
other/solana-pay-example/src/components/signMessage.tsx
import { FormEvent } from "react"; import { useSignMessage } from "@web3auth/modal/react/solana"; export function SignMessage() { const { data: hash, error, loading: isPending, signMessage } = useSignMessage(); async function submit(e: FormEvent<HTMLFormElement>) { e.preventDefault() const formData = new ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/sendVersionedTransaction.tsx
other/solana-pay-example/src/components/sendVersionedTransaction.tsx
import { FormEvent } from "react"; import { useSolanaWallet, useSignAndSendTransaction } from "@web3auth/modal/react/solana"; import { LAMPORTS_PER_SOL, PublicKey, SystemProgram, TransactionMessage, VersionedTransaction } from "@solana/web3.js"; export function SendVersionedTransaction() { const { data: hash, error,...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/solana-pay-example/src/components/switchNetwork.tsx
other/solana-pay-example/src/components/switchNetwork.tsx
import { useSwitchChain, useWeb3Auth } from '@web3auth/modal/react' export function SwitchChain() { const { web3Auth } = useWeb3Auth(); const { switchChain, error } = useSwitchChain() return ( <div> <h2>Switch Chain</h2> <h3>Connected to {web3Auth?.currentChain?.displayName}</h3> {web3Aut...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/vite.config.ts
other/tezos-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/src/App.tsx
other/tezos-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getAccounts, getBalance, signMessage, signAndSendTransaction } from "./tezosRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: connectError...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/src/web3authContext.tsx
other/tezos-example/src/web3authContext.tsx
// IMP START - Quick Start import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/src/index.tsx
other/tezos-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/src/tezosRPC.ts
other/tezos-example/src/tezosRPC.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable no-console */ import { InMemorySigner } from "@taquito/signer"; import { TezosToolkit } from "@taquito/taquito"; import { hex2buf } from "@taquito/utils"; // @ts-ignore import * as tezosCrypt...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tezos-example/src/vite-env.d.ts
other/tezos-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/vite.config.ts
other/sign-protocol-example/vite.config.ts
import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the browser environment // resolve: { // alias: { // cry...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/App.tsx
other/sign-protocol-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react"; import { useAccount } from "wagmi"; import { SendTransaction } from "./components/sendTransaction"; import { Balance } from "./components/getBalance"; import { useWalletClient } from "wagmi"; import {...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/web3authContext.tsx
other/sign-protocol-example/src/web3authContext.tsx
// IMP START - Quick Start import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // IM...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/ethereumRPC.tsx
other/sign-protocol-example/src/ethereumRPC.tsx
import { IProvider } from "@web3auth/modal"; import { PublicClient, WalletClient, createPublicClient, createWalletClient, custom, formatEther, parseEther } from "viem"; import { sepolia } from "viem/chains"; export default class EthereumRPC { readonly walletClient: WalletClient; readonly publicClient: PublicCl...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/main.tsx
other/sign-protocol-example/src/main.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // Setup Wagmi Provider import { WagmiProvider } from "@web3auth/modal/react/wagmi"; import { QueryClient, QueryClie...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/vite-env.d.ts
other/sign-protocol-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/components/signClient.tsx
other/sign-protocol-example/src/components/signClient.tsx
import { AttestationResult, EvmChains, SignProtocolClient, SpMode } from "@ethsign/sp-sdk"; import axios from "axios"; import { WalletClient } from "viem"; interface RequestOptions { method: string; params?: Record<string, unknown>; [key: string]: unknown; } interface AttestationResponse { success: boolean; mess...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/components/sendTransaction.tsx
other/sign-protocol-example/src/components/sendTransaction.tsx
import { FormEvent } from "react"; import { useWaitForTransactionReceipt, useSendTransaction, BaseError } from "wagmi"; import { Hex, parseEther } from "viem"; export function SendTransaction() { const { data: hash, error, isPending, sendTransaction } = useSendTransaction() async function submit(e: FormEvent<HTML...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sign-protocol-example/src/components/getBalance.tsx
other/sign-protocol-example/src/components/getBalance.tsx
import { useAccount, useBalance } from "wagmi"; import { formatUnits } from "viem"; export function Balance() { const { address } = useAccount() const { data, isLoading, error } = useBalance({ address }) return ( <div> <h2>Balance</h2> <div>{data?.value !== undefined && `${formatUnits(data.valu...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/vite.config.ts
other/multi-chain-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/App.tsx
other/multi-chain-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; // Import RPC classes import {getEthereumAccounts, getEthereumBalance, signEthereumMessage, sendEthereumTransaction} from "./RPC/ethersRPC"; import {getSolanaAccount, getSolanaBa...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/web3authContext.tsx
other/multi-chain-example/src/web3authContext.tsx
// IMP START - Quick Start import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // I...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/index.tsx
other/multi-chain-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/vite-env.d.ts
other/multi-chain-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/RPC/solanaRPC.ts
other/multi-chain-example/src/RPC/solanaRPC.ts
// Solana import { Keypair, Connection } from "@solana/web3.js"; import { IProvider, getED25519Key } from "@web3auth/modal"; import nacl from 'tweetnacl'; /** * Gets the Solana account address from a private key * @param ethProvider The Ethereum provider * @returns The Solana account address */ export async functio...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/RPC/polkadotRPC.ts
other/multi-chain-example/src/RPC/polkadotRPC.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable no-console */ import { ApiPromise, Keyring, WsProvider } from "@polkadot/api"; import { cryptoWaitReady } from "@polkadot/util-crypto"; import type { IProvider } from "@web3auth/modal"; /** * Makes a Polkadot API client */ export async functio...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/RPC/ethersRPC.ts
other/multi-chain-example/src/RPC/ethersRPC.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ import type { IProvider } from "@web3auth/modal"; import { ethers } from "ethers"; export async function getChainId(provider: IProvider): Promise<any> { try { const ethersProvider = new ethers.BrowserProvider(provider); // Get the connected Chain's ID ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/multi-chain-example/src/RPC/tezosRPC.ts
other/multi-chain-example/src/RPC/tezosRPC.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable no-console */ import { InMemorySigner } from "@taquito/signer"; import { TezosToolkit } from "@taquito/taquito"; import { hex2buf } from "@taquito/utils"; // @ts-ignore import * as tezosCrypt...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/vite.config.ts
other/ton-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/App.tsx
other/ton-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getPrivateKey, getAccounts, getBalance, signMessage, signAndSendTransaction, getChainId } from "./tonRpc"; function App() { const { connect, isConnected, loading: connectLoa...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/web3authContext.tsx
other/ton-example/src/web3authContext.tsx
// IMP START - Quick Start import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/tonRpc.ts
other/ton-example/src/tonRpc.ts
import type { IProvider } from "@web3auth/modal"; import { getHttpEndpoint } from "@orbs-network/ton-access"; import TonWeb from "tonweb"; // Get the private key from the Web3Auth provider export async function getPrivateKey(provider: IProvider): Promise<string> { try { const privateKey = await provider.request(...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/index.tsx
other/ton-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/vite-env.d.ts
other/ton-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/ton-example/src/.ts
other/ton-example/src/.ts
import type { IProvider } from "@web3auth/modal"; // Get the private key from the Web3Auth provider export async function getPrivateKey(provider: IProvider): Promise<string> { try { const privateKey = await provider.request({ method: "private_key" }); return privateKey as string; } catch (error) { thro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/vite.config.ts
other/tron-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/App.tsx
other/tron-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getPrivateKey, getTronAccount, getTronBalance, signMessage, signAndSendTransaction } from "./tronRPC"; function App() { const { connect, isConnected, loading: connectLoading...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/web3authContext.tsx
other/tron-example/src/web3authContext.tsx
// IMP START - Quick Start import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/tronRPC.ts
other/tron-example/src/tronRPC.ts
import { IProvider } from "@web3auth/modal"; import TronWeb from "tronweb"; const TRON_MAINNET_RPC = "https://api.trongrid.io"; const TRON_SHASTA_RPC = "https://api.shasta.trongrid.io"; // Use Shasta testnet for this example const RPC_URL = TRON_SHASTA_RPC; // Get private key from the provider export async function ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/index.tsx
other/tron-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/vite-env.d.ts
other/tron-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/tron-example/src/types/tronweb.d.ts
other/tron-example/src/types/tronweb.d.ts
declare module 'tronweb' { export default class TronWeb { constructor(options: { fullHost: string; privateKey?: string; }); address: { fromPrivateKey(privateKey: string): string; }; trx: { getBalance(address: string): Promise<number>; sign(message: string, p...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/vite.config.ts
other/polymesh-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/src/App.tsx
other/polymesh-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getPrivateKey, getAccounts, getBalance, getIdentity, transferPolyx } from "./polymeshRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: con...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/src/web3authContext.tsx
other/polymesh-example/src/web3authContext.tsx
// IMP START - Quick Start import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/src/index.tsx
other/polymesh-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/src/polymeshRPC.ts
other/polymesh-example/src/polymeshRPC.ts
import { BigNumber, Polymesh } from "@polymeshassociation/polymesh-sdk"; import { LocalSigningManager } from "@polymeshassociation/local-signing-manager"; import type { IProvider } from "@web3auth/modal"; let api: Polymesh; export const getPrivateKey = async (provider: IProvider): Promise<string | null> => { try { ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/polymesh-example/src/vite-env.d.ts
other/polymesh-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/vite.config.ts
other/cosmos-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/src/App.tsx
other/cosmos-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getPrivateKey, getAccounts, getBalance, signAndSendTransaction } from "./cosmosRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: connectEr...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/src/web3authContext.tsx
other/cosmos-example/src/web3authContext.tsx
// IMP START - Quick Start import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // IM...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/src/index.tsx
other/cosmos-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/src/cosmosRPC.ts
other/cosmos-example/src/cosmosRPC.ts
import type { IProvider } from "@web3auth/modal"; import { SigningStargateClient, StargateClient } from "@cosmjs/stargate"; import { DirectSecp256k1Wallet, OfflineDirectSigner } from "@cosmjs/proto-signing"; const rpc = "https://rpc.sentry-02.theta-testnet.polypore.xyz"; export const getPrivateKey = async (provider: I...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/cosmos-example/src/vite-env.d.ts
other/cosmos-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/vite.config.ts
other/sui-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/src/App.tsx
other/sui-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getPrivateKey, getAccounts, getBalance } from "./suiRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: connectError } = useWeb3AuthConnect(...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/src/suiRPC.ts
other/sui-example/src/suiRPC.ts
import type { IProvider } from "@web3auth/modal"; import { CoinBalance, getFullnodeUrl, SuiClient } from '@mysten/sui.js/client'; import { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519'; import { MIST_PER_SUI } from '@mysten/sui.js/utils'; import { TransactionBlock } from '@mysten/sui.js/transactions'; const ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/src/web3authContext.tsx
other/sui-example/src/web3authContext.tsx
// IMP START - Quick Start import { authConnector, WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.we...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/src/index.tsx
other/sui-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/sui-example/src/vite-env.d.ts
other/sui-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/vite.config.ts
other/aptos-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/src/App.tsx
other/aptos-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, useWeb3Auth } from "@web3auth/modal/react"; import { getAccounts, getBalance, getAirdrop, sendTransaction, getPrivateKey } from "./aptosRPC"; function App() { const { connect, isConnected, loading: connectLoading, error: conne...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/src/web3authContext.tsx
other/aptos-example/src/web3authContext.tsx
// IMP START - Quick Start import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // IM...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/src/aptosRPC.ts
other/aptos-example/src/aptosRPC.ts
import type { IProvider } from "@web3auth/modal"; import { Account, Aptos, AptosConfig, Network, Secp256k1PrivateKey } from "@aptos-labs/ts-sdk"; interface CoinStoreResource { type: string; data: { coin: { value: string; }; deposit_events: any; frozen: boolean; withdraw_events: any; }; ...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/src/index.tsx
other/aptos-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider import App from "./App"; ReactDOM.createRoot(document.getElementB...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/aptos-example/src/vite-env.d.ts
other/aptos-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/vite.config.ts
other/starknet-example/vite.config.ts
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the browser environment // resolve: { // alias: { // crypt...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/App.tsx
other/starknet-example/src/App.tsx
import { useWeb3Auth, useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser, } from "@web3auth/modal/react"; import "./App.css"; import { deployAccount, getAccounts, getBalance, getPrivateKey, } from "./starknetRPC"; import { RpcProvider } from "starknet"; const isProduction = process.env.NODE_ENV...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/starknetRPC.ts
other/starknet-example/src/starknetRPC.ts
import type { IProvider } from "@web3auth/modal"; import { Account, CallData, Contract, ec, hash, RpcProvider } from "starknet"; import { keccak256 } from "js-sha3"; import { CONTRACT_ADDRESS } from "./address"; import { CONTRACT_ABI } from "./abi"; export const OZ_ACCOUNT_CLASS_HASH = "0x540d7f5ec7ecf317e68d4856493...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/web3authContext.tsx
other/starknet-example/src/web3authContext.tsx
"use client"; import { type Web3AuthContextConfig } from "@web3auth/modal/react"; import { WEB3AUTH_NETWORK } from "@web3auth/modal"; // Dashboard Registration const isProduction = import.meta.env.PROD; const clientId = isProduction ? import.meta.env.VITE_WEB3AUTH_CLIENT_ID : "BEQc78qNSC_nE4sh2YSf6MPK4mep2CLELdQ3...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/main.tsx
other/starknet-example/src/main.tsx
import { createRoot } from "react-dom/client"; import App from "./App.tsx"; // Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext.tsx"; createRoot(document.getElementById("root")!).render( <Web3AuthProvider config={web3AuthContextCo...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/vite-env.d.ts
other/starknet-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/other/starknet-example/src/address/index.ts
other/starknet-example/src/address/index.ts
export const CONTRACT_ADDRESS = "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d";
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false