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
980
アプリエンジニアでも神絵師になりたい!
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.7k
Hello-kirimin-chan
kirimin
0
130
Other Decks in Programming
See All in Programming
CSC509 Lecture 05
javiergs
PRO
0
180
watsonx.ai Dojo #3 プロンプトエンジニアリング入門
oniak3ibm
PRO
0
350
画像でわかる北島直樹
naoki0917
0
110
GPU Hash Table | レイトレ合宿10
yknishidate
0
230
CSC509 Lecture 06
javiergs
PRO
0
130
20241004 モノタロウ式~ドメインモデリングとリアーキテクチャ
monotaro
PRO
2
660
4年間変わらなかった YOUTRUSTのアーキテクチャ
daiki1003
2
680
GrafanaのHTTP API を眺めてみよう
rinchoku
0
460
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
1
770
レイトレ合宿10 レンダラー紹介 / Renderer Introduction, Ray Tracing Camp 10
shocker_0x15
0
630
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
220
現場から考えるソフトウェアエンジニアリングの価値と実験
nomuson
1
140
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
The Cost Of JavaScript in 2023
addyosmani
43
5.9k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Visualization
eitanlees
143
15k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Making the Leap to Tech Lead
cromwellryan
131
8.9k
Navigating Team Friction
lara
183
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
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/