Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ValidationApi

Index

Constructors

constructor

Properties

Private api

Methods

getFee

getFees

  • Returns fees for operation.

    Parameters

    • op: BaseOperation[]

      list of operations

    • Default value assetId: ChainObject = DCoreConstants.DCT_ASSET_ID

      asset id eg. DCT id is 1.3.0

    Returns Promise<AssetAmount[]>

    a list of fee asset amounts

getPotentialSignatures

  • This method will return the set of all public keys that could possibly sign for a given transaction. This call can be used by wallets to filter their set of public keys to just the relevant subset prior to calling get_required_signatures() to get the minimum subset.

    Parameters

    Returns Promise<Address[]>

    public keys that can sign transaction

getRequiredSignatures

  • This API will take a partially signed transaction and a set of public keys that the owner has the ability to sign for and return the minimal subset of public keys that should add signatures to the transaction.

    Parameters

    • transaction: Transaction

      partially signed transaction

    • keys: Address[]

      available owner public keys

    Returns Promise<Address[]>

    public keys that should add signatures

validateTransaction

  • Validates a transaction against the current state without broadcasting it on the network.

    Parameters

    Returns Promise<ProcessedTransaction>

    or fails with DCoreError

verifyAccountAuthority

  • verifyAccountAuthority(nameOrId: string, keys: Address[]): Promise<boolean>
  • Verifies if the signers have enough authority to authorize an account.

    Parameters

    • nameOrId: string

      account name or object id

    • keys: Address[]

      signer keys

    Returns Promise<boolean>

    if the signers have enough authority

verifyAuthority

  • verifyAuthority(transaction: Transaction): Promise<boolean>
  • Verifies required signatures of a transaction.

    Parameters

    • transaction: Transaction

      signed transaction to verify

    Returns Promise<boolean>

    if the transaction has all of the required signatures

Generated using TypeDoc