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
Quine, Polyglot, 良いコード
qnighy
4
650
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
930
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.7k
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
140
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
200
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
250
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
630
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
180
21k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Unsuck your backbone
ammeep
668
57k
Designing for Performance
lara
604
68k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Statistics for Hackers
jakevdp
796
220k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
KATA
mclloyd
29
14k
Navigating Team Friction
lara
183
14k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Building Your Own Lightsaber
phodgson
103
6.1k
Bash Introduction
62gerente
608
210k
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/