FundingSourceDex.encode
Encodes a native DEX funding request or policy entry.
Imports
Named
import { FundingSourceDex } from 'ox/tempo'Examples
import { FundingSourceDex } from 'ox/tempo'
const token =
'0x20c0000000000000000000000000000000000001' as const
FundingSourceDex.encode({
tokenIn: token,
maxAmountIn: 30_000_000n
})Definition
function encode(
request: FundingSourceDex.Request,
): Hex.HexSource: src/tempo/FundingSourceDex.ts
Parameters
request
- Type:
FundingSourceDex.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

