Skip to content

Commit

Permalink
Merge pull request #11 from YasunoriMATSUOKA/feature/add-mosaic-revoc…
Browse files Browse the repository at this point in the history
…ation-tx-sample-and-note-to-observe-tx-monitor-with-namespace

docs: add mosaic revocation tx sample and note to observe tx monitor …
  • Loading branch information
YasunoriMATSUOKA authored May 24, 2023
2 parents b6839b4 + aa60ced commit 6466e09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions articles/05_mosaic.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,15 @@ transferable = false; //第三者への譲渡可否
revokable = true; //発行者からの還収可否
```

トランザクションは以下のように記述します。

```js
revocationTx = sym.MosaicSupplyRevocationTransaction.create(
sym.Deadline.create(epochAdjustment),
bob.address, //回収先アドレス
new sym.Mosaic(mosaicId, sym.UInt64.fromUint(3)), //回収モザイクIDと数量
networkType
).setMaxFee(100);
```


5 changes: 5 additions & 0 deletions articles/10_observer.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ listener.open().then(() => {

未承認トランザクションは transactionInfo.height=0 で受信します。

##### 注意事項
受信先アドレスやモザイクIDで受信検知をする場合は送信者がネームスペースを利用して送信している場合もあるのでご注意ください。
たとえば、メインネットでXYMのモザイクIDは`6BED913FA20223F8`ですが、ユーザーがネームスペースID(symbol.xym)で送信した場合はトランザクションには
`E74B99BA41F4AFEE`というIDが記録されています。

## ブロック監視

新規に生成されたブロックを検知します。
Expand Down

0 comments on commit 6466e09

Please sign in to comment.