EMC JS SDK

这是 ethereumjs-monorepo 项目说明。

Packages

package
npm
keywords

utility create private key

rlp encode keccak256 sign

create subject scribe subject send message

edgematrixjs for browser

基础用例

CommonJS and ESmodules

npm install --save @edgematrixjs/rtc

Create Subject

import { Http } from '@edgematrixjs/http';
import { RTC } from '@edgematrixjs/rtc';
const chatId = 2;
const privateKey = '';
const httpsUrl = 'https://oregon.edgematrix.xyz';
const emHttp = new Http({ baseURL: httpsUrl });
const rtc = new RTC();
const { _result, hash } = await rtc.createSubject(chainId, privateKey, emHttp);
//_result === 0 is success, the 'hash' is subject

Subscribe Subject

Send Message

Browser

Last updated