@newcoin-foundation/newcoin-sdk
Version:
SDK for Newcoin blockchain
11 lines (8 loc) • 443 B
JavaScript
// requires from transpiled code to ensure the build is working as expected
const { NCO_BlockchainAPI, devnet_services, devnet_urls } = require('../../src/index');
test('it should perform a test call correctly', async () => {
const api = new NCO_BlockchainAPI(devnet_urls, devnet_services);
const keyPair = await api.createKeyPair();
expect(keyPair.prv_key).toBeDefined();
expect(keyPair.pub_key).toBeDefined();
})