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.
Optional
multicallThe ethers.js multicall provider instance used for batched contract calls.
https://github.com/0xsequence/sequence.js/tree/master/packages/multicall
Optional
novaThe ethers.js provider instance used for interacting with the orderbook contract.
JsonRpcProvider
Optional
novaThe SetProviderParams
field used to instantiate the SDK.
Optional
provider?: ProviderOptional
rpcOptional
novaThe ethers.js signer instance used for transacting with the orderbook contract.
Wallet
Optional
novaThe SetSignerParams
field used to instantiate the SDK.
Optional
phrase?: stringOptional
privateThe service used to interact with the Premia Orderbook API.
The API used to interact with the RFQ Messaging Network for Premia V3.
OrderbookAPI
The 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 SetSignerParams
field used to instantiate the SDK.
Optional
phrase?: stringOptional
privateThe Premia subgraph object which handles all interactions with the subgraph
Static
entitiesThe static types used to interact with the Premia V3 protocol.
_entities
Optional
uri: stringOptional
apiKey: stringOptional
wsUri: stringOptional
uri: stringOptional
apiKey: stringOptional
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: