Update 2020-10-19T17:51:54.815Z

This commit is contained in:
Matthew Little
2020-10-19 19:51:59 +02:00
parent c32c4cb05c
commit 637a3e6fde
313 changed files with 46860 additions and 807 deletions

View File

@@ -1,17 +0,0 @@
{
"limit": 20,
"offset": 0,
"total": 0,
"results": [
{
"event_index": 0,
"event_type": "stx_asset",
"asset": {
"asset_event_type": "transfer",
"sender": "STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6",
"recipient": "ST2TJRHDHMYBQ417HFB0BDX430TQA5PXRX6495G1V",
"amount": "500000"
}
}
]
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that returns address assets","title":"AddressAssetsListResponse","type":"object","required":["results","limit","offset","total"],"properties":{"limit":{"type":"integer","maximum":30},"offset":{"type":"integer"},"total":{"type":"integer"},"results":{"type":"array","items":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEvent","oneOf":[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEventSmartContractLog","description":"Only present in `smart_contract` and `contract_call` tx types.","allOf":[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["event_index"],"properties":{"event_index":{"type":"integer"}}},{"type":"object","required":["event_type","contract_log"],"properties":{"event_type":{"type":"string","enum":["smart_contract_log"]},"contract_log":{"type":"object","additionalProperties":false,"required":["contract_id","topic","value"],"properties":{"contract_id":{"type":"string"},"topic":{"type":"string"},"value":{"type":"object","additionalProperties":false,"required":["hex","repr"],"properties":{"hex":{"type":"string"},"repr":{"type":"string"}}}}}}}]},{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEventStxAsset","description":"Only present in `smart_contract` and `contract_call` tx types.","allOf":[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["event_index"],"properties":{"event_index":{"type":"integer"}}},{"type":"object","required":["event_type","asset"],"properties":{"event_type":{"type":"string","enum":["stx_asset"]},"asset":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEventAsset","additionalProperties":false,"properties":{"asset_event_type":{"$schema":"http://json-schema.org/draft-07/schema#","title":"TransactionEventAssetType","type":"string","enum":["transfer","mint","burn"]},"asset_id":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"amount":{"type":"string"},"value":{"type":"string"}}}}}]},{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEventFungibleAsset","allOf":[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["event_index"],"properties":{"event_index":{"type":"integer"}}},{"type":"object","required":["event_type","asset"],"properties":{"event_type":{"type":"string","enum":["fungible_token_asset"]},"asset":{"type":"object","additionalProperties":false,"required":["asset_event_type","asset_id","sender","recipient","amount"],"properties":{"asset_event_type":{"type":"string"},"asset_id":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"amount":{"type":"string"}}}}}]},{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"TransactionEventNonFungibleAsset","allOf":[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["event_index"],"properties":{"event_index":{"type":"integer"}}},{"type":"object","required":["event_type","asset"],"properties":{"event_type":{"type":"string","enum":["non_fungible_token_asset"]},"asset":{"type":"object","additionalProperties":false,"required":["asset_event_type","asset_id","sender","recipient","value"],"properties":{"asset_event_type":{"type":"string"},"asset_id":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"value":{"type":"object","additionalProperties":false,"required":["hex","repr"],"properties":{"hex":{"type":"string"},"repr":{"type":"string"}}}}}}}]}]}}}}

View File

@@ -1,9 +0,0 @@
{
"stx": {
"balance": "1000000",
"total_sent": "0",
"total_received": "1000000"
},
"fungible_tokens": {},
"non_fungible_tokens": {}
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that returns address balances","title":"AddressBalanceResponse","type":"object","required":["stx","fungible_tokens","non_fungible_tokens"],"properties":{"stx":{"$schema":"http://json-schema.org/draft-07/schema#","description":"Balance","type":"object","additionalProperties":false,"required":["balance","total_sent","total_received"],"properties":{"balance":{"type":"string"},"total_sent":{"type":"string"},"total_received":{"type":"string"}}},"fungible_tokens":{"type":"object","patternProperties":{"*":{"$schema":"http://json-schema.org/draft-07/schema#","description":"Balance","type":"object","additionalProperties":false,"required":["balance","total_sent","total_received"],"properties":{"balance":{"type":"string"},"total_sent":{"type":"string"},"total_received":{"type":"string"}}}}},"non_fungible_tokens":{"type":"object","patternProperties":{"*":{"$schema":"http://json-schema.org/draft-07/schema#","description":"NftBalance","type":"object","additionalProperties":false,"required":["count","total_sent","total_received"],"properties":{"count":{"type":"string"},"total_sent":{"type":"string"},"total_received":{"type":"string"}}}}}}}

View File

@@ -1,5 +0,0 @@
{
"balance": "1000000",
"total_sent": "0",
"total_received": "1000000"
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that returns address balances","title":"AddressStxBalanceResponse","type":"object","additionalProperties":false,"required":["balance","total_sent","total_received"],"properties":{"balance":{"type":"string"},"total_sent":{"type":"string"},"total_received":{"type":"string"}}}

View File

@@ -1,24 +0,0 @@
{
"limit": 20,
"offset": 0,
"total": 4989,
"results": [
{
"tx_id": "0xb16077b94222bc1466396d30df13db460864e85ce929a20aae0a2ac80b31e4e2",
"tx_status": "success",
"tx_type": "coinbase",
"fee_rate": "0",
"sender_address": "ST2TJRHDHMYBQ417HFB0BDX430TQA5PXRX6495G1V",
"sponsored": false,
"post_condition_mode": "deny",
"block_hash": "0x83f84f814c1b00ddb672d93b97d06c8326f76746d90a979c12b69e54beb73f69",
"block_height": 5603,
"burn_block_time": 1594335838,
"canonical": true,
"tx_index": 0,
"coinbase_payload": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
]
}

File diff suppressed because one or more lines are too long

View File

@@ -1,15 +0,0 @@
{
"limit": 20,
"offset": 0,
"total": 3275,
"results": [
{
"canonical": true,
"height": 3275,
"hash": "0xe77ba8cf6bb7c0e4f64adc83356289ed467d31a22354907b4bb814590058430f",
"parent_block_hash": "0x75ab21ef25cbff2caa14c27d830ed7886a4d1522e1b6f9e5dc3b59ccf73ed49f",
"burn_block_time": 1594233639,
"txs": ["0x66557c219c6b0cdb40681ecf79a69f03654d88ef1910651a7db0b078f58af5ca"]
}
]
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that returns blocks","additionalProperties":false,"title":"BlockListResponse","type":"object","required":["results","limit","offset","total"],"properties":{"limit":{"type":"integer","maximum":30,"description":"The number of blocks to return"},"offset":{"type":"integer","description":"The number to blocks to skip (starting at `0`)","default":0},"total":{"type":"integer","description":"The number of blocks available"},"results":{"type":"array","items":{"$schema":"http://json-schema.org/draft-07/schema#","title":"Block","description":"A block","type":"object","required":["canonical","height","hash","parent_block_hash","txs","burn_block_time","burn_block_time_iso"],"properties":{"canonical":{"type":"boolean","description":"Set to `true` if block corresponds to the canonical chain tip"},"height":{"type":"integer","description":"Height of the block"},"hash":{"type":"string","description":"Hash representing the block"},"parent_block_hash":{"type":"string","description":"Hash of the prant block"},"burn_block_time":{"type":"number","description":"Unix timestamp (in seconds) indicating when this block was mined."},"burn_block_time_iso":{"type":"string","description":"An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined."},"txs":{"type":"array","description":"List of transactions included in the block","items":{"type":"string","description":"Transaction ID"}}}}}}}

View File

@@ -1,4 +0,0 @@
{
"okay": false,
"cause": "Unchecked(PublicFunctionNotReadOnly(..."
}

View File

@@ -1,4 +0,0 @@
{
"okay": true,
"result": "0x111..."
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request to get contract source","title":"ReadOnlyFunctionSuccessResponse","type":"object","additionalProperties":false,"required":["okay"],"properties":{"okay":{"type":"boolean"},"result":{"type":"string"},"cause":{"type":"string"}}}

View File

@@ -1,8 +0,0 @@
{
"balance": "0x0000000000000000000000000007a120",
"locked": "0x0000000000000000000000000007a120",
"unlock_height": 126,
"nonce": 2867,
"balance_proof": "0xabce",
"nonce_proof": "0xabcd"
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request for account data","title":"AccountDataResponse","type":"object","additionalProperties":false,"required":["balance","locked","unlock_height","nonce","balance_proof","nonce_proof"],"properties":{"balance":{"type":"string"},"locked":{"type":"string"},"unlock_height":{"type":"integer"},"nonce":{"type":"integer"},"balance_proof":{"type":"string"},"nonce_proof":{"type":"string"}}}

View File

@@ -1,4 +0,0 @@
{
"data": "0x0a0c000000010a6d6f6e737465722d69640100000000000000000000000000000001",
"proof": "0x123..."
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"Response of get data map entry request","title":"MapEntryResponse","type":"object","required":["data"],"properties":{"data":{"type":"string","description":"Hex-encoded string of clarity value. It is always an optional tuple."},"proof":{"type":"string","description":"Hex-encoded string of the MARF proof for the data"}}}

View File

@@ -1,134 +0,0 @@
{
"functions": [
{
"name": "get-value",
"access": "public",
"args": [
{
"name": "key",
"type": {
"buffer": {
"length": 32
}
}
}
],
"outputs": {
"type": {
"response": {
"ok": {
"buffer": {
"length": 32
}
},
"error": "int128"
}
}
}
},
{
"name": "set-value",
"access": "public",
"args": [
{
"name": "key",
"type": {
"buffer": {
"length": 32
}
}
},
{
"name": "value",
"type": {
"buffer": {
"length": 32
}
}
}
],
"outputs": {
"type": {
"response": {
"ok": "uint128",
"error": "none"
}
}
}
},
{
"name": "test-emit-event",
"access": "public",
"args": [],
"outputs": {
"type": {
"response": {
"ok": "uint128",
"error": "none"
}
}
}
},
{
"name": "test-event-types",
"access": "public",
"args": [],
"outputs": {
"type": {
"response": {
"ok": "uint128",
"error": "none"
}
}
}
}
],
"variables": [
{
"name": "recipient",
"type": "principal",
"access": "constant"
},
{
"name": "sender",
"type": "principal",
"access": "constant"
}
],
"maps": [
{
"name": "store",
"key": [
{
"name": "key",
"type": {
"buffer": {
"length": 32
}
}
}
],
"value": [
{
"name": "value",
"type": {
"buffer": {
"length": 32
}
}
}
]
}
],
"fungible_tokens": [
{
"name": "novel-token-19"
}
],
"non_fungible_tokens": [
{
"name": "hello-nft",
"type": "uint128"
}
]
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request to get contract interface","title":"ContractInterfaceResponse","type":"object","required":["functions","variables","maps","fungible_tokens","non_fungible_tokens"],"properties":{"functions":{"type":"array","items":{"type":"object"},"description":"List of defined methods"},"variables":{"type":"array","items":{"type":"object"},"description":"List of defined variables"},"maps":{"type":"array","items":{"type":"object"},"description":"List of defined data-maps"},"fungible_tokens":{"type":"array","items":{"type":"object"},"description":"List of fungible tokens in the contract"},"non_fungible_tokens":{"type":"array","items":{"type":"object"},"description":"List of non-fungible tokens in the contract"}}}

View File

@@ -1,5 +0,0 @@
{
"source": "(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)\n(define-constant recipient 'SM2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQVX8X0G)\n\n(define-fungible-token novel-token-19)\n(begin (ft-mint? novel-token-19 u12 sender))\n(begin (ft-transfer? novel-token-19 u2 sender recipient))\n\n(define-non-fungible-token hello-nft uint)\n(begin (nft-mint? hello-nft u1 sender))\n(begin (nft-mint? hello-nft u2 sender))\n(begin (nft-transfer? hello-nft u1 sender recipient))\n\n(define-public (test-emit-event)\n (begin\n (print \"Event! Hello world\")\n (ok u1)))\n(begin (test-emit-event))\n\n(define-public (test-event-types)\n (begin\n (unwrap-panic (ft-mint? novel-token-19 u3 recipient))\n (unwrap-panic (nft-mint? hello-nft u2 recipient))\n (unwrap-panic (stx-transfer? u60 tx-sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR))\n (unwrap-panic (stx-burn? u20 tx-sender))\n (ok u1)))\n\n(define-map store ((key (buff 32))) ((value (buff 32))))\n(define-public (get-value (key (buff 32)))\n (begin\n (match (map-get? store ((key key)))\n entry (ok (get value entry))\n (err 0))))\n(define-public (set-value (key (buff 32)) (value (buff 32)))\n (begin\n (map-set store ((key key)) ((value value)))\n (ok u1)))",
"publish_height": 3196,
"proof": "0000001104060000001ec4e..."
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request to get contract source","title":"ContractSourceResponse","type":"object","additionalProperties":false,"required":["source","publish_height","proof"],"properties":{"source":{"type":"string"},"publish_height":{"type":"integer"},"proof":{"type":"string"}}}

View File

@@ -1 +0,0 @@
1

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET fee estimates","title":"CoreNodeFeeResponse","type":"string","additionalProperties":false}

View File

@@ -1,14 +0,0 @@
{
"peer_version": 385875968,
"burn_consensus": "a186ed6e649ddc85b250f74ba1f1b77375ebaa60",
"burn_block_height": 6646,
"stable_burn_consensus": "49af83220614f29eb1946a533b8392bf1f4f3dce",
"stable_burn_block_height": 6645,
"server_version": "blockstack-core 0.0.1 => 23.0.0.0 (master:683682f2e+, release build, linux [x86_64])",
"network_id": 2147483648,
"parent_network_id": 3669344250,
"stacks_tip_height": 3334,
"stacks_tip": "01f50825b69741938df0bf4324e6f4f4f48053f23f544426eced907eb8a57d71",
"stacks_tip_burn_block": "132e9aea7fd50166ca9d0ad023b47c47e81c33ba47df767bbac1de0f2fb98535",
"exit_at_block_height": 20460
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that core node information","title":"CoreNodeInfoResponse","type":"object","additionalProperties":false,"required":["peer_version","burn_consensus","burn_block_height","stable_burn_consensus","stable_burn_block_height","server_version","network_id","parent_network_id","stacks_tip_height","stacks_tip","stacks_tip_burn_block","exit_at_block_height"],"properties":{"limit":{"type":"integer"},"peer_version":{"type":"integer"},"burn_consensus":{"type":"string"},"burn_block_height":{"type":"integer"},"stable_burn_consensus":{"type":"string"},"stable_burn_block_height":{"type":"integer"},"server_version":{"type":"string"},"network_id":{"type":"integer"},"parent_network_id":{"type":"integer"},"stacks_tip_height":{"type":"integer"},"stacks_tip":{"type":"string"},"stacks_tip_burn_block":{"type":"string"},"exit_at_block_height":{"type":"integer"}}}

View File

@@ -1,11 +0,0 @@
{
"contract_id": "ST000000000000000000002AMW42H.pox",
"first_burnchain_block_height": 0,
"min_amount_ustx": 150000000000,
"registration_window_length": 250,
"rejection_fraction": 25,
"reward_cycle_id": 0,
"reward_cycle_length": 1000,
"rejection_votes_left_required": 1000,
"total_liquid_supply_ustx": 1000000000
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"Get Proof of Transfer (PoX) information","title":"CoreNodePoxResponse","type":"object","additionalProperties":false,"required":["contract_id","first_burnchain_block_height","min_amount_ustx","registration_window_length","rejection_fraction","reward_cycle_id","reward_cycle_length","rejection_votes_left_required","total_liquid_supply_ustx"],"properties":{"contract_id":{"type":"string"},"first_burnchain_block_height":{"type":"integer"},"min_amount_ustx":{"type":"integer"},"registration_window_length":{"type":"integer"},"rejection_fraction":{"type":"integer"},"reward_cycle_id":{"type":"integer"},"reward_cycle_length":{"type":"integer"},"rejection_votes_left_required":{"type":"integer"},"total_liquid_supply_ustx":{"type":"integer"}}}

View File

@@ -1,5 +0,0 @@
{
"success": true,
"txId": "0xf2f0402f9f4c4d43b382690c4f7b97e24d5ff5dd5c619e3615daa64dca7ef4bc",
"txRaw": "80800000000400164247d6f2b425ac5771423ae6c80c754f7172b0000000000000003200000000000000b400008537046ff1008368baaa3ff2235122c556b89dad4f9df0639b924cf32a44b866497e49846b24191e711b21faaae96ca0542e4a140168484740b94211cececb3303020000000000051ab52c45b1a7977204f17ac0b6f48306aea2dbb8e9000000000007a12046617563657400000000000000000000000000000000000000000000000000000000"
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"POST request that runs the faucet","title":"RunFaucetResponse","type":"object","additionalProperties":false,"required":["success"],"properties":{"success":{"type":"boolean","description":"Indicates if the faucet call was successful"},"txId":{"type":"string","description":"The transaction ID for the faucet call"},"txRaw":{"type":"string","description":"Raw transaction in hex string representation"}}}

View File

@@ -1,3 +0,0 @@
{
"target_block_time": 600
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that target block time for a given network","title":"NetworkBlockTimeResponse","type":"object","additionalProperties":false,"required":["target_block_time","total_sent","total_received"],"properties":{"target_block_time":{"type":"integer"}}}

View File

@@ -1,8 +0,0 @@
{
"testnet": {
"target_block_time": 120
},
"mainnet": {
"target_block_time": 600
}
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema#","description":"GET request that returns network target block times","title":"NetworkBlockTimesResponse","type":"object","additionalProperties":false,"required":["mainnet","testnet"],"properties":{"mainnet":{"$schema":"http://json-schema.org/draft-07/schema#","description":"TargetBlockTime","type":"object","additionalProperties":false,"required":["target_block_time","total_sent","total_received"],"properties":{"target_block_time":{"type":"integer"}}},"testnet":{"$schema":"http://json-schema.org/draft-07/schema#","description":"TargetBlockTime","type":"object","additionalProperties":false,"required":["target_block_time","total_sent","total_received"],"properties":{"target_block_time":{"type":"integer"}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-account-request","type":"object","title":"RosettaAccountBalanceRequest","description":"An AccountBalanceRequest is utilized to make a balance request on the /account/balance endpoint. If the block_identifier is populated, a historical balance query should be performed.","required":["network_identifier","account_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"account_identifier":{"type":"object","title":"RosettaAccount","description":"The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"sub_account":{"type":"object","title":"RosettaSubAccount","description":"An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"metadata":{"type":"object","description":"If the SubAccount address is not sufficient to uniquely specify a SubAccount, any other identifying information can be stored here. It is important to note that two SubAccounts with identical addresses but differing metadata will not be considered equal by clients.","required":[]}}},"metadata":{"type":"object","description":"Blockchains that utilize a username model (where the address is not a derivative of a cryptographic public key) should specify the public key(s) owned by the address in metadata.","required":[]}}},"block_identifier":{"$id":"rosetta-partial-block-identifier.schema.json","type":"object","title":"RosettaPartialBlockIdentifier","description":"When fetching data by BlockIdentifier, it may be possible to only specify the index or hash. If neither property is specified, it is assumed that the client is making a request at the current block.","anyOf":[{"$id":"rosetta-block-identifier-hash.schema.json","type":"object","title":"RosettaBlockIdentifierHash","description":"This is also known as the block hash.","properties":{"hash":{"type":"string","description":"This is also known as the block hash."}}},{"$id":"rosetta-block-identifier-height.schema.json","type":"object","title":"RosettaBlockIdentifierHeight","description":"This is also known as the block height.","properties":{"index":{"type":"integer","description":"This is also known as the block height."}}}]}}}

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-block-request","type":"object","title":"RosettaBlockRequest","description":"A BlockRequest is utilized to make a block request on the /block endpoint.","required":["network_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"block_identifier":{"$id":"rosetta-partial-block-identifier.schema.json","type":"object","title":"RosettaPartialBlockIdentifier","description":"When fetching data by BlockIdentifier, it may be possible to only specify the index or hash. If neither property is specified, it is assumed that the client is making a request at the current block.","anyOf":[{"$id":"rosetta-block-identifier-hash.schema.json","type":"object","title":"RosettaBlockIdentifierHash","description":"This is also known as the block hash.","properties":{"hash":{"type":"string","description":"This is also known as the block hash."}}},{"$id":"rosetta-block-identifier-height.schema.json","type":"object","title":"RosettaBlockIdentifierHeight","description":"This is also known as the block height.","properties":{"index":{"type":"integer","description":"This is also known as the block height."}}}]}}}

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-block-transaction-request.schema.json","type":"object","title":"RosettaBlockTransactionRequest","description":"A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse.","required":["network_identifier","block_identifier","transaction_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"block_identifier":{"$id":"rosetta-block-identifier.schema.json","title":"RosettaBlockIdentifier","description":"The block_identifier uniquely identifies a block in a particular network.","allOf":[{"required":["hash"],"$id":"rosetta-block-identifier-hash.schema.json","type":"object","title":"RosettaBlockIdentifierHash","description":"This is also known as the block hash.","properties":{"hash":{"type":"string","description":"This is also known as the block hash."}}},{"required":["index"],"$id":"rosetta-block-identifier-height.schema.json","type":"object","title":"RosettaBlockIdentifierHeight","description":"This is also known as the block height.","properties":{"index":{"type":"integer","description":"This is also known as the block height."}}}]},"transaction_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"TransactionIdentifier","description":"The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.","required":["hash"],"properties":{"hash":{"type":"string","description":"Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier."}}}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-combine-response","type":"object","title":"RosettaConstructionCombineResponse","description":"RosettaConstructionCombineResponse is returned by /construction/combine. The network payload will be sent directly to the construction/submit endpoint.","required":["signed_transaction"],"properties":{"signed_transaction":{"type":"string","description":"Signed transaction bytes in hex"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"construction-derive-request","type":"object","title":"RosettaConstructionDeriveRequest","description":"Network is provided in the request because some blockchains have different address formats for different networks","required":["network_identifier","public_key"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"public_key":{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-public-key-schema","type":"object","title":"RosettaPublicKey","description":"PublicKey contains a public key byte array for a particular CurveType encoded in hex. Note that there is no PrivateKey struct as this is NEVER the concern of an implementation.","required":["hex_bytes","curve_type"],"properties":{"hex_bytes":{"type":"string","description":"Hex-encoded public key bytes in the format specified by the CurveType."},"curve_type":{"type":"string","description":"CurveType is the type of cryptographic curve associated with a PublicKey.","enum":["secp256k1","edwards25519"]}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-derive-response","type":"object","title":"RosettaConstructionDeriveResponse","description":"ConstructionDeriveResponse is returned by the /construction/derive endpoint.","required":["address"],"properties":{"address":{"type":"string","description":"Address in network-specific format."},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-hash-request","type":"object","title":"RosettaConstructionHashRequest","description":"TransactionHash returns the network-specific transaction hash for a signed transaction.","required":["network_identifier","signed_transaction"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"signed_transaction":{"type":"string","description":"Signed transaction"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-hash-response","type":"object","title":"RosettaConstructionHashResponse","description":"TransactionIdentifier contains the transaction_identifier of a transaction that was submitted to either /construction/hash or /construction/submit.","required":["transaction_identifier"],"properties":{"transaction_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"TransactionIdentifier","description":"The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.","required":["hash"],"properties":{"hash":{"type":"string","description":"Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier."}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"http://example.com/example.json","type":"object","title":"RosettaConstructionMetadataRequest","description":"A ConstructionMetadataRequest is utilized to get information required to construct a transaction. The Options object used to specify which metadata to return is left purposely unstructured to allow flexibility for implementers. Optionally, the request can also include an array of PublicKeys associated with the AccountIdentifiers returned in ConstructionPreprocessResponse.","required":["network_identifier","options"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"options":{"$id":"rosetta-construction-options","title":"RosettaOptions","type":"object","description":"The options that will be sent directly to /construction/metadata by the caller.","required":[],"properties":{"sender_address":{"type":"string","description":"sender's address "},"type":{"type":"string","description":"Type of operation e.g transfer"},"status":{"type":"string","description":"This value indicates the state of the operations"},"token_transfer_recipient_address":{"type":"string","description":"Recipient's address"},"amount":{"type":"string","description":"Amount to be transfeered."},"symbol":{"type":"string","description":"Currency symbol e.g STX"},"decimals":{"type":"integer","description":"Number of decimal places"},"gas_limit":{"type":"number","description":"Maximum price a user is willing to pay."},"gas_price":{"type":"number","description":"Cost necessary to perform a transaction on the network"},"suggested_fee_multiplier":{"type":"number","description":" A suggested fee multiplier to indicate that the suggested fee should be scaled. This may be used to set higher fees for urgent transactions or to pay lower fees when there is less urgency."},"max_fee":{"type":"string","description":"Maximum fee user is willing to pay"},"fee":{"type":"string","description":"Fee for this transaction"}}},"public_keys":{"type":"array","items":{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-public-key-schema","type":"object","title":"RosettaPublicKey","description":"PublicKey contains a public key byte array for a particular CurveType encoded in hex. Note that there is no PrivateKey struct as this is NEVER the concern of an implementation.","required":["hex_bytes","curve_type"],"properties":{"hex_bytes":{"type":"string","description":"Hex-encoded public key bytes in the format specified by the CurveType."},"curve_type":{"type":"string","description":"CurveType is the type of cryptographic curve associated with a PublicKey.","enum":["secp256k1","edwards25519"]}}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-metadata-response","type":"object","title":"RosettaConstructionMetadataResponse","description":"The ConstructionMetadataResponse returns network-specific metadata used for transaction construction. Optionally, the implementer can return the suggested fee associated with the transaction being constructed. The caller may use this info to adjust the intent of the transaction or to create a transaction with a different account that can pay the suggested fee. Suggested fee is an array in case fee payment must occur in multiple currencies.","required":["metadata"],"properties":{"metadata":{"type":"object","required":[],"properties":{"account_sequence":{"type":"integer"},"recent_block_hash":{"type":"string"}}},"suggested_fee":{"type":"object","title":"RosettaAmount","description":"Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.","required":["value","currency"],"properties":{"value":{"type":"string","description":"Value of the transaction in atomic units represented as an arbitrary-sized signed integer. For example, 1 BTC would be represented by a value of 100000000."},"currency":{"description":"Currency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins).","title":"RosettaCurrency","type":"object","required":["symbol","decimals"],"properties":{"symbol":{"type":"string","description":"Canonical symbol associated with a currency."},"decimals":{"type":"integer","description":"Number of decimal places in the standard unit representation of the amount. For example, BTC has 8 decimals. Note that it is not possible to represent the value of some currency in atomic units that is not base 10."},"metadata":{"type":"object","description":"Any additional information related to the currency itself. For example, it would be useful to populate this object with the contract address of an ERC-20 token."}}},"metadata":{"type":"object","description":"","required":[]}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-parse-request","type":"object","title":"RosettaConstructionParseRequest","description":"Parse is called on both unsigned and signed transactions to understand the intent of the formulated transaction. This is run as a sanity check before signing (after /construction/payloads) and before broadcast (after /construction/combine).","required":["network_identifier","signed","transaction"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"signed":{"type":"boolean","description":"Signed is a boolean indicating whether the transaction is signed."},"transaction":{"type":"string","description":"This must be either the unsigned transaction blob returned by /construction/payloads or the signed transaction blob returned by /construction/combine."}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"http://example.com/example.json","type":"object","title":"RosettaConstructionPayloadResponse","description":"RosettaConstructionPayloadResponse is returned by /construction/payloads. It contains an unsigned transaction blob (that is usually needed to construct the a network transaction from a collection of signatures) and an array of payloads that must be signed by the caller.","required":["unsigned_transaction","payloads"],"properties":{"unsigned_transaction":{"type":"string","description":"This is an unsigned transaction blob (that is usually needed to construct the a network transaction from a collection of signatures)"},"payloads":{"type":"array","description":"An array of payloads that must be signed by the caller","items":{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-signing-payload","type":"object","title":"SigningPayload","description":"SigningPayload is signed by the client with the keypair associated with an address using the specified SignatureType. SignatureType can be optionally populated if there is a restriction on the signature scheme that can be used to sign the payload.","required":["hex_bytes"],"properties":{"address":{"type":"string","description":"The network-specific address of the account that should sign the payload."},"account_identifier":{"type":"object","title":"RosettaAccount","description":"The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"sub_account":{"type":"object","title":"RosettaSubAccount","description":"An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"metadata":{"type":"object","description":"If the SubAccount address is not sufficient to uniquely specify a SubAccount, any other identifying information can be stored here. It is important to note that two SubAccounts with identical addresses but differing metadata will not be considered equal by clients.","required":[]}}},"metadata":{"type":"object","description":"Blockchains that utilize a username model (where the address is not a derivative of a cryptographic public key) should specify the public key(s) owned by the address in metadata.","required":[]}}},"hex_bytes":{"type":"string"},"signature_type":{"type":"string","description":"SignatureType is the type of a cryptographic signature.","enum":["ecdsa","ecdsa_recovery","ed25519","schnorr_1","schnorr_poseidon"]}}}}}}

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-preprocess-response","type":"object","title":"RosettaConstructionPreprocessResponse","description":"RosettaConstructionPreprocessResponse contains options that will be sent unmodified to /construction/metadata. If it is not necessary to make a request to /construction/metadata, options should be omitted. Some blockchains require the PublicKey of particular AccountIdentifiers to construct a valid transaction. To fetch these PublicKeys, populate required_public_keys with the AccountIdentifiers associated with the desired PublicKeys. If it is not necessary to retrieve any PublicKeys for construction, required_public_keys should be omitted.","required":[],"properties":{"options":{"$id":"rosetta-construction-options","title":"RosettaOptions","type":"object","description":"The options that will be sent directly to /construction/metadata by the caller.","required":[],"properties":{"sender_address":{"type":"string","description":"sender's address "},"type":{"type":"string","description":"Type of operation e.g transfer"},"status":{"type":"string","description":"This value indicates the state of the operations"},"token_transfer_recipient_address":{"type":"string","description":"Recipient's address"},"amount":{"type":"string","description":"Amount to be transfeered."},"symbol":{"type":"string","description":"Currency symbol e.g STX"},"decimals":{"type":"integer","description":"Number of decimal places"},"gas_limit":{"type":"number","description":"Maximum price a user is willing to pay."},"gas_price":{"type":"number","description":"Cost necessary to perform a transaction on the network"},"suggested_fee_multiplier":{"type":"number","description":" A suggested fee multiplier to indicate that the suggested fee should be scaled. This may be used to set higher fees for urgent transactions or to pay lower fees when there is less urgency."},"max_fee":{"type":"string","description":"Maximum fee user is willing to pay"},"fee":{"type":"string","description":"Fee for this transaction"}}},"required_public_keys":{"type":"object","title":"RosettaAccount","description":"The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"sub_account":{"type":"object","title":"RosettaSubAccount","description":"An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.","required":["address"],"properties":{"address":{"type":"string","description":"The address may be a cryptographic public key (or some encoding of it) or a provided username."},"metadata":{"type":"object","description":"If the SubAccount address is not sufficient to uniquely specify a SubAccount, any other identifying information can be stored here. It is important to note that two SubAccounts with identical addresses but differing metadata will not be considered equal by clients.","required":[]}}},"metadata":{"type":"object","description":"Blockchains that utilize a username model (where the address is not a derivative of a cryptographic public key) should specify the public key(s) owned by the address in metadata.","required":[]}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-submit-request","type":"object","title":"RosettaConstructionSubmitRequest","description":"Submit the transaction in blockchain","required":["network_identifier","signed_transaction"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"signed_transaction":{"type":"string","description":"Signed transaction"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-submit-response","type":"object","title":"RosettaConstructionSubmitResponse","description":"TransactionIdentifier contains the transaction_identifier of a transaction that was submitted to either /construction/submit.","required":["transaction_identifier"],"properties":{"transaction_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"TransactionIdentifier","description":"The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.","required":["hash"],"properties":{"hash":{"type":"string","description":"Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier."}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"RosettaMempoolRequest","description":"Get all Transaction Identifiers in the mempool","required":["network_identifier"],"properties":{"network_identifier":{"description":"The network_identifier specifies which network a particular object is associated with.","$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"RosettaMempoolResponse","description":"A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier.","required":["transaction_identifiers"],"properties":{"transaction_identifiers":{"type":"array","description":"","items":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"TransactionIdentifier","description":"The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.","required":["hash"],"properties":{"hash":{"type":"string","description":"Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier."}}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-mempool-transaction-request","type":"object","title":"RosettaMempoolTransactionRequest","description":"A MempoolTransactionRequest is utilized to retrieve a transaction from the mempool.","required":["network_identifier","transaction_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"transaction_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"TransactionIdentifier","description":"The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.","required":["hash"],"properties":{"hash":{"type":"string","description":"Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier."}}}}}

File diff suppressed because one or more lines are too long

View File

@@ -1,62 +0,0 @@
{
"transaction": {
"transaction_identifier": {
"hash": "0x2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f"
},
"operations": [
{
"operation_identifier": {
"index": 1,
"network_index": 0
},
"related_operations": [
{
"index": 0,
"operation_identifier": {
"index": 0
}
}
],
"type": "Transfer",
"status": "Reverted",
"account": {
"address": "0x3a065000ab4183c6bf581dc1e55a605455fc6d61",
"sub_account": {
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"metadata": {}
},
"metadata": {}
},
"amount": {
"value": "1238089899992",
"currency": {
"symbol": "BTC",
"decimals": 8,
"metadata": {
"Issuer": "Satoshi"
}
},
"metadata": {}
},
"coin_change": {
"coin_identifier": {
"identifier": "0x2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f:1"
},
"coin_action": "coin_created"
},
"metadata": {
"asm": "304502201fd8abb11443f8b1b9a04e0495e0543d05611473a790c8939f089d073f90509a022100f4677825136605d732e2126d09a2d38c20c75946cd9fc239c0497e84c634e3dd01 03301a8259a12e35694cc22ebc45fee635f4993064190f6ce96e7fb19a03bb6be2",
"hex": "48304502201fd8abb11443f8b1b9a04e0495e0543d05611473a790c8939f089d073f90509a022100f4677825136605d732e2126d09a2d38c20c75946cd9fc239c0497e84c634e3dd012103301a8259a12e35694cc22ebc45fee635f4993064190f6ce96e7fb19a03bb6be2"
}
}
],
"metadata": {
"size": 12378,
"lockTime": 1582272577
}
},
"metadata": {
"descendant_fees": 123923,
"ancestor_count": 2
}
}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-network-list-request","type":"object","title":"RosettaNetworkListRequest","description":"This endpoint returns a list of NetworkIdentifiers that the Rosetta server supports.","required":[],"properties":{"metadata":{"type":"object","description":"A MetadataRequest is utilized in any request where the only argument is optional metadata.","required":[]}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-network-list-response.schema.json","type":"object","title":"RosettaNetworkListResponse","description":"A NetworkListResponse contains all NetworkIdentifiers that the node can serve information for.","required":["network_identifiers"],"properties":{"network_identifiers":{"type":"array","description":"The network_identifier specifies which network a particular object is associated with.","items":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"Rosetta-options-request","type":"object","title":"RosettaOptionsRequest","description":"This endpoint returns the version information and allowed network-specific types for a NetworkIdentifier. Any NetworkIdentifier returned by /network/list should be accessible here. Because options are retrievable in the context of a NetworkIdentifier, it is possible to define unique options for each network.","required":["network_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"metadata":{"type":"object"}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-network-options-response","type":"object","title":"RosettaNetworkOptionsResponse","description":"NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.","required":["version","allow"],"properties":{"version":{"type":"object","description":"The Version object is utilized to inform the client of the versions of different components of the Rosetta implementation.","required":["rosetta_version","node_version"],"properties":{"rosetta_version":{"type":"string","description":"The rosetta_version is the version of the Rosetta interface the implementation adheres to. This can be useful for clients looking to reliably parse responses."},"node_version":{"type":"string","description":"The node_version is the canonical version of the node runtime. This can help clients manage deployments."},"middleware_version":{"type":"string","description":"When a middleware server is used to adhere to the Rosetta interface, it should return its version here. This can help clients manage deployments."},"metadata":{"type":"object","description":"Any other information that may be useful about versioning of dependent services should be returned here."}}},"allow":{"type":"object","description":"Allow specifies supported Operation status, Operation types, and all possible error statuses. This Allow object is used by clients to validate the correctness of a Rosetta Server implementation. It is expected that these clients will error if they receive some response that contains any of the above information that is not specified here.","required":["operation_statuses","operation_types","errors","historical_balance_lookup"],"properties":{"operation_statuses":{"type":"array","description":"All Operation.Status this implementation supports. Any status that is returned during parsing that is not listed here will cause client validation to error.","items":{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-operation-statuses.schema.json","type":"object","title":"RosettaOperationStatus","description":"OperationStatus is utilized to indicate which Operation status are considered successful.","required":["status","successful"],"properties":{"status":{"type":"string","description":"The status is the network-specific status of the operation."},"successful":{"type":"boolean","description":"An Operation is considered successful if the Operation.Amount should affect the Operation.Account. Some blockchains (like Bitcoin) only include successful operations in blocks but other blockchains (like Ethereum) include unsuccessful operations that incur a fee. To reconcile the computed balance from the stream of Operations, it is critical to understand which Operation.Status indicate an Operation is successful and should affect an Account."}}}},"operation_types":{"type":"array","description":"All Operation.Type this implementation supports. Any type that is returned during parsing that is not listed here will cause client validation to error.","items":{"anyOf":[{"type":"string"}]}},"errors":{"type":"array","description":"All Errors that this implementation could return. Any error that is returned during parsing that is not listed here will cause client validation to error.","items":{"$schema":"http://json-schema.org/draft-07/schema","$id":"Rosetta-errors","type":"object","title":"RosettaError","description":"Instead of utilizing HTTP status codes to describe node errors (which often do not have a good analog), rich errors are returned using this object. Both the code and message fields can be individually used to correctly identify an error. Implementations MUST use unique values for both fields.","required":["code","message","retriable"],"properties":{"code":{"type":"integer","description":"Code is a network-specific error code. If desired, this code can be equivalent to an HTTP status code."},"message":{"type":"string","description":"Message is a network-specific error message. The message MUST NOT change for a given code. In particular, this means that any contextual information should be included in the details field."},"retriable":{"type":"boolean","description":"An error is retriable if the same request may succeed if submitted again."},"details":{"type":"object","description":"Often times it is useful to return context specific to the request that caused the error (i.e. a sample of the stack trace or impacted account) in addition to the standard error message.","required":[],"properties":{"address":{"type":"string"},"error":{"type":"string"}}}}}},"historical_balance_lookup":{"type":"boolean","description":"Any Rosetta implementation that supports querying the balance of an account at any height in the past should set this to true."}}}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"Rosetta-status-request","type":"object","title":"RosettaStatusRequest","description":"This endpoint returns the current status of the network requested. Any NetworkIdentifier returned by /network/list should be accessible here.","required":["network_identifier"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Netowork name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"metadata":{"type":"object","description":"","required":[]}}}

View File

@@ -1 +0,0 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-network-status-response.schema.json","type":"object","title":"RosettaNetworkStatusResponse","description":"NetworkStatusResponse contains basic information about the node's view of a blockchain network. It is assumed that any BlockIdentifier.Index less than or equal to CurrentBlockIdentifier.Index can be queried. If a Rosetta implementation prunes historical state, it should populate the optional oldest_block_identifier field with the oldest block available to query. If this is not populated, it is assumed that the genesis_block_identifier is the oldest queryable block. If a Rosetta implementation performs some pre-sync before it is possible to query blocks, sync_status should be populated so that clients can still monitor healthiness. Without this field, it may appear that the implementation is stuck syncing and needs to be terminated.","required":["current_block_identifier","current_block_timestamp","genesis_block_identifier","peers"],"properties":{"current_block_identifier":{"$id":"rosetta-block-identifier.schema.json","title":"RosettaBlockIdentifier","description":"The block_identifier uniquely identifies a block in a particular network.","allOf":[{"required":["hash"],"$id":"rosetta-block-identifier-hash.schema.json","type":"object","title":"RosettaBlockIdentifierHash","description":"This is also known as the block hash.","properties":{"hash":{"type":"string","description":"This is also known as the block hash."}}},{"required":["index"],"$id":"rosetta-block-identifier-height.schema.json","type":"object","title":"RosettaBlockIdentifierHeight","description":"This is also known as the block height.","properties":{"index":{"type":"integer","description":"This is also known as the block height."}}}]},"current_block_timestamp":{"type":"integer","description":"The timestamp of the block in milliseconds since the Unix Epoch. The timestamp is stored in milliseconds because some blockchains produce blocks more often than once a second."},"genesis_block_identifier":{"$id":"rosetta-block-genesis-identifier.schema.json","type":"object","title":"RosettaGenesisBlockIdentifier","description":"The block_identifier uniquely identifies a block in a particular network.","required":["index","hash"],"properties":{"index":{"type":"integer","description":"This is also known as the block height."},"hash":{"type":"string","description":"Block hash"}}},"oldest_block_identifier":{"$id":"rosetta-block-oldest-identifier.schema.json","type":"object","title":"RosettaOldestBlockIdentifier","description":"The block_identifier uniquely identifies a block in a particular network.","required":["index","hash"],"properties":{"index":{"type":"integer","description":"This is also known as the block height."},"hash":{"type":"string","description":"Block hash"}}},"sync_status":{"type":"object","title":"RosettaSyncStatus","description":"SyncStatus is used to provide additional context about an implementation's sync status. It is often used to indicate that an implementation is healthy when it cannot be queried until some sync phase occurs. If an implementation is immediately queryable, this model is often not populated.","required":["current_index"],"properties":{"current_index":{"type":"integer","description":"CurrentIndex is the index of the last synced block in the current stage."},"target_index":{"type":"integer","description":"TargetIndex is the index of the block that the implementation is attempting to sync to in the current stage."},"stage":{"type":"string","description":"Stage is the phase of the sync process."}}},"peers":{"type":"array","description":"Peers information","items":{"$id":"rosetta-network-peers.schema.json","type":"object","title":"RosettaPeers","description":"A Peer is a representation of a node's peer.","required":["peer_id"],"properties":{"peer_id":{"type":"string","description":"peer id"},"metadata":{"type":"object","description":"meta data"}}}}},"additionalProperties":true}

View File

@@ -1,14 +0,0 @@
{
"found": true,
"result": {
"entity_id": "ST2P7B9G6Y55QWZJ9B93DVSEG5S6Z4PFJHB3XRKHW.hello_world",
"entity_type": "contract_address",
"tx_data": {
"canonical": true,
"block_hash": "0xb076fd3983e63bbf28ae615daa31c5b6084d23ceeb920c54f1ea666244415457",
"burn_block_time": 1595229199,
"block_height": 648,
"tx_type": "smart_contract"
}
}
}

View File

@@ -1,87 +0,0 @@
{
"limit": 96,
"offset": 0,
"total": 5,
"results": [
{
"tx_id": "0xb31df5a363dad31723324cb5e0eefa04d491519fd30827a521cbc830114aa50c",
"tx_status": "pending",
"tx_type": "token_transfer",
"receipt_time": 1598288370,
"receipt_time_iso": "2020-08-24T16:59:30.000Z",
"fee_rate": "180",
"sender_address": "STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6",
"sponsored": false,
"post_condition_mode": "deny",
"token_transfer": {
"recipient_address": "ST1GY25DM8RZV4X15X07THRZ2C5NMWPGQWKFGV87F",
"amount": "500000",
"memo": "0x46617563657400000000000000000000000000000000000000000000000000000000"
}
},
{
"tx_id": "0x5bed8e3f801cb4e2c74d2815a092f7c1c6a35f2fce4a80c80ca70848d34cb395",
"tx_status": "pending",
"tx_type": "token_transfer",
"receipt_time": 1598282326,
"receipt_time_iso": "2020-08-24T15:18:46.000Z",
"fee_rate": "180",
"sender_address": "ST1PS1KF93VBY5A1JV7TM66KN046KP3E3761DBSAG",
"sponsored": false,
"post_condition_mode": "deny",
"token_transfer": {
"recipient_address": "ST2H33S8SEY27QKEKQKR6S5PECYPKY45CQYGGQR8X",
"amount": "1000",
"memo": "0x00000000000000000000000000000000000000000000000000000000000000000000"
}
},
{
"tx_id": "0x9916036fde08a207e581cdcabc18ff55469861cb81194ab0e3e7c9a02cd5a17c",
"tx_status": "pending",
"tx_type": "smart_contract",
"receipt_time": 1598258958,
"receipt_time_iso": "2020-08-24T08:49:18.000Z",
"fee_rate": "2000",
"sender_address": "ST2R1XSFXYHCSFE426HP45TTD8ZWV9XHX2SRP3XA8",
"sponsored": false,
"post_condition_mode": "deny",
"post_conditions": [],
"smart_contract": {
"contract_id": "ST2R1XSFXYHCSFE426HP45TTD8ZWV9XHX2SRP3XA8.test-loans-1",
"source_code": "(define-data-var stx-loaned int 0)\n(define-data-var lockup-period int 0)\n(define-data-var stx-return int 0)\n(define-public (get-stx-return (stx uint) (months uint))\n (ok\n (begin\n (var-set stx-loaned (to-int(stx))\n (var-set lockup-period (to-int(months))\n (calculate-stx-return)\n (print (var-get stx-return))\n (transfer-to-server)\n )\n )\n)\n(define-private (calculate-stx-return)\n (ok\n (begin\n (var-set stx-return (- (+ (* (/ (* (var-get stx-loaned) 5) 100) (var-get lockup-period)) (var-get stx-loaned)) 5))\n )\n )\n)\n(define-private (transfer-to-server)\n (begin\n (unwrap-panic (stx-transfer? (to-uint (var-get stx-loaned)) tx-sender 'ST2R1XSFXYHCSFE426HP45TTD8ZWV9XHX2SRP3XA8))\n (ok (to-uint (var-get stx-loaned)))\n )\n)"
}
},
{
"tx_id": "0x871fb186c8d6ac6ede2822c71074d9884b593c0d7f2d0d6e8516e615484d7501",
"tx_status": "pending",
"tx_type": "smart_contract",
"receipt_time": 1598230365,
"receipt_time_iso": "2020-08-24T00:52:45.000Z",
"fee_rate": "2000",
"sender_address": "ST1FJGMWPGM1P7N0K3N9QEPZK5H1VDC5YWTVMEAZ1",
"sponsored": false,
"post_condition_mode": "deny",
"post_conditions": [],
"smart_contract": {
"contract_id": "ST1FJGMWPGM1P7N0K3N9QEPZK5H1VDC5YWTVMEAZ1.contract-hook-1598230358601",
"source_code": ";; ## CUSTOM FUNCTION TO EXTRACT A SUBSTRING\n\n(define-read-only (subs (source (buff 10)) \n (start int) \n (end int))\n (begin\n (unwrap-panic (if (and (<= 0 start) (<= start 10)) (ok 1) (err \"Out of bounds: start\")))\n (unwrap-panic (if (and (<= 0 end) (<= end 10)) (ok 1) (err \"Out of bounds: end\")))\n (let ((temp1 (fold subs1 source \n {start: start, end: end, cursor: 1, data: \"\"})))\n (let ((data (get data temp1))) \n data))))\n \n;; Call the function to extract the substring between the bounds:\n\n;; (subs \"123456789\" 2 5)\n\n(define-read-only (subs1 \n (ch (buff 1))\n (acc {data: (buff 10), \n start: int,\n end: int,\n cursor: int})) \n (let ((data (get data acc))\n (start (get start acc))\n (cursor (get cursor acc))\n (end (get end acc))) \n (let ((temp2 \n {cursor: (+ 1 cursor),\n data: (default-to \"\"\n (as-max-len?\n (concat data \n (if (let ((temp3 start)\n (temp4 cursor)\n (temp5 end))\n (and (<= temp3 temp4)\n (<= temp4 temp5)))\n ch \n \"\"))\n u10))}))\n {start: (get start acc),\n end: (get end acc),\n cursor: (get cursor temp2),\n data: (get data temp2)})))\n"
}
},
{
"tx_id": "0x66df10d99d3a26018f521d60e9f744b083386c73e47ad39c394d570abee55f1f",
"tx_status": "pending",
"tx_type": "smart_contract",
"receipt_time": 1598230066,
"receipt_time_iso": "2020-08-24T00:47:46.000Z",
"fee_rate": "2000",
"sender_address": "ST1FJGMWPGM1P7N0K3N9QEPZK5H1VDC5YWTVMEAZ1",
"sponsored": false,
"post_condition_mode": "deny",
"post_conditions": [],
"smart_contract": {
"contract_id": "ST1FJGMWPGM1P7N0K3N9QEPZK5H1VDC5YWTVMEAZ1.contract-hook-1598230054238",
"source_code": "(define-read-only (subs1 \n (ch (buff 1))\n (acc {data: (buff 10), \n start: int,\n end: int,\n cursor: int}))\n (begin\n (unwrap-panic (if (and (<= 1 (get start acc)) (<= (get start acc) 10)) (ok 1) (err \"Out of bounds: start\")))\n (unwrap-panic (if (and (<= 1 (get end acc)) (<= (get end acc) 10)) (ok 1) (err \"Out of bounds: end\")))\n (unwrap-panic (if (and (<= 1 (get cursor acc)) (<= (get cursor acc) 10)) (ok 1) (err \"Out of bounds: cursor\")))\n (let ((data (get data acc))\n (start (get start acc))\n (cursor (get cursor acc))\n (end (get end acc))) \n (let ((temp1 \n {cursor: (+ 1 cursor),\n data: (default-to \"\"\n (as-max-len?\n (concat data \n (if (let ((temp2 start)\n (temp3 cursor)\n (temp4 end))\n (and (<= temp2 temp3)\n (<= temp3 temp4)))\n ch \n \"\"))\n u10))}))\n {start: (get start acc),\n end: (get end acc),\n cursor: (get cursor temp1),\n data: (get data temp1)}))))\n"
}
}
]
}

File diff suppressed because one or more lines are too long

View File

@@ -1,24 +0,0 @@
{
"limit": 10,
"offset": 0,
"total": 101922,
"results": [
{
"tx_id": "0x5e9f3933e358df6a73fec0d47ce3e1062c20812c129f5294e6f37a8d27c051d9",
"tx_status": "success",
"tx_type": "coinbase",
"fee_rate": "0",
"sender_address": "ST3WCQ6S0DFT7YHF53M8JPKGDS1N1GSSR91677XF1",
"sponsored": false,
"post_condition_mode": "deny",
"block_hash": "0x58412b50266debd0c35b1a20348ad9c0f17e5525fb155a97033256c83c9e2491",
"block_height": 3231,
"burn_block_time": 1594230455,
"canonical": true,
"tx_index": 0,
"coinbase_payload": {
"data": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
]
}

File diff suppressed because one or more lines are too long