Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
NEMのAPIとモザイクであそぼう
Search
きりみん
June 03, 2018
Programming
0
360
NEMのAPIとモザイクであそぼう
きりみん
June 03, 2018
Tweet
Share
More Decks by きりみん
See All by きりみん
AndroidエンジニアがRailsにチャレンジしてる理由
kirimin
1
1.5k
What are AtCoder and competitive programming
kirimin
0
9.9k
バーチャル男声幼女プログラマーとして活動した1年間の振り返り
kirimin
0
970
アプリエンジニアでも神絵師になりたい!
kirimin
4
5.3k
Watashi ni Kotlin ga maiorita
kirimin
0
470
はじめようきれいなコード
kirimin
8
3k
Material Components for Android触ってみる
kirimin
7
1.9k
[社内LT]あたらしいMaterial Design
kirimin
1
1.6k
Hello-kirimin-chan
kirimin
0
130
Other Decks in Programming
See All in Programming
サーバーレスで負荷試験!Step Functions + Lambdaを使ったk6の分散実行
shuntakahashi
6
1.6k
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
3
470
Our Websites Need a Lifestyle Change, Not a Diet
ryantownsend
0
150
Crafting Cross-Platform Adventures: Building a Game Engine with Kotlin Multiplatform
dwursteisen
0
120
A New Era of Testing
mannodermaus
2
510
事業フェーズの変化に対応する 開発生産性向上のゼロイチ
masaygggg
0
200
ドメイン駆動設計を実践するために必要なもの
bikisuke
4
330
Shinjuku.rb#95:心の技術書紹介
free_world21
1
110
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
280
React + TextAliveでカッコいいLyric Applicatioinを作ろう!!
tosuri13
0
400
RAGの回答精度評価用のQAデータセットを生成AIに作らせた話
kurahara
0
250
マルチモジュールにおけるテスト最適化
fxwx23
0
210
Featured
See All Featured
What the flash - Photography Introduction
edds
67
11k
It's Worth the Effort
3n
182
27k
Bash Introduction
62gerente
608
210k
Building a Modern Day E-commerce SEO Strategy
aleyda
36
6.8k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
89
16k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
28
1.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
359
19k
Agile that works and the tools we love
rasmusluckow
327
20k
How to train your dragon (web standard)
notwaldorf
85
5.6k
Done Done
chrislema
180
16k
Transcript
NEMͷAPIͱϞβΠΫ Ͱ͋ͦ΅͏ ˏkirimin
NEMͬͯʁ • ҉߸௨՟ɺϒϩοΫνΣʔϯϓϥοτϑΥʔϜ • XEMͱ͍͏ϝΠϯ௨՟͕͋Δ • mosaicͱ͍͏τʔΫϯΛ؆୯ʹ࡞ΕΔ • GUI্Ͱ༷ʑͳػೳΛఏڙ͍ͯ͠Δ •
REST API͕༻ҙ͞Ε͍ͯΔͱ͍͏ͷେ͖ͳಛ
REST API͕༻ҙ͞Ε͍ͯΔ • NEM APIαʔόʔΛNIS(The NEM Infrastructure Server) ͱ͍͏Β͍͠ https://nemproject.github.io/
• ී௨ͷAPIͱಉ͡Α͏ʹGETPOSTͰୟ͘͜ͱ͕Ͱ͖Δ • ྫ • account/get?address=xxxxxxx • account/mosaic/owned?address=xxxxxx
APIͷୟ͖ํ • NISଘࡏ͢Δεʔύʔϊʔυʹରͯ͠ୟ͘ • http://hugealice.nem.ninja:7890/account/ get?address=xxxxxxxx • 7890ϙʔτ൪߸Ͱݻఆ
account/get ?address=xxxxxxx { "meta": { "cosignatories": [], "cosignatoryOf": [], "status":
"LOCKED", "remoteStatus": "ACTIVE" }, "account": { "address": "", "harvestedBlocks": 0, "balance": 15495200352, "importance": 0.000008611776145299385, "vestedBalance": 10093992821, "publicKey": "", "label": null, "multisigInfo": {} } }
account/mosaic/owned? address=xxxxxx { "data": [ { "quantity": 15495200352, "mosaicId": {
"namespaceId": "nem", "name": "xem" } }, { "quantity": 3939000000, "mosaicId": { "namespaceId": "soralis", "name": "coin" } }, { "quantity": 1, "mosaicId": { "namespaceId": "nemket.nemket2017", "name": "entry" } }, }] }
REST API͕༻ҙ͞Ε͍ͯΔ • POSTܥAPIͳͲʹॺ໊ͱखྉ͕ඞཁ • ৄ͘͠ެࣜυΩϡϝϯτ • ΘΓͱ໘
nem-Kotlin • KotlinɺJava༻ͷNEM APIϥοϓϥΠϒϥϦ • https://github.com/ryuta46/nem-kotlin • ॺ໊·ΘΓͳͲϥοϓͯ͘͠Ε͍ͯΔ • ΜΓʂʂʂʂʂʂʂʂʂ
nem-Kotlin • ࢼͯ͠͠ΈͨΒ؆୯ͩͬͨ
ϞβΠΫʹ͍ͭͯ
mosaicʹ͍ͭͯ • NEMͷػೳͰಠࣗͷτʔΫϯΛ࡞ΕΔػೳ • ·ͣωʔϜεϖʔε(υϝΠϯΈ͍ͨͳͷ)Λ ങ͍ɺͦͷԼʹϞβΠΫΛ࡞͢Δ • XEMϞβΠΫͷҰͭͱ͍͏Ґஔ͚ͮ
mosaicͷ࡞Γํ • ωʔϜεϖʔεΛआΓΔ • ༗ޮظݶҰͰɺߋ৽ʹࣦഊ͢Δͱ mosaicͯ͢ഁغ͞Εͯ͠·͏ • खྉɿؒ100XEM
mosaicͷ࡞Γํ • mosaicΛ࡞Δ • खྉɿؒ10xem • ڙڅྔৡՄ൱ͳͲΛઃఆͰ͖Δ • खྉઃఆͰ͖Δ •
खྉΛઃఆ͢Δͱ୭͔͕ૹ৴Λ͢Δʹखྉ͕࡞ऀʹೖͬͯ͘Δ • खྉxemͰϞβΠΫͰ͍͍ • Ϗδωενϟϯεͷ༧ײʁ
mosaicͷ࡞Γํ • kirimin-tokenͭͬͯ͘Έͨ
NEM͔ΜͨΜͨͷ͍͠ʂ
ࢀߟهࣄ • ެࣜυΩϡϝϯτ • https://nemproject.github.io/ • AndroidͰNEMΛͬͯૹۚ͢Δ • https://ryuta46.com/693 •
NEMͷωʔϜεϖʔεͱϞβΠΫͬͯԿͳͷ͔ʁ • https://www.cryptostream.jp/nem-namespace-mosaic-3551/