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
1k
アプリエンジニアでも神絵師になりたい!
kirimin
4
5.3k
Watashi ni Kotlin ga maiorita
kirimin
0
490
はじめようきれいなコード
kirimin
8
3k
Material Components for Android触ってみる
kirimin
7
1.9k
[社内LT]あたらしいMaterial Design
kirimin
1
1.7k
Hello-kirimin-chan
kirimin
0
130
Other Decks in Programming
See All in Programming
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
620
htmxって知っていますか?次世代のHTML
hiro_ghap1
0
330
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
130
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
From Translations to Multi Dimension Entities
alexanderschranz
2
130
CSC509 Lecture 14
javiergs
PRO
0
130
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
Jakarta EE meets AI
ivargrimstad
0
230
快速入門可觀測性
blueswen
0
320
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
760
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.1k
Statistics for Hackers
jakevdp
796
220k
Unsuck your backbone
ammeep
669
57k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Documentation Writing (for coders)
carmenintech
66
4.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
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/