Node.JS
Overview
Installation
npm install circular-enterprise-apisUsage
Example (CommonJS)
const { CEP_Account } = require('circular-enterprise-apis');
const Address = 'your-wallet-address';
const PrivateKey = 'your-private-key';
const blockchain = '0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2';
let account = new CEP_Account();
async function run() {
account.open(Address);
await account.updateAccount();
const submitResult = await account.submitCertificate("Enterprise API Test", PrivateKey);
if (submitResult.Result === 200) {
console.log("Certificate submitted:", submitResult);
} else {
console.log("Submission failed:", submitResult.message);
}
account.close();
}
run();Example (ES Modules)
Useful Links
Last updated