Celsius JavaScript SDK provides an easy and secure way to communicate with the Celsius API.
http-client
for sending PUT requests. Kudos to @ptlls
CelsiusInstance.getSupportedCountries(userSecret)
that returns the list of countries supported by Celsius.CelsiusInstance.health(message)
checks the health of the server. Kudos to @andreujuanc
CelsiusInstance.getKycVerificationStatus(userId, userSecret)
checks the KYC status, similar to existing getKycStatus
method, but takes also userId
as a parameter
and returns a response containing property status
which shows the status of KYC and reason
which states the reason for the status if needed.CelsiusInstance.startKycVerification(userId, documentType, userDocuments, userSecret)
starts the KYC verification same as existing verifyKyc
method, but it doesn't
create the user, but rather receives an existing user's id - userId
as a parameterCelsiusInstance.createUser(user)
which returns userId
which can be used to manipulate user info and starting KYC verification. Also, the user_token
property will be used as userSecret
CelsiusInstance.updateUser(userId, user, userSecret)
CelsiusInstance.updateUserEmail(email, userSecret)
CelsiusInstance.confirmTermsOfUse(termsOfUseId, confirmationDate, userSecret)
use to accept the latest terms of use. Kudos to @ptlls
CreateUser
with properties first_name
, last_name
, middle_name
?, email
?, title
?, date_of_birth
,
citizenship
, country
, state
?, city
, zip
, street
, building_number
?, flat_number
, itin
?, national_id?,
ssn
?, gender
, user_token
UpdateUser
with properties first_name
, last_name
, middle_name
?, email
?,title
?, date_of_birth
,
citizenship
,country
,state
?,city
,zip
, street
,building_number
?,flat_number
?,itin
?,
national_id
?, ssn
?, gender
,UpdateEmail
with email
property, for updating user email.CreateUserResponse
with properties userId
, userToken
SupportedCountriesResponse
with properties alpha2
, alpha3
, countryCallingCodes
, currencies
emoji
, ioc
, languages
, name
and status
KYCStatusResponse
with properties status
and reasons
getInterestRates
return type changed to Promise<InterestRates[]>
. Kudos to @barathvk
getTransactionSummary
, pagination options parameter changed from PaginationOptions
to CelsiusPaginationOptions
. Kudos to @crypto-diplodocus and @rbayliss
getCoinTransactions
, pagination options changed from PaginationOptions
to CelsiusPaginationOptions
. Kudos to @crypto-diplodocus and @rbayliss
coin
property to CelsiusWithdrawOptions
nokogiri
from 1.10.8 to 1.12.5path-parse
from 1.0.6 to 1.0.7addressable
from 2.5.2 to 2.8.0hosted-git-info
from 2.7.1 to 2.8.9lodash
from 4.17.19 to 4.17.21axios
from 0.18.1 to 0.21.1CelsiusInstance.createUser
CelsiusInstance.getUsers
CelsiusInstance.changeMetadata
CelsiusInstance.changeWithdrawalAddress
PaginationOptions
UserWithdrawalAddress
UserMetadataResponse
UserCreateResponse
UsersResponse
WithdrawalAddress
InstitutionalUser
amount_precise
to the CelsiusTransactionRecord
type. It provides the exact transaction amount, without any rounding applied.CelsiusSDKError
that encapsulates errors raised within the Celsius SDK. This class extends the Error class and contains the following additional attributes:
CelsiusSDKError
and ValidationError
classes used by Celsius SDK to encapsulate errors.CelsiusInstance.getTransctionSummary(pagination, userSecret)
and CelsiusInstance.getCoinTransactions(coin, pagination, userSecret)
.
original_interest_coin
, before conversion to another asset.This release adds the following support for originating withdrawal scheme for whitelabel partners:
getWithdrawalAddresses(userSecret)
which allows retrieving all withdrawal addresses for the given user;getWithdrawalAddressForCoin(coin, userSecret)
which allows retrieving withdrawal address for the given coin and user.