Class ProposalModule

Hierarchy

Index

Constructors

constructor

Methods

approveProposal

  • approveProposal(payingAccountId: string, proposalId: string, approvalsDelta: DeltaParameters, privateKey: string, broadcast?: boolean): Promise<Operation>

getProposedTransactions

  • getProposedTransactions(accountId: string): Promise<ProposalObject[]>

proposeFeeChange

  • proposeFeeChange(proposerAccountId: string, feesParameters: FeesParameters, expiration: string, privateKey: string, broadcast?: boolean): Promise<Operation>

proposeParameterChange

  • proposeParameterChange(proposerAccountId: string, proposalParameters: ProposalParameters, expiration: string, privateKey: string, broadcast?: boolean): Promise<Operation>

proposeTransfer

  • proposeTransfer(proposerAccountId: string, fromAccountId: string, toAccountId: string, amount: number, assetId: string, memoKey: string, expiration: string, privateKey: string, broadcast?: boolean): Promise<Operation>
  • Parameters

    • proposerAccountId: string

      Account id in format '1.2.X'. Example: "1.2.345"

    • fromAccountId: string

      Account id in format '1.2.X'. Example: "1.2.345"

    • toAccountId: string

      Account id in format '1.2.X'. Example: "1.2.345"

    • amount: number

      Amount that will be sent.

    • assetId: string

      Asset id that amount will be sent in. Asset id in format '1.3.X'. Example: "1.3.0"

    • memoKey: string

      Public key used to memo encryption in WIF(hex)(Wallet Import Format) format.

    • expiration: string

      Date in ISO format. Example: "2018-07-17T16:00:00"

    • privateKey: string

      Private key used to sign transaction.

    • Default value broadcast: boolean = true

      Transaction is broadcasted if set to 'true'. Default value is 'true'.

    Returns Promise<Operation>

Powered by DECENT