Skip to content

DexFundingSource.encode

Encodes a native DEX funding request or policy entry.

Imports

Named
import { DexFundingSource } from 'ox/tempo'

Examples

import { DexFundingSource } from 'ox/tempo'
 
const token = '0x20c0000000000000000000000000000000000001' as const
DexFundingSource.encode({ tokenIn: token, maxAmountIn: 30_000_000n })

Definition

function encode(
  request: DexFundingSource.Request,
): Hex.Hex

Source: src/tempo/DexFundingSource.ts

Parameters

request

request.maxAmountIn

  • Type: bigint
  • Optional

Input cap in base units. Omission is unlimited; zero permits no input.

request.tokenIn

  • Type: abitype_Address

Input token to exchange for the required token.

Return Type

Hex.Hex