fhenix-client-sdk-decryption-tx

Installation
SKILL.md

Fhenix Client SDK — Decrypt to Transact

Overview

decryptForTx(ctHash) reveals a confidential value for on-chain use: it returns the plaintext plus a Threshold Network signature so a contract can verify the reveal when you publish it. Use it for unshielding tokens or finalizing private auctions/games. For UI-only display (no on-chain signature), use decryptForView instead.

It does not take a utype — the result is always a bigint (intended for a tx).

Result shape

.execute() resolves to:

  • ctHash: bigint | string — the handle decrypted
  • decryptedValue: bigint — the plaintext
  • signature: 0x${string} — Threshold Network signature

Permit vs withoutPermit (pick exactly one)

  • .withoutPermit() — works only if the contract's ACL policy allows anyone to decrypt that ctHash (e.g. unshielding, auction reveal where the value is OK to make public).
  • .withPermit() / .withPermit(hash) / .withPermit(permitObj) — required when the ACL policy restricts decryption.
Installs
1
First Seen
Jun 22, 2026
fhenix-client-sdk-decryption-tx — nickthelegend/fhenix-skills