Alpha Private constructorCreates a new Premia V3 SDK instance.
The SDK needs to be initialized before it can be used with non-default parameters.
The service used to interact with the Coingecko v3 API.
The ethers.js multicall provider instance used for batched contract calls.
The service used to interact with the Premia Orderbook API.
Optional orderbookThe ethers.js provider instance used for interacting with the orderbook contract.
JsonRpcProvider
Optional orderbookThe SetProviderParams field used to instantiate the SDK.
Optional provider?: ProviderOptional rpcOptional orderbookThe ethers.js signer instance used for transacting with the orderbook contract.
Wallet
Optional orderbookThe address of the orderbook signer, if an orderbook signer is set.
Optional orderbookThe SetSignerParams field used to instantiate the SDK.
Optional phrase?: stringOptional privateThe ethers.js provider instance used for interacting with the main exchange contracts.
JsonRpcProvider
The SetProviderParams field used to instantiate the SDK.
Optional provider?: ProviderOptional rpcOptional signerThe ethers.js signer instance used for transacting with the main exchange contracts.
Wallet
Optional signerThe address of the signer, if a signer is set.
Optional signerThe SetSignerParams field used to instantiate the SDK.
Optional phrase?: stringOptional privateThe Premia voidnode object which handles all interactions with voidnode server.
Static entitiesThe static types used to interact with the Premia V3 protocol.
_entities
Optional uri: stringOptional apiKey: stringOptional wsUri: stringOptional uri: stringOptional apiKey: stringAuthentication headers to connect to Voidnode with
A uri to connect to the Voidnode indexed data service.
Optional params: SetProviderParamsOptional params: SetSignerParamsThis method is synchronous and will not initialize via this.provider.getSigner().
If this behavior is required, use async setSigner().
Optional params: SetSignerParamsReturn the serialialized SDK constructor params used to instantiate the SDK.
Static Private getStatic initializeBuilds the SDK with the provided parameters.
Default parameters will be used for any values not passed.
A promise that resolves when the SDK has been initialized.
Static initializeBuilds the SDK with the provided parameters, synchronously.
Async signers are not supported, use async initialize if necessary.
Default parameters will be used for any values not passed.
The synchronously initialized SDK.
Generated using TypeDoc
The SDK class is the main entry point for interacting with the Premia V3 protocol. It provides access to all the protocol's functionality, including, but not limited to: