This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { PrivyClient } from "@privy-io/server-auth"; | |
| import { encodeFunctionData, parseAbi } from "viem"; | |
| const privy = new PrivyClient( | |
| process.env.PRIVY_APP_ID!, | |
| process.env.PRIVY_APP_SECRET! | |
| ); | |
| // AccountKeychain precompile | |
| const ACCOUNT_KEYCHAIN = "0xAAAAAAAA00000000000000000000000000000000"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {PrivyClient} from '@privy-io/node'; | |
| import { | |
| createWalletClient, | |
| http, | |
| keccak256, | |
| padHex, | |
| parseSignature, | |
| serializeTransaction, | |
| stringToHex | |
| } from 'viem'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {useWallets} from '@privy-io/react-auth'; | |
| import { | |
| createWalletClient, | |
| custom, | |
| keccak256, | |
| padHex, | |
| parseSignature, | |
| serializeTransaction, | |
| stringToHex | |
| } from 'viem'; |