Skip to main content

makeTxBody

export function makeTxBody(props: {
  collateral?: TxInput[]
  collateralReturn?: TxOutput
  dcerts: DCert[]
  encodingConfig?: TxBodyEncodingConfig
  fee: bigint
  firstValidSlot?: number
  inputs: TxInput[]
  lastValidSlot?: number
  metadataHash?: number[]
  minted: Assets
  outputs: TxOutput[]
  refInputs: TxInput[]
  scriptDataHash?: number[]
  signers: PubKeyHash[]
  totalCollateral?: bigint
  withdrawals: [StakingAddress, bigint][]
}): TxBody