Skip to main content

BabelFeeAgentOptions

export interface BabelFeeAgentOptions {
  address: Address
  assetClass: AssetClass
  minimum: bigint
  price: number
  utxos: TxInput[]
}

Properties

address

Address of the Babel fee agent. The assetclass tokens and any spare lovelace are returned to this address.

babelFeeAgentOptions.address satisfies Address

assetClass

AssetClass which can be swapped out of lovelace

babelFeeAgentOptions.assetClass satisfies AssetClass

minimum

Minimum number of AssetClass tokens per returned babel fee utxo.

babelFeeAgentOptions.minimum satisfies bigint

price

Price in lovelace per AssetClass (doesn't take into account decimal places)

babelFeeAgentOptions.price satisfies number

utxos

UTxOs containing only ADA, which can be used to pay for network fees and min-deposit, and can be used as collateral

babelFeeAgentOptions.utxos satisfies TxInput[]