Skip to content

useArcade API

Christopher David edited this page Aug 2, 2022 · 5 revisions

Account creation

Users are identified by a BIP39/32 Schnorr keypair as specified in NIP-06.

import { createAccount } from '@arcadecity/use-arcade'

const { pubkey, privkey, mnemonic } = await createAccount()

Use Arcade relay

import { useArcadeRelay } from '@arcadecity/use-arcade'

const [state, actions] = useArcadeRelay()

Types

Channel

  • id: string
  • image: string
  • name: string
  • type: string

Nostr event types (proposed)

  • 40 - Send message to channel
  • 41 - Create channel
  • 42 - Update channel
  • 43 - Delete channel
Clone this wiki locally