Documentation
Search…
⌃K

DApp setup

Create a messaging keypair for your dapp

First, you must create a messaging keypair and register it with the Dialect data service. We recommend using the solana CLI to create a new keypair.
solana-keygen new -o <dapp>-messaging-keypair-devnet.json
Be sure to also save the seed phrase that is output to the console.

Register your dapp

Create an sdk instance following these instructions from Configuration. Then register a new dapp messaging keypair for this keypair using the Dialect SDK. Follow the instructions here, or the snippet below.
Dialect's data service never stores your dapp private keys, only the public key.
// N.b. this created dapp is associated with the wallet public key connected
// to the sdk instance.
const dapp = await sdk.dapps.create({
name: 'My test dapp',
description: `My test dapp's description.`
});