Initialization

Create your own Solana dApp with collection, storage, analytics with this protocol. storage with @GenesysGo and multisig by @SquadsProtocol!

Install

npm install @firethreexyz/firethree-protocol

# or

yarn add @firethreexyz/firethree-protocol

Init Firethree Instance

  • For the wallet(second paramater) you can use the KeyPair! Add in your env and setup a new wallet
  • Attention the wallet is the payer of the transactions
import Firethree from '@firethreexyz/firethree-protocol'

const projectName = 'My Project'

const firethree = new Firethree(connection, {
  publicKey: wallet.publicKey!,
  signTransaction: wallet.signTransaction!,
  signAllTransactions: wallet.signAllTransactions!,
  signMessage: wallet.signMessage!,
}).init(projectName)
  • Name
    connection
    Type
    Connection
    Description

    Here you can use the connection from @solana/web3.js

  • Name
    Wallet
    Type
    Wallet
    Description

    You can use the wallet from @solana/wallet-adapter-react or Just use the Keypair!

  • Name
    opts
    Type
    ConfirmOptions | undefined
    Description

    The ConfirmOptions is the options for the confirmations of the transactions (skipPreflight, preflightCommitment, commitment)