Alpha Creates a new Premia V3 SDK instance.
The SDK needs to be initialized before it can be used with non-default parameters.
Optional authentication: VoidnodeAuthenticationThe apollo voidnode client used to fetch data from the Premia voidnode server.
ApolloClient
Optional queryThe voidnode-specific parameters to be used for upcoming voidnode queries.
{} (empty object)
The voidnode URL to use for fetching indexed contract data.
Parses a token input to return a token address string.
The token input which can be either a Token object or a string representing the address.
Optional orderType: OrderTypeOptional isOpen: booleanOptional account: stringOptional startTime: numberOptional endTime: numberOptional searchInput: stringOptional isOpen: booleanOptional isExpired: booleanOptional options: { Optional isOptional maturity?: BigNumberishOptional strike?: BigNumberishOptional isExpired: booleanOptional timestamp: numberOptional isOpen: booleanOptional type: stringOptional poolAddress: stringOptional account: stringOptional startTime: numberOptional endTime: numberOptional searchInput: stringOptional type: stringOptional vaultAddress: stringOptional account: stringOptional startTime: numberOptional endTime: numberOptional searchInput: stringGenerated using TypeDoc
The PremiaVoidnode class is the entry point for interacting with the Premia V3 voidnode server to query on-chain and indexed data using various APIs and services.