Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SaplingTransactionViewer

description

Allows to retrieve and decrypt sapling transactions using on a viewing key

param

Holds the sapling viewing key

param

Address of the sapling contract or sapling id if the smart contract contains multiple sapling states

param

Allows to read data from the blockchain

Hierarchy

  • SaplingTransactionViewer

Index

Constructors

constructor

Methods

getBalance

  • getBalance(): Promise<BigNumber>

getIncomingAndOutgoingTransactions

  • getIncomingAndOutgoingTransactions(): Promise<SaplingIncomingAndOutgoingTransaction>

getIncomingAndOutgoingTransactionsRaw

  • getIncomingAndOutgoingTransactionsRaw(): Promise<{ incoming: { isSpent: boolean; memo: Uint8Array; paymentAddress: Uint8Array; position: number; randomCommitmentTrapdoor: Uint8Array; value: Uint8Array }[]; outgoing: Pick<Input, "memo" | "value" | "paymentAddress" | "randomCommitmentTrapdoor">[] }>
  • description

    Retrieve all the incoming and outgoing transactions associated with the configured viewing key. The response properties are in Uint8Array format; use the getIncomingAndOutgoingTransactions method for readable properties

    Returns Promise<{ incoming: { isSpent: boolean; memo: Uint8Array; paymentAddress: Uint8Array; position: number; randomCommitmentTrapdoor: Uint8Array; value: Uint8Array }[]; outgoing: Pick<Input, "memo" | "value" | "paymentAddress" | "randomCommitmentTrapdoor">[] }>

Generated using TypeDoc