This is a Node.js SDK of Ceffu OpenAPI
To start with, create an api key on Ceffu platform. If you do not have an account, please reach to Ceffu at here.
// install through npm
npm install @ceffu_custody/ceffu-openapi-sdk
// or install through yarn
yarn add @ceffu_custody/ceffu-openapi-sdk
const { APIClient, Enum } = require("@ceffu_custody/ceffu-openapi-sdk");
const apiKey = "...";
const apiSecret = "...";
const client = new APIClient({
apiKey,
apiSecret,
shouldValidate: true, // switch on/off params validation, default true
});
try {
const response = await client.getSystemStatus({
bizType: Enum.BizType.Deposit,
walletType: Enum.WalletType.Qualified,
});
// response: {
// data: {...},
// code: "000000",
// message: "Success",
// requestId: "..."
// }
} catch (error) {
// handle error
// error: {
// requestId: "...",
// status: ...,
// errorCode: ...,
// errorMessage: ...,
// }
}You can find the Ceffu OpenAPI documentation at here
If you require immediate assistance, we recommend you to speak with your Account Manager or contact our Support team. To facilitate debugging, please provide the requestId along with the api request.