Options
All
  • Public
  • Public/Protected
  • All
Menu

@solana/solidity

Index

Type aliases

ABI

ABI: JsonFragment[]

Application Binary Interface of a Solidity contract in JSON form

ContractFunction

ContractFunction: (...args: any[]) => Promise<ContractFunctionResult | any>

Type declaration

EventListener

EventListener: (event: LogDescription) => void

Type declaration

    • (event: LogDescription): void
    • Callback function that will be called with decoded events

      Parameters

      • event: LogDescription

      Returns void

LogListener

LogListener: (message: string) => void

Type declaration

    • (message: string): void
    • Callback function that will be called with raw log messages

      Parameters

      • message: string

      Returns void

Functions

createProgramDerivedAddress

  • Create a Program Derived Address from a program ID and a random seed

    Parameters

    • program: PublicKey

      Program ID to derive the PDA using

    Returns Promise<ProgramDerivedAddress>

    PDA and the seed used to derive it

publicKeyToHex

  • publicKeyToHex(publicKey: PublicKey): string
  • Encode a public key as a hexadecimal string

    Parameters

    • publicKey: PublicKey

      Public key to convert

    Returns string

    Hex-encoded public key

Generated using TypeDoc