Skip to main content

Function: buildCreatePoolDto()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / buildCreatePoolDto

Function: buildCreatePoolDto()

buildCreatePoolDto(input): CreatePoolDTO

Defined in: packages/gswap-sdk/dist/index.d.ts:3909

Builds the CreatePool DTO. Key order: token0Key, token1Key, fee, startingPrice | startingSqrtPrice, token0Symbol, token1Symbol, uniqueKey, name, isPrivate, privateAccess. Prices are those of the canonical pair (token1 per token0); a price quoted the other way round is inverted by the caller before it gets here.

Parameters​

input​

CreatePoolInput

Returns​

CreatePoolDTO