CEP_Account.setBlockchain()

With this method you can set the blockchain where you create and search your certificates.

Function Signature

setBlockchain(blockchain)

Parameters

Parameter Name
Datatype

blockchain

String

Example (CommonJS)

const { CEP_Account } = require('circular-enterprise-apis');

const Address = 'your-wallet-address';

let account = new CEP_Account();

async function run() {
    //...
    account.setBlockchain("blockchain_address");
    
    //...
}

run();

Example (ES Modules)

import { CEP_Account } from 'circular-enterprise-apis';

const Address = 'your-wallet-address';

let account = new CEP_Account();

async function run() {
        //...
        account.setBlockchain("blockchain");
        //...        
}

run();

Last updated