Skip to content

Instantly share code, notes, and snippets.

Last active Jul 23, 2022
What would you like to do?
Privy Quickstart Demo
import {PrivyClient} from '@privy-io/privy-node';
const PRIVY_API_KEY = '<retrieved from the Privy console>';
const PRIVY_API_SECRET = '<retrieved from the Privy console>';
export default async function quickstart() {
const client = new PrivyClient(PRIVY_API_KEY, PRIVY_API_SECRET);
await client.put('0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B', 'first-name', 'Vitalik');
const result = await client.get('0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B', 'first-name');
console.log(result.text()); // Vitalik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment