@jup-ag/perpetuals-sdk
v0.1.4
Published
### Install ``` npm i @jup-ag/perpetuals-sdk ```
Downloads
4
Keywords
Readme
Perpetual SDK
Install
npm i @jup-ag/perpetuals-sdk
About Message
Message is a JSON serializable object containing 3 properties
- status: status is an enum with 4 possibilities -> Pending, Error, Success, Failed
- code: this can be an error code as a string ie '6001' or 'MAX_ATTEMPTS'
- description: this can be a user friendlier description of the error code
About Status
While you can use it very flexibly, this is how we intend to use it:
- Status.Pending -> indicate that it is still in process
- Status.Error -> error messages but might not indicate finality aka retries might be on the way
- Status.Failed -> this indicate finality. no more retries
- Status.Success -> everything is good