Witness

scalus.cardano.txbuilder.Witness
sealed trait Witness

A witness to conduct an authorized operation on-chain. This could be spending an input, minting, rewarding, governance ops, certificate ops, etc.

The only ways to do this as of writing (2025-10-03) are

  • PubKey
  • Native Script
  • Plutus Script

The types include all additional data required to authorize the operation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
In this article