Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NEMのAPIとモザイクであそぼう

 NEMのAPIとモザイクであそぼう

きりみん

June 03, 2018
Tweet

More Decks by きりみん

Other Decks in Programming

Transcript

  1. REST API͕༻ҙ͞Ε͍ͯΔ • NEM APIαʔόʔΛNIS(The NEM Infrastructure Server) ͱ͍͏Β͍͠ https://nemproject.github.io/

    • ී௨ͷAPIͱಉ͡Α͏ʹGET΍POSTͰୟ͘͜ͱ͕Ͱ͖Δ • ྫ • account/get?address=xxxxxxx • account/mosaic/owned?address=xxxxxx
  2. 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": {} } }
  3. 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" } }, }] }
  4. mosaicͷ࡞Γํ • mosaicΛ࡞Δ • ख਺ྉɿ೥ؒ10xem • ڙڅྔ΍ৡ౉Մ൱ͳͲΛઃఆͰ͖Δ • ख਺ྉ΋ઃఆͰ͖Δ •

    ख਺ྉΛઃఆ͢Δͱ୭͔͕ૹ৴Λ͢Δ౓ʹख਺ྉ͕࡞੒ऀʹೖͬͯ͘Δ • ख਺ྉ͸xemͰ΋ϞβΠΫͰ΋͍͍ • Ϗδωενϟϯεͷ༧ײʁ
  5. ࢀߟهࣄ • ެࣜυΩϡϝϯτ • https://nemproject.github.io/ • AndroidͰNEMΛ࢖ͬͯૹۚ͢Δ • https://ryuta46.com/693 •

    NEMͷωʔϜεϖʔεͱϞβΠΫͬͯԿͳͷ͔ʁ • https://www.cryptostream.jp/nem-namespace-mosaic-3551/