Skip to content

Instantly share code, notes, and snippets.

View alexpaden's full-sized avatar
👷‍♂️
I may be slow to respond.

Alex Paden alexpaden

👷‍♂️
I may be slow to respond.
View GitHub Profile
@danromero
danromero / token.js
Last active July 5, 2024 10:46
Generate an Application Bearer Token from a Farcaster custody address mnemonic for Merkle v2 API
const ethers = require('ethers');
const canonicalize = require('canonicalize');
const https = require('https');
const myMnemonic = 'a b c d e f g h i j k';
async function run() {
// WARNING: Example only -- do not ever hard-code your real mnemonic!
wallet = ethers.Wallet.fromMnemonic(myMnemonic);