interface CCFRpc {
    setApplyWrites(force: boolean): void;
    setClaimsDigest(digest: ArrayBuffer): void;
}

Methods

  • Set whether KV writes should be applied even if the response status is not 2xx. The default is false.

    Parameters

    • force: boolean

    Returns void

  • Set a claims digest to be associated with the transaction if it succeeds. This digest can later be accessed from the receipt, and expanded into a full claim.

    The digest argument must be a sha-256 ArrayBuffer, eg. produced by global!CCF.digest.

    Parameters

    • digest: ArrayBuffer

    Returns void