Closed YoshihitoAso closed 5 years ago
@horsewin サンプルリクエスト
IN
curl -X POST \
http://XXXXXX/v1/JDR/MyTokens/ \
-H 'Content-Type: application/json' \
-d '{
"account_address_list": [
"0x322E8F3454E55217Ea474934B9f958Ac54635b23"
]
}'
OUT
{
"meta": {
"code": 200,
"message": "OK"
},
"data": [
{
"token": {
"token_address": "0x3BA1E638EAD72d942B6BBAb9F93C9Ea84d837D56",
"token_template": "IbetDepositaryReceipt",
"owner_address": "0x56f63dc2351BeC560a429f0C646d64Ca718e11D6",
"company_name": "TKB大学未来ガジェット研究室",
"rsa_publickey": "-----BEGIN PUBLIC KEY-----\nMIIFIjANBgkqhkiG9w0BAQEFAAOCBQ8AMIIFCgKCBQEAtiBUQ2vdYvIqnCdUzKIC\np7jIYVtJy8KGniy6ktE0DTcYG70pFYkGDyI043meSB6Lkk0rNWaKBn3wyz4lx2oX\n3JySFyXR4vE4DNTEKS0htImO4RuK4M50v7LOfB8VphXzu9JkdVuN8LuMx6L6dhsd\nTN/aUvXULvjOy9AJekl24s44w4BgEfGj/uBYNAmiNmpM3lnIdJOg1T+4aEShHyVN\n98dv1DZ1Hh0YhMmqHqRGIzAQ6pKoly2xSVEmwBV4l2O3XEZ8ErVNgHdi6BRQrIBl\n+zQn5TysSGv5TIO1ahztUIygrzX7aEa+QnF1ROBBJ8yBW0VjjKI2Oh3wDT8ROaWb\ntB7gYQlMX9St/HJvGKaDKPDGurMFsEZeeD9Y4GWlFFkQplKIC3Kr4u6TIxcAZyG3\ntIz1IZomm/Lh9eiFiAbOMLYPdPCzh1A6uCRoJuqrNXYbE2egpLsKSkEe4VAcdaPo\nVuOXLpbDaew0cvXQR5IklHGGPPGVqQV1cmJWIqF5b1bzqziu2No+TLZceUd3N9Eh\nQIYVG4rbX2I/x2/WFeG5RHl9Zc/iSUomUqpnGY3ved61smb7uklF/7ueyj8TIm7O\ncJxhYjj+szXxV2RJyxLvSPzloQ4GDI9wd0zlya2CoYgAONJ7wm82b1LrLLhfp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==\n-----END PUBLIC KEY-----",
"name": "カブチケ",
"symbol": "KBT",
"total_supply": 200000,
"details": "トレーディングでポイントを増やそう!",
"memo": "トレーディングでポイントを増やそう!",
"image_url": [
{
"id": 1,
"url": "https://ibet-images-dev.s3-ap-northeast-1.amazonaws.com/kabuticket.png"
},
{
"id": 2,
"url": ""
},
{
"id": 3,
"url": ""
}
],
"status": true,
"payment_method_credit_card": true,
"payment_method_bank": true,
"contact_information": "問い合わせ先",
"privacy_policy": "プライバシーポリシー"
},
"balance": 111,
"market_value_swap": 1110
}
]
}
現状の課題
・DRトークンの総資産評価を返却するAPIへのニーズあり。
ソリューション案
・http://XXXXXX/v1/JDR/MyTokens/ に返却項目を追加する。 ・時価評価は直近のMake買注文のレートを採用する。