UNPKG

@hyperionxyz/sdk

Version:

This SDK allows you to interact with the Hyperion API. You can use it to request data, create pools/positions and more.

26 lines (24 loc) 445 B
import { gql } from "graphql-request"; export const QuerySwapAmount = gql` query querySwapAmount( $from: String = "" $to: String = "" $amount: String = "" $flag: String = "" $safeMode: Boolean = true ) { api { getSwapInfo( from: $from to: $to amount: $amount flag: $flag safeMode: $safeMode ) { amountOut amountIn path } } } `;