Download OpenAPI specification:Download
ãã㯠chaintope 瀟ãéçºãããããã¯ãã§ãŒã³ Tapyrus ã䜿ã£ããããã¯ãã§ãŒã³ã«é¢ä¿ããæ©èœãç°¡åã«å©çšããããã® REST API ã§ãã çŸåšä»¥äžã®ãŠãŒã¹ã±ãŒã¹ããµããŒãããŠããŸããããã¯ä»åŸãæ¡åŒµãããŠãããŸãã
Tapyrus ãããã¯ãã§ãŒã³ã«ã€ããŠã¯ä»¥äžã®æ å ±ãåç §ããŠãã ããã
Tapyrus API 㯠REST API ãšããŠæäŸãããŠããŸããå©çšãéå§ããããã«ã¯ãTapyrus API ã® ãšã³ããã€ã³ã
ã«å¯ŸããŠã èªèšŒ
æžã¿ã®
ããŒã¯ã³ã䜿ãã¢ã¯ã»ã¹ããå¿
èŠããããŸãããŸããèªèšŒããããŠãŒã¶ãŒã¯ãããããèªèº«ã®ãŠã©ã¬ããã Tapyrus API å
éšã«æã€ããšã«ãªããŸãã
ãŠã©ã¬ããã§ã¯ãã®ãŠãŒã¶ãŒã®ããŒã¯ã³ãªã©ã®ã¢ã»ããã管çããããã®éµã管çãããã¢ã»ããã®ç§»åãªã©ã§å©çšãããŸãã
ãšã³ããã€ã³ãã¯ä»¥äžã®ãã©ãŒãããã§äœæãããŸãã
https://xxx.api.tapyrus.chaintope.com/api/v1
xxx
ã®éšåã¯åãŠãŒã¶ãŒåºæã®èå¥åã«ãªããŸããæ£åŒãªURLã¯ãããã·ã¥ããŒãã§ç¢ºèªã§ããŸãã
ããã·ã¥ããŒãã«ç»é²ãããšãchaintopeãç»é²æ å ±ã確èªåŸãã客æ§ã®APIãšã³ããã€ã³ããèšå®ããŸãã ãšã³ããã€ã³ããèšå®ããããŸã§ã¯ãAPIã®æ©èœã¯ãå©çšããã ããŸããã
Tapyrus APIã«æ¥ç¶ããéã«ã¯ãã¯ã©ã€ã¢ã³ã蚌ææžãå¿ èŠã«ãªããŸããããã·ã¥ããŒãã®ãã¯ã©ã€ã¢ã³ã蚌ææžãã®ã¡ãã¥ãŒããã ã¯ã©ã€ã¢ã³ã蚌ææžãçºè¡ããŠãã ããã çºè¡ãããšç§å¯éµãšå ¬ééµã®èšŒææžãå«ãPKCS#12圢åŒã®ãã¡ã€ã«ãããŠã³ããŒãã§ããŸãã
ããã·ã¥ããŒãããAPIã«æ¥ç¶ãããŠãŒã¶ãŒãäœæããŸããTapyrus APIã§ã¯ãŠãŒã¶ãŒåäœã«ãŠã©ã¬ãããäœæãããŸãã ãŠã©ã¬ããã§ã¯ã¢ã»ããã®åãåãããéä»ã«å¿ èŠãªå ¬ééµãšç§å¯éµã®ãã¢ã管çãããŠããŸãã ãã®ãããèªèšŒãè¡ã£ããŠãŒã¶ãŒããšã«ç¬ç«ããã¢ã»ããã®ç®¡çãå¯èœã«ãªããŸãã
ããã·ã¥ããŒãã®ãããŠãŒã¶ãŒäžèŠ§ãããã¢ã¯ã»ã¹ãããŠãŒã¶ãŒãäœæããããšãã§ããŸãã ãŠãŒã¶ãŒãäœæãããšããã®ãŠãŒã¶ãŒçšã®ã¢ã¯ã»ã¹ããŒã¯ã³ãçºè¡ãããŸãããã®ã¢ã¯ã»ã¹ããŒã¯ã³ãšã¯ã©ã€ã¢ã³ã蚌ææžã®äž¡æ¹ãæŒæŽ©ãããšã äžæ£ã¢ã¯ã»ã¹ãå¯èœã«ãªããããããŒã¿ã®åãæ±ãã«ã¯åå泚æããŠãã ããã
ã¯ã©ã€ã¢ã³ã蚌ææžãšãŠãŒã¶ãŒãäœæããããšãAPIã«ã¢ã¯ã»ã¹ã§ããããã«ãªããŸããç°¡åãªæ¥ç¶ç¢ºèªã¯ãcurlã§ä»¥äžã®ããã«è¡ãªããŸãã
$ openssl pkcs12 -in <ããŠã³ããŒããã.p12ãã¡ã€ã«ã®ãã¹> -out cert.pem -nodes -clcerts
$ curl -X GET -H 'Authorization: Bearer <ãŠãŒã¶ãŒã®ã¢ã¯ã»ã¹ããŒã¯ã³>' "https://xxx.api.tapyrus.chaintope.com/api/v1/timestamps" -E cert.pem
æåãããšAPIãžã®ã¢ã¯ã»ã¹ãå¯èœã«ãªã£ãŠããŸãããããã®èªèšŒæ å ±ã䜿ã£ãŠã以äžã«èšèŒããåAPIããå©çšããã ããŸãã
ãããã¯ãã§ãŒã³ã«ä»»æã®å€ãã¿ã€ã ã¹ã¿ã³ããšããŠèšé²ããŸãã
çŸåšãèšé²æ¹æ³ãšããŠ2çš®é¡ã®type
ïŒsimple
ïŒããã©ã«ãïŒãtrackable
ïŒããµããŒãããŠããŸãã
simple
ãæå®ããå Žåã¯ãå€ããã©ã³ã¶ã¯ã·ã§ã³å
ã®OP_RETURNã¢ãŠããããã«çŽæ¥åã蟌ãŸããŸãã
åçŽã«å€ããããã¯ãã§ãŒã³ã«èšé²ããå Žåã¯simple
ã®å©çšãæšå¥šããŸãã
trackable
ãæå®ããå Žåã¯ãããã·ã¥å€ãçµã¿åãããPay to Contractã¢ãã¬ã¹ãçæãããããã·ã¥å€ã¯éæ¥çã«èšé²ãããŸãã
ã¢ãã¬ã¹ã¯ãTimestampã®æ»ãå€ã®ïŒã€ã§ããpayment_base
ãšæå®ãããã³ã³ãã³ãããã·ã¥ã䜿ã£ãŠæ¬¡ã®ããã«èšç®ãããŸãã
ã¢ãã¬ã¹ã®å
¬ééµ = payment_base + SHA256(payment_base || ã³ã³ãã³ãããã·ã¥)G
â»Gã¯æ¥åæ²ç·ã®çæå
ãå
¬ééµããã¢ãã¬ã¹ïŒP2PKHïŒãå°åºãããšãæ»ãå€ã®ïŒã€ã§ããp2c_address
ãšåèŽããŸãã
trackable
ã䜿çšãããšããã·ã¥å€ã¯éæ¥çã«èšé²ãããŸããããããã¯ãã§ãŒã³äžã§äœ¿çšå¯èœãªã¢ã»ãããšããŠç®¡çã§ããŸãã
ãã®ãããããèšé²ãæã€ããŒã¿ãæŽæ°ããå Žåã«ããã®ã¢ã»ããã䜿çšããŠæ°ããtrackable
ã¢ã»ãããäœæããããšã§ã
èšé²ã®æŽæ°ãææ°æ§ãè¡šçŸããããšãå¯èœã«ãªããŸããæªäœ¿çšãªèšé²ã®ã¿latest
ãtrueã«ãªããŸãã
content
ã§æå®ããå€ã¯ãdigest
ã§æå®ããæ¹æ³ã§ããã·ã¥åãããŸãã
digest
æå®æ¹æ³ã®çš®é¡ã¯ä»¥äžã®éãã§ãã(æªæå®ã®å Žåsha256
ã䜿çš)
sha256
: SHA256ããã·ã¥ådouble_sha256
: SHA256ã®äºéããã·ã¥ånone
: å€ãããã·ã¥åãããã®ãŸãŸèšé²v1.3.0 ãŸã§ãã£ã content_hash
㯠v1.4.0 ããã¯éæšå¥šã§ããcontent
ã䜿çšããŠãã ãããcontent_hash
ã¯å°æ¥ã®ã¡ãžã£ãŒããŒãžã§ã³ã¢ããã§åé€ãããŸãã
all
) content
, digest
, prefix
, type
ãåãåãããããã¯ãã§ãŒã³ã«ããã·ã¥å€ãã¿ã€ã ã¹ã¿ã³ããšããŠèšé²ããŸãã
content required | string (TimestampContent) æ倧 255 ãã€ã |
digest | string (Digest) Enum: "sha256" "double_sha256" "none" |
prefix | string |
type | string (TimestampType) Enum: "simple" "trackable" |
{- "content": "Content for Timestamp",
- "digest": "sha256",
- "prefix": "TMESTAMPAPP",
- "type": "trackable"
}
{- "id": 2,
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "status": "unconfirmed",
- "content_hash": "3d1469aa427f97921a1b71c5981c1848041246290394a32ec26fdee2685bdece",
- "prefix": "TMESTAMPAPP",
- "wallet_id": "b831e51927edc7b3a21869909d526e51",
- "latest": "true",
- "timestamp_type": "trackable",
- "block_height": 101,
- "block_time": 1626169080,
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576",
- "prev_id": 1
}
ãããã¯ãã§ãŒã³ã«èšé²ããã¿ã€ã ã¹ã¿ã³ããååŸããcontent_hash
,prefix
,txid
ãäžèŠ§ã§è¡šç€ºããŸãã
all
) [- {
- "id": 2,
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "status": "unconfirmed",
- "content_hash": "3d1469aa427f97921a1b71c5981c1848041246290394a32ec26fdee2685bdece",
- "prefix": "TMESTAMPAPP",
- "wallet_id": "b831e51927edc7b3a21869909d526e51",
- "latest": "true",
- "timestamp_type": "trackable",
- "block_height": 101,
- "block_time": 1626169080,
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576",
- "prev_id": 1
}
]
ã¿ã€ã ã¹ã¿ã³ã ID ã«å¯Ÿå¿ãã Timestamp ã衚瀺ããŸãã
all
) id required | integer Timestamp idã |
{- "id": 2,
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "status": "unconfirmed",
- "content_hash": "3d1469aa427f97921a1b71c5981c1848041246290394a32ec26fdee2685bdece",
- "prefix": "TMESTAMPAPP",
- "wallet_id": "b831e51927edc7b3a21869909d526e51",
- "latest": "true",
- "timestamp_type": "trackable",
- "block_height": 101,
- "block_time": 1626169080,
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576",
- "prev_id": 1
}
trackable
ã¿ã€ãã®ã¿ã€ã ã¹ã¿ã³ããæŽæ°ããæ°ããªã¿ã€ã ã¹ã¿ã³ããèšé²ããŸããæŽæ°ãããã¿ã€ã ã¹ã¿ã³ã㯠latest
ãã£ãŒã«ãã« false
ãè¿ãæ§ã«ãªããææ°ã®ãã®ã§ã¯ãªãäºã確èªåºæ¥ãããã«ãªããŸãã
ãŸãããããã¯ãã§ãŒã³äžã§ã¯ IDãæå®ããã¿ã€ã ã¹ã¿ã³ãã«å¯Ÿå¿ãã Pay to Contract UTXO ãã€ã³ããããšããŠæã€æ°ããªãã©ã³ã¶ã¯ã·ã§ã³ããããŒããã£ã¹ããããŸãããã®ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¢ãŠãããããªã¹ãã«ã¯å€ãã¿ã€ã ã¹ã¿ã³ããç»é²ããããšããšåæ§ã« Pay to Contract ã¢ãã¬ã¹å®ã®æ¯æãã¢ãŠãããããã»ãããããŸãã
ããã«ãããå€ãã¿ã€ã ã¹ã¿ã³ãã® UTXO ã¯æ¶è²»ãããæŽæ°ãããæ°ããªã¿ã€ã ã¹ã¿ã³ããèšé²ãã UTXO ãçãŸããŸãããã®ä»çµã¿ã«ããããã® API ã«ãã£ãŠçºè¡ããããã©ã³ã¶ã¯ã·ã§ã³ããæŽæ°å¯Ÿè±¡ã®å€ãã¿ã€ã ã¹ã¿ã³ããæŽæ°ããå¯äžã®ãã®ã§ããããšãä¿èšŒãããŸãã
all
) id required | integer æŽæ°ãã察象ãšãªãã¿ã€ã ã¹ã¿ã³ãã®IDã§ãã |
content
, digest
, prefix
ãåãåãããããã¯ãã§ãŒã³ã«ããã·ã¥å€ãã¿ã€ã ã¹ã¿ã³ããšããŠèšé²ããŸãã
content required | string (TimestampContent) æ倧 255 ãã€ã |
digest | string (Digest) Enum: "sha256" "double_sha256" "none" |
prefix | string |
{- "content": "Content for Timestamp",
- "digest": "sha256",
- "prefix": "TMESTAMPAPP"
}
{- "id": 2,
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "status": "unconfirmed",
- "content_hash": "3d1469aa427f97921a1b71c5981c1848041246290394a32ec26fdee2685bdece",
- "prefix": "TMESTAMPAPP",
- "wallet_id": "b831e51927edc7b3a21869909d526e51",
- "latest": "true",
- "timestamp_type": "trackable",
- "block_height": 101,
- "block_time": 1626169080,
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576",
- "prev_id": 1
}
ä»»æã®æ°ã®ããŒã¯ã³ãæ°èŠçºè¡ããŸãã
all
) amount
ãåãåãæå®ããæ°ã®ããŒã¯ã³ãæ°èŠçºè¡ããŸãã
ä»»æã§token_type
ãèšå®ããããŒã¯ã³ã®çš®é¡ãæå®ã§ããŸãã
token_type
ãæªæå®ãªå Žåãåçºè¡å¯èœãªããŒã¯ã³ãçºè¡ãããŸãã
ããŒã¯ã³ã®çš®é¡ã¯ä»¥äžã®éãã§ãã
ãŸããtoken_type
ãæªæå®ãŸãã¯1
ã®å Žåãä»»æã§ããŒã¯ã³èå¥åid
ãæå®ããããšã§ãæå®ããããŒã¯ã³èå¥åã®ããŒã¯ã³ãåçºè¡ããŸãã
split
ãæå®ããããšã§çºè¡ãããã©ã³ã¶ã¯ã·ã§ã³ã«split
æ°åã®ã¢ãŠãããããè¿œå ãã
åã¢ãŠããããã«åçã«ãªãããã«ããŒã¯ã³ãçºè¡ã§ããŸãã
ããŒã¯ã³ã®éã«äœããåºãå Žåãäœãã®å€ã®èª¿æŽã¯æåŸã®ã¢ãŠããããã§è¡ãããŸãã
çºè¡éãsplit
ãããå°ããå Žåãæå®ãããçºè¡éã®æ°åã®ã¢ãŠãããããäœãããŸãã
äŸãã°ãamount
ã«10ãsplit
ã«3ãæå®ããå Žåããã©ã³ã¶ã¯ã·ã§ã³ã®ã¢ãŠããããã¯3ã€ã«åå²ããã
ããããã«å«ãŸããããŒã¯ã³ã®æ°éã¯3, 3, 4 ãšãªããŸãã
split
ã«æå®ã§ããå€ã®ç¯å²ã¯1以äžã100以äžã§ãã
metadata
ãšããŠããŒã¯ã³çºè¡ã«ä»»æã®ããŒã¿ãé¢é£ã¥ããããšãã§ããŸãã
metadata
ãæå®ããå Žåã¯ããã®ããã·ã¥å€ãçµã¿åãããPay to Contractã¢ãã¬ã¹ãçæãããmetadata
ã¯éæ¥çã«ãããã¯ãã§ãŒã³ã«èšé²ãããŸãã
ã¢ãã¬ã¹ã¯ãæ»ãå€ã®ïŒã€ã§ããpayment_base
ãšæå®ãããã¡ã¿ããŒã¿ã䜿ã£ãŠæ¬¡ã®ããã«èšç®ãããŸãã
ã¢ãã¬ã¹ã®å
¬ééµ = payment_base + SHA256(payment_base || ã¡ã¿ããŒã¿)G
â»Gã¯æ¥åæ²ç·ã®çæå
ãå
¬ééµããã¢ãã¬ã¹ïŒP2PKHïŒãå°åºãããšãæ»ãå€ã®ïŒã€ã§ããp2c_address
ãšåèŽããŸãã
amount required | integer |
token_type | integer |
split | integer |
metadata | string ããŒã¯ã³ã«é¢é£ããã¡ã¿ããŒã¿ãšãªãä»»æã®æååïŒURLãããã·ã¥å€ãªã©ïŒã§ãæ倧400æåã |
{- "amount": 100,
- "token_type": 1,
- "split": 100,
- "metadata": "Content of token metadata"
}
{- "token_id": "c3ec2fd806701a3f55808cbec3922c38dafaa3070c48c803e9043ee3642c660b46",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576"
}
ææããããŒã¯ã³ã®ç·éãååŸããããŒã¯ã³èå¥å(token_id
)ããšã«ç·é(amount
)ãäžèŠ§ã§è¡šç€ºããŸãã
all
) confirmation_only | boolean (ConfirmationOnlyParam) Example: confirmation_only=true ãªãã·ã§ã³ã§ |
[- {
- "token_id": "c3ec2fd806701a3f55808cbec3922c38dafaa3070c48c803e9043ee3642c660b46",
- "amount": 100,
- "metadata": "Content of token metadata",
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576"
}
]
æå®ããèå¥åãæã€åçºè¡å¯èœãªããŒã¯ã³ãä»»æã®éåçºè¡ããŸãã
all
) token_id required | string (TokenIdParam) ããŒã¯ã³ã®èå¥åã |
amount required | integer |
split | integer |
{- "amount": 100,
- "split": 100
}
{- "token_id": "c3ec2fd806701a3f55808cbec3922c38dafaa3070c48c803e9043ee3642c660b46",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576"
}
ä»»æã®æ°ã®ããŒã¯ã³ãæå®ããã¢ãã¬ã¹ã«å¯ŸããŠéä»ããŸãã
all
) token_id required | string (TokenIdParam) ããŒã¯ã³ã®èå¥åã |
address
ã§ããŒã¯ã³ãéä»ããçžæã®ã¢ãã¬ã¹ãæå®ããamount
ã§éä»ããããŒã¯ã³ã®éãæå®ããŸãã
address required | string |
amount | integer |
{- "address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "amount": 100
}
{- "token_id": "c3ec2fd806701a3f55808cbec3922c38dafaa3070c48c803e9043ee3642c660b46",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576"
}
ä»»æã®æ°ã®ããŒã¯ã³ãæå®ããè€æ°ã®ã¢ãã¬ã¹ã«å¯ŸããŠéä»ããŸãã
all
) token_id required | string (TokenIdParam) ããŒã¯ã³ã®èå¥åã |
ã¢ãã¬ã¹ãšéã®é
åãæå®ããŸãã
é
åã®åèŠçŽ ã§ã¯address
ã§ããŒã¯ã³ãéä»ããçžæã®ã¢ãã¬ã¹ãæå®ããamount
ã§éä»ããããŒã¯ã³ã®éãæå®ããŸãã"
required | Array of objects (TransferTokenRequest) |
{- "destinations": [
- {
- "address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "amount": 100
}
]
}
{- "token_id": "c3ec2fd806701a3f55808cbec3922c38dafaa3070c48c803e9043ee3642c660b46",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "p2c_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "payment_base": "02124fd6b3c968390be4828058efc941b83f8ce9ccb00cfde86423744dbcb82576"
}
ä»»æã®æ°ã®ããŒã¯ã³ãçŒåŽããŸãã
all
) token_id required | string (TokenIdParam) ããŒã¯ã³ã®èå¥åã |
amount | integer (AmountParam) Example: amount=100
|
ãµããžã§ã¯ãïŒãã©ããã³ã°ã®å¯Ÿè±¡ãšãªãç©ïŒãç»é²ããæ°èŠã§ãã©ããã³ã°ãéå§ããŸããæå®ããããµããžã§ã¯ãããã§ã«ãã©ããã³ã°äžã®å Žåã¯ãã©ããã³ã°ã®éå§ã«å€±æããŸãã
all
) from_address required | string äŸçµŠå ãè¡šãã¢ãã¬ã¹ |
required | Array of objects (TrackingDestination) ãµããžã§ã¯ãã®ç§»åå ãè¡šããŸãã |
{- "from_address": "1CY6TSSARn8rAFD9chCghX5B7j4PKR8S1a",
- "destinations": [
- {
- "address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "subjects": [
- "6948DF80-14BD-4E04-8842-7668D9C001F5"
]
}
]
}
{- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc"
}
ãµããžã§ã¯ãã®ç§»åãèšé²ããŸãããµããžã§ã¯ãããã©ããã³ã°äžã§ãªãå Žåã¯èšé²ã«å€±æããŸãã
all
) required | Array of objects (TrackingDestination) ãµããžã§ã¯ãã®ç§»åå ãè¡šããŸãã |
{- "destinations": [
- {
- "address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "subjects": [
- "6948DF80-14BD-4E04-8842-7668D9C001F5"
]
}
]
}
{- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc"
}
ãã©ããã³ã°äžã®ãµããžã§ã¯ããæ¶è²»ããããã®ãšã¿ãªããŠããã©ããã³ã°ãçµäºããŸãããµããžã§ã¯ãããã©ããã³ã°äžã§ãªãå Žåã¯å€±æããŸãã
all
) subjects required | Array of strings (TrackingSubjectId) æ¶è²»ãããµããžã§ã¯ãã瀺ããŸãã |
{- "subjects": [
- "6948DF80-14BD-4E04-8842-7668D9C001F5"
]
}
{- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc"
}
ãµããžã§ã¯ãã®ç§»åã®å±¥æŽãè¿ããŸããå±¥æŽã¯çºçæ¥æã®æé ã§ãœãŒããããŠããŸãã
all
) subject_id required | string (TrackingSubjectId) Example: 6948DF80-14BD-4E04-8842-7668D9C001F5 ãµããžã§ã¯ãã®èå¥åã |
[- {
- "trace_id": 1,
- "subject_id": "6948DF80-14BD-4E04-8842-7668D9C001F5",
- "tracking_payload": "545001fd8001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002df31817469c8c55647",
- "tracking_payload_output_index": 1,
- "inclusion_proof": "7598e2d934e1502a2e4e15f1ca3329bd444815430d6cdfe8465cdead162f824d3ed8d0fec153db11789998e1dae08f1210fe8dede07362b51a432c5dcf597388738b46b3bf72d2120e7c5ae9324940e159754d6548255c1b189507be2fcbae45eff9ee348b767ff382773444200f2e89c1469366306557c178d07deafb1c8197e20482237f0bc1f273021ee3fcbf1ad06f1c77829a91f2834d96d7d3eadd06fe8b81959d52cd979e0881ea7e6efdd1e2f5441bf30f346ada077ae16dcf4dec545e4116202dfe42a3a38d009cc5ae539942a9d73e945495913a22386c833660c51e381338c65bd474346210ac4530d7d5a186b416fab9ea06fbfd8ddcdd0311cb34b1175ea50a0b9364a0a6e4a815f964d2249308bae0853c611f44c9a3445a6138f028852d9eca13fc09bcd9b1f8606710240907d7697b2e851e0bd8ba26f015b962c296edf9e4b00d23083c9c504f10ffdc02ae8328532ebd3bb36a30b7a630ddf4129a1e9e21c4d787c980d12d8c978e598ad31ab0e371397b864b1dd4ac26",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "tx_index": 0,
- "block_height": 101,
- "block_time": 1626169080,
- "from_address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "to_address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "moved": true
}
]
ãµããžã§ã¯ãã®ç§»åå±¥æŽ(trace)ã«é¢ããæ å ±ãè¿ããŸãã
all
) trace_id required | number ãµããžã§ã¯ãã®ç§»åå±¥æŽ(trace)ã«äžæã«æ¯ãããID |
{- "trace_id": 1,
- "subject_id": "6948DF80-14BD-4E04-8842-7668D9C001F5",
- "parents": [
- {
- "subject_id": "6948DF80-14BD-4E04-8842-7668D9C001F5",
- "merkle_root": "a6964be0afa2451a7e95806b90ae6e9d2de35b9e6c94a168133e8d354d401267",
- "merkle_path": [
- "a6964be0afa2451a7e95806b90ae6e9d2de35b9e6c94a168133e8d354d401267"
]
}
], - "child_subject_ids": [
- "6948DF80-14BD-4E04-8842-7668D9C001F5"
], - "tracking_payload": "545001fd8001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002df31817469c8c55647",
- "tracking_payload_output_index": 1,
- "inclusion_proof": "7598e2d934e1502a2e4e15f1ca3329bd444815430d6cdfe8465cdead162f824d3ed8d0fec153db11789998e1dae08f1210fe8dede07362b51a432c5dcf597388738b46b3bf72d2120e7c5ae9324940e159754d6548255c1b189507be2fcbae45eff9ee348b767ff382773444200f2e89c1469366306557c178d07deafb1c8197e20482237f0bc1f273021ee3fcbf1ad06f1c77829a91f2834d96d7d3eadd06fe8b81959d52cd979e0881ea7e6efdd1e2f5441bf30f346ada077ae16dcf4dec545e4116202dfe42a3a38d009cc5ae539942a9d73e945495913a22386c833660c51e381338c65bd474346210ac4530d7d5a186b416fab9ea06fbfd8ddcdd0311cb34b1175ea50a0b9364a0a6e4a815f964d2249308bae0853c611f44c9a3445a6138f028852d9eca13fc09bcd9b1f8606710240907d7697b2e851e0bd8ba26f015b962c296edf9e4b00d23083c9c504f10ffdc02ae8328532ebd3bb36a30b7a630ddf4129a1e9e21c4d787c980d12d8c978e598ad31ab0e371397b864b1dd4ac26",
- "txid": "6fce02d39279f6d645ecc710ebcf1dbb7b8104106553d8da13f5db79c5a628fc",
- "tx_index": 0,
- "block_height": 101,
- "block_time": 1626169080,
- "from_address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "to_address": "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd",
- "moved": true
}
æå®ããã¢ãã¬ã¹ãææããŠããsubjectã®ãªã¹ããååŸããŸãã æå®ããã¢ãã¬ã¹ã¯èªèº«ãçæããã¢ãã¬ã¹ã§ãªããã°ãããŸããã èªèº«ãçæããã¢ãã¬ã¹ã§ãªãå Žåã¯HTTPã¹ããŒã¿ã¹ã³ãŒããšããŠ404(Not Found)ãè¿ããŸãã subjectãéå±€åãããŠããå Žåã¯ãäžäœéå±€ã®subjectãå«ããŠè¿ããŸãã æå®ããã¢ãã¬ã¹ã«å¯Ÿå¿ããsubjectãååšããªãå Žåã¯ç©ºã®ãªã¹ããè¿ããŸãã
all
) address required | string Example: mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd ã¢ãã¬ã¹ |
per | integer (PerPageParam) 1ããŒãžãããã®ä»¶æ° |
page | integer (PageNumberParam) ããŒãžçªå· |
{- "count": 1,
- "subjects": [
- "6948DF80-14BD-4E04-8842-7668D9C001F5"
]
}
ãããŸã§çæããã¢ãã¬ã¹ãäžèŠ§ã«ããŠè¿ããŸãã
ä»»æã§purpose
ãèšå®ããååŸããã¢ãã¬ã¹ã®çš®é¡ãæå®ã§ããŸããæªæå®ã®å Žåãæ±çšçã«äœ¿ãã¢ãã¬ã¹ã®ã¿ååŸããŸãã
purpose
ã«general
ãšå
¥åãããšãçæããã¢ãã¬ã¹ã®ãã¡ãæ±çšçã«äœ¿ãã¢ãã¬ã¹ã®ã¿ååŸããŸãã
purpose
ã«all
ãšå
¥åãããšãçæããã¢ãã¬ã¹ãã¹ãŠååŸããŸãã
purpose
ã«tracking
ãšå
¥åãããšãçæããã¢ãã¬ã¹ã®ãã¡ããã©ããã³ã°ã«äœ¿çšãããŠããã¢ãã¬ã¹ãååŸããŸãã
all
) per | integer (PerPageParam) 1ããŒãžãããã®ä»¶æ° |
page | integer (PageNumberParam) ããŒãžçªå· |
purpose | string (PurposeAddressParam) ååŸãããã¢ãã¬ã¹ |
{- "count": 1,
- "addresses": [
- "mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd"
]
}
åéçšã®ã¢ãã¬ã¹ãçæããŠè¿ããŸãã
ä»»æã§purpose
ãèšå®ããçæããã¢ãã¬ã¹ã®çš®é¡ãæå®ã§ããŸããæªæå®ã®å Žåãæ±çšçã«äœ¿ãã¢ãã¬ã¹ãçæããŸãã
purpose
ã« general
ãšå
¥åããããŸãã¯æªæå®ã®å Žåãæ±çšçã«äœ¿ãã¢ãã¬ã¹ãçæããŸããpurpose
ã«tracking
ãšå
¥åãããšããã©ããã³ã°ã«äœ¿çšããã¢ãã¬ã¹ãçæããŸããall
) purpose | string |
{- "purpose": "general"
}
"mnzdZUieW2Hqe9GzZzVbcA7nHkDeFhJFzd"
ãŠãŒã¶ãŒãæ°ããäœæããŸãããã® API ãå®è¡ããã«ã¯ç®¡çè æš©éããã£ããŠãŒã¶ãŒã®ã¢ã¯ã»ã¹ããŒã¯ã³ãå©çšããŠãªã¯ãšã¹ããããå¿ èŠããããŸãã管çè æš©éã¯ããã·ã¥ããŒãã§èšå®ããããšãã§ããŸãã
all
) subject required | string [ 1 .. 128 ] characters äœæãããŠãŒã¶ãŒã®ååãã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã«ãããIDãªã©ããŠãŒã¶ãŒãèå¥ããããã®ä»»æã®æååãæå®ã§ããŸãã |
expires_at | integer äœæãããŠãŒã¶ãŒã®ã¢ã¯ã»ã¹ããŒã¯ã³ã®æå¹æéã UNIX ã¿ã€ã ã®ç§åäœã§æå®ã§ããŸãã |
{- "subject": "user 01",
- "expires_at": 1231006505
}
{- "subject": "user 01",
- "expires_at": 1231006505,
- "access_token": "PRzX5gAh7jV0JNUG56OMnx9krwejuE4axMlCRXLaEye5prBntiI80FWC5BonryyZ"
}
ãŠãŒã¶ãŒã®id
,balances
, addresses
ã®æ
å ±ãè¿ããŸããid
㯠sub
èŠçŽ ã§è¿ããŸãã
balances
ã¯ãŠãŒã¶ãŒãæ〠TPC (Tapyrus ã®åºè»žã³ã€ã³ïŒã®æ®é«ãè¿ããŸãããTapyrus API ãŠãŒã¶ãŒãçŽæ¥ TPC ãå©çšããã®ã¯éæšå¥šã§ãããŸããå°æ¥ã®ããŒãžã§ã³ã§åé€ãããŸãã
balances
ãaddresses
ã¯éæšå¥šã§ããããŒã¯ã³ã®æ®é«ã®ååŸããã³ãã¢ãã¬ã¹ã®äžèŠ§ã®ååŸã¯ããããã ããŒã¯ã³ã®ç·éååŸ API
ãã¢ãã¬ã¹ã®äžèŠ§ API
ãå©çšããããšãæšå¥šããŸãããããã¯å°æ¥ã®ããŒãžã§ã³ã§åé€ãããŸãã
all
) confirmation_only | boolean (ConfirmationOnlyParam) Example: confirmation_only=true ãªãã·ã§ã³ã§ |
{- "sub": 1,
- "balances": {
- "<token_id>": 1000000000
}, - "addresses": [
- "1FkZ5tBroQA8GiNstmtjLcYjGcqZTfJJhh"
]
}