Construct a new BaseAPI object.
An instance of the Premia SDK.
Readonly premiaThe Premia SDK instance.
Protected streamThe current index of quote streams. Used to cancel stale streams.
Returns a promise containing a populated transaction to cancel option exercise before maturity. Allows the user to use the SDK without providing a signer.
{string} Contract address of the option.
{bigint} strike price of the option.
{bigint} maturity of the option
{bigint} size of the option to exercise.
Promise containing the contract transaction.
Returns a promise containing a populated transaction to exercise an option. Allows the user to use the SDK without providing a signer.
{string} Contract address of the option.
{bigint} strike price of the option.
{bigint} maturity of the option
{bigint} size of the option to exercise.
Promise containing the contract transaction.
Returns a promise containing a populated transaction to settle the exercised long options held by the caller. Allows the user to use the SDK without providing a signer.
{string} Contract address of the option.
{bigint} strike price of the option.
{bigint} maturity of the option
{bigint} size of the option to settle.
Promise containing the contract transaction.
Returns a promise containing a populated transaction to settle the short options held by the caller. Allows the user to use the SDK without providing a signer.
{string} Contract address of the option.
{bigint} strike price of the option.
{bigint} maturity of the option
{bigint} size of the option to settle.
Promise containing the contract transaction.
get the amount of exerciseToken to pay to exercise the given amount of contracts
The address of the option.
The strike price of the option.
The size of the option.
The amount of exerciseToken to pay to exercise the given amount of contracts
get the amount of collateral that would be received for a given amount of long tokens
The address of the option.
The strike price of the option.
The size of the option.
The amount of collateral that would be received for a given amount of long tokens
Generated using TypeDoc
Represents a class for handling pool operations related to the voidnode server and the pool contracts.