Skip to content

DEXInfo Fees Endpoint

Alex Megalokonomos edited this page Feb 17, 2022 · 1 revision

Fee Estimation Endpoint

The fee estimation endpoint lives under the /fees route and accepts a POSTed JSON in the following format:

{ tx: AbstractTransactionMappingRequest }

Where the AbstractTransactionMappingRequest model is defined here: https://github.com/allinbits/emeris-libraries/blob/feat/mapper-updates/packages/types/src/EmerisTransactions.ts#L153-L157

Essentially we provide the chain name this Tx is for, the signing address and an array of abstract transactions/messages to be included.

Abstract transactions are defined here: https://github.com/allinbits/emeris-libraries/blob/feat/mapper-updates/packages/types/src/EmerisTransactions.ts#L151

The fees route handler then proceeds to:

Clone this wiki locally