import { Tx } from "https://deno.land/x/lucid@0.7.8/src/lucid/mod.ts";
Constructors
Methods
Needs to be a public key address. The PaymentKeyHash is taken when providing a Base, Enterprise or Pointer address. The StakeKeyHash is taken when providing a Reward address.
Add a payment or stake key hash as a required signer of the transaction.
Conditionally apply to the transaction.
Converts strings to bytes if prefixed with '0x'.
A public key or native script input. With redeemer it's a plutus script input.
Compose transactions (Similar to apply, but applies a tx object to the current tx instead).
Delegate to a stake pool.
Deregister a reward address.
All assets should be of the same policy id. You can chain mintAssets functions together if you need to mint assets with different policy ids. If the plutus script doesn't need a redeemer, you still need to specifiy the empty redeemer.
Pay to a public key or native script address.
Pay to a public key or native script address with datum or scriptRef.
Pay to a plutus script address with datum or scriptRef.
Register a stake pool. A pool deposit is required. The metadataUrl needs to be hosted already before making the registration.
Register a reward address in order to delegate to a pool and receive rewards.
Retire a stake pool. The epoch needs to be the greater than the current epoch + 1 and less than current epoch + eMax. The pool deposit will be sent to reward address as reward after full retirement of the pool.
Return the current transaction body in Hex encoded Cbor.
Update a stake pool. No pool deposit is required. The metadataUrl needs to be hosted already before making the update.