App API
Brink's App API is primarily used to retrieve order data for display on front ends
Get API Information
Estimate Cost of an Order
Path Parameters
Name
Type
Description
{
tokenIn: {...},
tokenOut: {...},
tokenInAmount: <int>,
tokenOutAmount: <int>,
tokenInAmountDecimals: <int>,
tokenOutAmountDecimals: <int>,
gasPrice: <decimal>,
marketPrices: {
ETH_USD: <decimal>,
TokenIn_ETH: <decimal>,
TokenOut_ETH: <decimal>
},
marketCosts: {
TokenInAmount_TokenOut: <decimal>,
TokenInAmount_ETH: <decimal>,
TokenInAmount_USD: <decimal>,
TokenOutAmount_TokenIn: <decimal>,
TokenOutAmount_ETH: <decimal>,
TokenOutAmount_USD: <decimal>
},
totalGasEstimate: {
type: ‘totals’,
gas: <int>,
gas_ETH: <decimal>,
gas_USD: <decimal>,
gas_TokenIn: <decimal>,
gas_TokenOut: <decimal>
},
gasEstimates: [
{
type: ‘brinkAccountDeploy’,
gas: <int>,
gas_ETH: <decimal>,
gas_USD: <decimal>,
gas_[TokenInAddress]: <decimal>,
gas_[TokenOutAddress]: <decimal>
},
{
type: ‘tokenSwap’,
gas: <int>,
gas_ETH: <decimal>,
gas_USD: <decimal>,
gas_[TokenInAddress]: <decimal>,
gas_[TokenOutAddress]: <decimal>
},
{
type: ‘nftBuy’,
gas: <int>,
gas_ETH: <decimal>,
gas_USD: <decimal>,
gas_[TokenInAddress]: <decimal>,
gas_[TokenOutAddress]: <decimal>
},
{
type: ‘overhead’,
gas: <int>,
gas_ETH: <decimal>,
gas_USD: <decimal>,
gas_[TokenInAddress]: <decimal>,
gas_[TokenOutAddress]: <decimal>
}
]
}Get Order Details for a Single Order
Path Parameters
Name
Type
Description
Retrieve Orders
Path Parameters
Name
Type
Description
Last updated