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
990
アプリエンジニアでも神絵師になりたい!
kirimin
4
5.3k
Watashi ni Kotlin ga maiorita
kirimin
0
480
はじめようきれいなコード
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
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.4k
as(型アサーション)を書く前にできること
marokanatani
9
2.6k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
100
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.2k
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
870
Arm移行タイムアタック
qnighy
0
300
Outline View in SwiftUI
1024jp
1
320
Jakarta EE meets AI
ivargrimstad
0
580
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
610
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
How to train your dragon (web standard)
notwaldorf
88
5.7k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Producing Creativity
orderedlist
PRO
341
39k
Automating Front-end Workflow
addyosmani
1366
200k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Building an army of robots
kneath
302
43k
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/