iscn-message-types
Provides javascript/typescript protobuf message definition for ISCN message.

Repositories

Sample usage:

1
import { MsgCreateIscnRecord } from '@likecoin/iscn-message-types/dist/iscn/tx';
2
3
const registry = new Registry([
4
...defaultRegistryTypes,
5
['/likechain.iscn.MsgCreateIscnRecord', MsgCreateIscnRecord],
6
]);
7
8
const client = await SigningStargateClient.connectWithSigner(
9
RPC_URL,
10
signer,
11
{ registry }
12
);
13
14
...
15
16
const message = {
17
typeUrl: '/likechain.iscn.MsgCreateIscnRecord',
18
value: {
19
from: address,
20
record,
21
},
22
};
23
24
...
25
26
const response = await client.signAndBroadcast(address, [message], fee, '');
27
assertIsBroadcastTxSuccess(response);
Copied!
Last modified 9mo ago
Export as PDF
Copy link