Emyrk 1 year ago
commit
474b5cb639
1 changed files with 865 additions and 0 deletions
  1. 865 0
      README.md

+ 865 - 0
README.md

@@ -0,0 +1,865 @@
+
+# TFA Explorer API
+API Used to query for factom blockchain data
+
+Table of Contents
+
+1. [Explorer API](#api)
+
+<a name="api"></a>
+
+## api
+
+| Specification | Value |
+|-----|-----|
+| Resource Path | /api |
+| API Version | 1.0.0 |
+| BasePath for the API | http://localhost:9000 |
+| Consumes |  |
+| Produces |  |
+
+
+
+### Operations
+
+
+| Resource Path | Operation | Description |
+|-----|-----|-----|
+| /api/v1/directory-block/\{param\} | [GET](#FetchDirectoryBlock) | retrieves directory block by height or keymr |
+| /api/v1/factoid-block/\{param\} | [GET](#FetchFactoidBlock) | retrieves factoid block by height or keymr |
+| /api/v1/admin-block/\{param\} | [GET](#FetchAdminBlock) | retrieves admin block by height or keymr |
+| /api/v1/entrycredit-block/\{param\} | [GET](#FetchEntryCreditBlock) | retrieves admin block by height or keymr |
+| /api/v1/range/\{blocktype\} | [GET](#FetchGenericBlockRange) | Retrieves the block range for the given type |
+| /api/v1/directory-block/entries/\{height\} | [GET](#FetchDirectoryBlockEntries) | retrieves directory block entries |
+| /api/v1/entry-block/\{keymr\} | [GET](#FetchEntryBlock) | Retrieves the Entry block |
+| /api/v1/eblock-block/entries/\{keymr\} | [GET](#FetchEntryBlockEntries) | retrieves entry block entries |
+| /api/v1/eblock-block/entries/\{chainid\} | [GET](#FetchChainEntries) | retrieves entries in a chain |
+| /api/v1/admin-block/entries/\{height\} | [GET](#FetchAdminBlockEntries) | retrieves admin block entries by height. |
+| /api/v1/entrycredit-block/entries/\{height\} | [GET](#FetchEntryCreditBlockEntries) | retrieves entry credit block entries |
+| /api/v1/entry/ | [GET](#FetchEntryByHash) | Retrieves the entry commit and reveal by hash. ExtIDs & Content are base64 encoded! |
+| /api/v1/entry/ | [GET](#FetchEntryRevealByHash) | Retrieves the entry reveal by hash. ExtIDs & Content are base64 encoded! |
+| /api/v1/entrycommit/ | [GET](#FetchEntryCommitByHash) | Retrieves the entry commit by hash. |
+| /api/v1/top | [GET](#FetchBlockchainTop) | retrieves the topmost height in the blockchain |
+| /api/v1/address/commits/ | [GET](#FetchECAddressCommits) | Retrieves all entry credit commits related to a given address (must be an ec address) |
+| /api/v1/address/transactions/ | [GET](#FetchAddressTransactions) | Retrieves all factoid transactions related to a given address |
+| /api/v1/factoid-block/transactions/ | [GET](#FetchHeightTransactions) | Retrieves all factoid transactions related to a given block height |
+| /api/v1/transaction/ | [GET](#FetchTransactionByTxID) | Retrieves the transaction by txid |
+| /api/v1/richlist/ | [GET](#FetchRichlist) | Retrieves richlist for the given type ('factoid' or 'entrycredit') |
+| /api/v1/address/balance/ | [GET](#FetchRichList) | Retrieves the balance for a given address |
+| /api/v1/search/ | [GET](#GeneralSearch) | Searches the database for the hash |
+| /api/v1/identity/ | [GET](#FetchIdentity) | Retrieves the identity for a given root chain id |
+| /api/v1/authority/ | [GET](#FetchAuthority) | Retrieves the authority for a given root chain id |
+| /api/v1/authorities | [GET](#FetchAuthorities) | Retrieves all authorities |
+| /api/v1/index | [GET](#FrontPage) | Retrieves all data needed for index page |
+
+
+
+<a name="FetchDirectoryBlock"></a>
+
+#### API: /api/v1/directory-block/\{param\} (GET)
+
+
+retrieves directory block by height or keymr
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| param | path | string | Can be either a height or keymr | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLDirectoryBlock](#github.com.Emyrk.tfa-explorer.common.SQLDirectoryBlock) |  |
+
+
+<a name="FetchFactoidBlock"></a>
+
+#### API: /api/v1/factoid-block/\{param\} (GET)
+
+
+retrieves factoid block by height or keymr
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| param | path | string | Can be either a height or keymr | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLFactoidBlock](#github.com.Emyrk.tfa-explorer.common.SQLFactoidBlock) |  |
+
+
+<a name="FetchAdminBlock"></a>
+
+#### API: /api/v1/admin-block/\{param\} (GET)
+
+
+retrieves admin block by height or keymr
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| param | path | string | Can be either a height or keymr | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLAdminBlock](#github.com.Emyrk.tfa-explorer.common.SQLAdminBlock) |  |
+
+
+<a name="FetchEntryCreditBlock"></a>
+
+#### API: /api/v1/entrycredit-block/\{param\} (GET)
+
+
+retrieves admin block by height or keymr
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| param | path | string | Can be either a height or keymr | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLEntryCreditBlock](#github.com.Emyrk.tfa-explorer.common.SQLEntryCreditBlock) |  |
+
+
+<a name="FetchGenericBlockRange"></a>
+
+#### API: /api/v1/range/\{blocktype\} (GET)
+
+
+Retrieves the block range for the given type
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| param | blocktype | string | Can be either 'directory-block', 'entrycredit-block', 'factoid-block', or 'admin-block' | Yes |
+| param | start | int | Start of the block range INCLUSIVE | Yes |
+| param | stop | int | Stop of the block range EXCLUSIVE | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [GenericBlock](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.GenericBlock) | The block type you specified |
+
+
+<a name="FetchDirectoryBlockEntries"></a>
+
+#### API: /api/v1/directory-block/entries/\{height\} (GET)
+
+
+retrieves directory block entries
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| height | int | int | Input height of directory block | Yes |
+| limit | int | int | Number of entry blocks to return, max 200 |  |
+| offset | int | int | Offset of entry blocks |  |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [DirectoryBlockEntries](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.DirectoryBlockEntries) |  |
+
+
+<a name="FetchEntryBlock"></a>
+
+#### API: /api/v1/entry-block/\{keymr\} (GET)
+
+
+Retrieves the Entry block
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| keymr | string | string | Key Mr of Eblock | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [SQLEntryBlock](#github.com.Emyrk.tfa-explorer.common.SQLEntryBlock) |  |
+
+
+<a name="FetchEntryBlockEntries"></a>
+
+#### API: /api/v1/eblock-block/entries/\{keymr\} (GET)
+
+
+retrieves entry block entries
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| keymr | string | string | Key Mr of Eblock | Yes |
+| limit | int | int | Number of entry blocks to return, max 200 |  |
+| offset | int | int | Offset of entry blocks |  |
+| short | string | string | If set to true, will not give entry body and extids |  |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [SQLEntry](#github.com.Emyrk.tfa-explorer.common.SQLEntry) |  |
+
+
+<a name="FetchChainEntries"></a>
+
+#### API: /api/v1/eblock-block/entries/\{chainid\} (GET)
+
+
+retrieves entries in a chain
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| chainid | string | string | ChainID of chain | Yes |
+| limit | int | int | Number of entry blocks to return, max 200 |  |
+| offset | int | int | Offset of entry blocks |  |
+| short | string | string | If set to true, will not give entry body and extids |  |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [SQLEntry](#github.com.Emyrk.tfa-explorer.common.SQLEntry) |  |
+
+
+<a name="FetchAdminBlockEntries"></a>
+
+#### API: /api/v1/admin-block/entries/\{height\} (GET)
+
+
+retrieves admin block entries by height.
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| height | int | int | Input height of admin block | Yes |
+| limit | int | int | Number of adminblock entries to return, max 200 |  |
+| offset | int | int | Offset of adminblock entries |  |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [AdminBlockEntriesResponse](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.AdminBlockEntriesResponse) |  |
+
+
+<a name="FetchEntryCreditBlockEntries"></a>
+
+#### API: /api/v1/entrycredit-block/entries/\{height\} (GET)
+
+
+retrieves entry credit block entries
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| height | int | int | Input height of directory block | Yes |
+| limit | int | int | Number of entry blocks to return, max 200 |  |
+| offset | int | int | Offset of entry blocks |  |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [EntryCreditBlockEntriesResponse](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.EntryCreditBlockEntriesResponse) |  |
+
+
+<a name="FetchEntryByHash"></a>
+
+#### API: /api/v1/entry/ (GET)
+
+
+Retrieves the entry commit and reveal by hash. ExtIDs & Content are base64 encoded!
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| entryhash | string | string | Input entryhash for the entry | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [EntryCommitAndReveal](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.EntryCommitAndReveal) |  |
+
+
+<a name="FetchEntryRevealByHash"></a>
+
+#### API: /api/v1/entry/ (GET)
+
+
+Retrieves the entry reveal by hash. ExtIDs & Content are base64 encoded!
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| entryhash | string | string | Input entryhash for the entry | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLEntry](#github.com.Emyrk.tfa-explorer.common.SQLEntry) |  |
+
+
+<a name="FetchEntryCommitByHash"></a>
+
+#### API: /api/v1/entrycommit/ (GET)
+
+
+Retrieves the entry commit by hash.
+
+
+
+| Param Name | Param Type | Data Type | Description | Required? |
+|-----|-----|-----|-----|-----|
+| entryhash | string | string | Input entryhash for the entry | Yes |
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [SQLEntryCreditBlockEntry](#github.com.Emyrk.tfa-explorer.common.SQLEntryCreditBlockEntry) |  |
+
+
+<a name="FetchBlockchainTop"></a>
+
+#### API: /api/v1/top (GET)
+
+
+retrieves the topmost height in the blockchain
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | int |  |
+
+
+<a name="FetchECAddressCommits"></a>
+
+#### API: /api/v1/address/commits/ (GET)
+
+
+Retrieves all entry credit commits related to a given address (must be an ec address)
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [FetchECAddressCommitsResponse](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.FetchECAddressCommitsResponse) |  |
+
+
+<a name="FetchAddressTransactions"></a>
+
+#### API: /api/v1/address/transactions/ (GET)
+
+
+Retrieves all factoid transactions related to a given address
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [FactoidTransactionList](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.FactoidTransactionList) |  |
+
+
+<a name="FetchHeightTransactions"></a>
+
+#### API: /api/v1/factoid-block/transactions/ (GET)
+
+
+Retrieves all factoid transactions related to a given block height
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [FactoidTransactionList](#github.com.Emyrk.tfa-explorer.api_server.app.controllers.FactoidTransactionList) |  |
+
+
+<a name="FetchTransactionByTxID"></a>
+
+#### API: /api/v1/transaction/ (GET)
+
+
+Retrieves the transaction by txid
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [FactomTransaction](#github.com.Emyrk.tfa-explorer.common.FactomTransaction) |  |
+
+
+<a name="FetchRichlist"></a>
+
+#### API: /api/v1/richlist/ (GET)
+
+
+Retrieves richlist for the given type ('factoid' or 'entrycredit')
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [FactoidAddress](#github.com.Emyrk.tfa-explorer.common.FactoidAddress) |  |
+
+
+<a name="FetchRichList"></a>
+
+#### API: /api/v1/address/balance/ (GET)
+
+
+Retrieves the balance for a given address
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [FactoidAddress](#github.com.Emyrk.tfa-explorer.common.FactoidAddress) |  |
+
+
+<a name="GeneralSearch"></a>
+
+#### API: /api/v1/search/ (GET)
+
+
+Searches the database for the hash
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [DatabaseHashType](#github.com.Emyrk.tfa-explorer.database.DatabaseHashType) |  |
+
+
+<a name="FetchIdentity"></a>
+
+#### API: /api/v1/identity/ (GET)
+
+
+Retrieves the identity for a given root chain id
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [ExtendedIdentity](#github.com.Emyrk.factom-identity.ExtendedIdentity) |  |
+
+
+<a name="FetchAuthority"></a>
+
+#### API: /api/v1/authority/ (GET)
+
+
+Retrieves the authority for a given root chain id
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | [ExtendedAuthority](#github.com.Emyrk.factom-identity.ExtendedAuthority) |  |
+
+
+<a name="FetchAuthorities"></a>
+
+#### API: /api/v1/authorities (GET)
+
+
+Retrieves all authorities
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | array | [ExtendedAuthority](#github.com.Emyrk.factom-identity.ExtendedAuthority) |  |
+
+
+<a name="FrontPage"></a>
+
+#### API: /api/v1/index (GET)
+
+
+Retrieves all data needed for index page
+
+
+
+| Code | Type | Model | Message |
+|-----|-----|-----|-----|
+| 200 | object | string |  |
+
+
+
+
+### Models
+
+<a name="github.com.Emyrk.factom-identity.AuthorityExtension"></a>
+
+#### AuthorityExtension
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| name | string |  |
+| readable_status | string |  |
+| user_coinbase_address | string |  |
+
+<a name="github.com.Emyrk.factom-identity.ExtendedAuthority"></a>
+
+#### ExtendedAuthority
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| auth_core | github.com.FactomProject.factomd.common.identity.Authority |  |
+| auth_extension | github.com.Emyrk.factom-identity.AuthorityExtension |  |
+
+<a name="github.com.Emyrk.factom-identity.ExtendedIdentity"></a>
+
+#### ExtendedIdentity
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| id_core | github.com.FactomProject.factomd.common.identity.Identity |  |
+| id_extension | github.com.Emyrk.factom-identity.IdentityExtension |  |
+
+<a name="github.com.Emyrk.factom-identity.IdentityExtension"></a>
+
+#### IdentityExtension
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| name | string |  |
+| user_coinbase_address | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.AdminBlockEntriesResponse"></a>
+
+#### AdminBlockEntriesResponse
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| entries | array |  |
+| total_entries | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.DirectoryBlockEntries"></a>
+
+#### DirectoryBlockEntries
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| adminblock | github.com.Emyrk.tfa-explorer.database.BlockResponse |  |
+| entryblocks | array |  |
+| entrycreditblock | github.com.Emyrk.tfa-explorer.database.BlockResponse |  |
+| factoidblock | github.com.Emyrk.tfa-explorer.database.BlockResponse |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.EntryCommitAndReveal"></a>
+
+#### EntryCommitAndReveal
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| commit | github.com.Emyrk.tfa-explorer.common.SQLEntryCreditBlockEntry |  |
+| reveal | github.com.Emyrk.tfa-explorer.common.SQLEntry |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.EntryCreditBlockEntriesResponse"></a>
+
+#### EntryCreditBlockEntriesResponse
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| commits | array |  |
+| total_commits | int |  |
+| total_credits | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.FactoidTransactionList"></a>
+
+#### FactoidTransactionList
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| total_transactions | int |  |
+| transactions | array |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.FetchECAddressCommitsResponse"></a>
+
+#### FetchECAddressCommitsResponse
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| address | string |  |
+| commits | array |  |
+| total_commits | int |  |
+| total_ec_spent | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.api_server.app.controllers.GenericBlock"></a>
+
+#### GenericBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+
+<a name="github.com.Emyrk.tfa-explorer.common.FactoidAddress"></a>
+
+#### FactoidAddress
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| address | string |  |
+| balance | int64 |  |
+| order | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.FactomTransaction"></a>
+
+#### FactomTransaction
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| block_height | int |  |
+| blockchain_date | Time |  |
+| ecoutputs | array |  |
+| inputs | array |  |
+| outputs | array |  |
+| total_ec_fct_output | int64 |  |
+| total_ec_output | int64 |  |
+| total_fct_output | int64 |  |
+| total_input | int64 |  |
+| trans_date | Time |  |
+| txid | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.FactomTransactionPart"></a>
+
+#### FactomTransactionPart
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| address | string |  |
+| ec_amount | int64 |  |
+| fct_amount | int64 |  |
+| seq_num | int |  |
+| signature | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLAdminBlock"></a>
+
+#### SQLAdminBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| block_height | int |  |
+| body_size | int |  |
+| key_mr | string |  |
+| message_count | int |  |
+| prev_key_mr | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLAdminBlockEntry"></a>
+
+#### SQLAdminBlockEntry
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| RawEntry | interfaces.IABEntry |  |
+| ab_type | uint8 |  |
+| block_height | int |  |
+| raw | array |  |
+| raw_json | string |  |
+| raw_type | int |  |
+| raw_type_string | string |  |
+| sequence | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLDirectoryBlock"></a>
+
+#### SQLDirectoryBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| admin_entry_count | int |  |
+| block_count | int |  |
+| block_height | int |  |
+| blockchain_timestamp | Time |  |
+| body_mr | string |  |
+| dblock_hash | string |  |
+| eblock_count | int |  |
+| entry_count | int |  |
+| entrycredit_entry_count | int |  |
+| exch_rate | int64 |  |
+| fct_trans_count | int |  |
+| key_mr | string |  |
+| prev_full_hash | string |  |
+| prev_key_mr | string |  |
+| total_ec_burned | int64 |  |
+| total_ec_output | int64 |  |
+| total_fct_input | int64 |  |
+| total_fct_output | int64 |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLEntry"></a>
+
+#### SQLEntry
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| OnlyHash | bool |  |
+| block_height | int |  |
+| blockchain_date | Time |  |
+| chain_id | string |  |
+| content | array | Base64 encoded |
+| eblock_key_mr | string |  |
+| entry_hash | string |  |
+| extid_count | int |  |
+| extids | array | []Base64 encoded |
+| extidsString | array |  |
+| id | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLEntryBlock"></a>
+
+#### SQLEntryBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| block_height | int |  |
+| body_mr | string |  |
+| chain_id | string |  |
+| eb_sequence | int |  |
+| entry_count | int |  |
+| key_mr | string |  |
+| prev_full_hash | string |  |
+| prev_key_mr | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLEntryCreditBlock"></a>
+
+#### SQLEntryCreditBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| block_height | int |  |
+| body_hash | string |  |
+| body_size | int |  |
+| full_hash | string |  |
+| header_hash | string |  |
+| key_mr | string |  |
+| object_count | int |  |
+| prev_full_hash | string |  |
+| prev_header_hash | string |  |
+| prev_key_mr | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLEntryCreditBlockEntry"></a>
+
+#### SQLEntryCreditBlockEntry
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| address | string |  |
+| block_height | int |  |
+| blockchain_date | Time |  |
+| chain_commit | bool |  |
+| commit_date | Time |  |
+| credits | int |  |
+| ecent_hash | string |  |
+| entry_hash | string |  |
+| signature | string |  |
+
+<a name="github.com.Emyrk.tfa-explorer.common.SQLFactoidBlock"></a>
+
+#### SQLFactoidBlock
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| block_height | int |  |
+| body_mr | string |  |
+| body_size | int |  |
+| exchange_rate | int64 |  |
+| key_mr | string |  |
+| prev_key_mr | string |  |
+| prev_ledger_key_mr | string |  |
+| transaction_count | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.database.BlockResponse"></a>
+
+#### BlockResponse
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| chain_id | string |  |
+| entry_count | int |  |
+| keymr | string |  |
+| sequence | int |  |
+
+<a name="github.com.Emyrk.tfa-explorer.database.DatabaseHashType"></a>
+
+#### DatabaseHashType
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| hash | string |  |
+| object_type | string |  |
+
+<a name="github.com.FactomProject.factomd.common.identity.AnchorSigningKey"></a>
+
+#### AnchorSigningKey
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| blockchain | string |  |
+| key | github.com.FactomProject.factomd.common.primitives.ByteSlice20 |  |
+| keytype | byte |  |
+| level | byte |  |
+
+<a name="github.com.FactomProject.factomd.common.identity.Authority"></a>
+
+#### Authority
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| anchor_keys | array |  |
+| coinbase_address | interfaces.IAddress |  |
+| efficiency | uint16 |  |
+| identity_chainid | interfaces.IHash |  |
+| management_chaind | interfaces.IHash |  |
+| matryoshka_hash | interfaces.IHash |  |
+| signing_key | github.com.FactomProject.factomd.common.primitives.PublicKey |  |
+| status | uint8 |  |
+
+<a name="github.com.FactomProject.factomd.common.identity.Identity"></a>
+
+#### Identity
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+| IdentityCreated | uint32 |  |
+| IdentityRegistered | uint32 |  |
+| ManagementChainID | interfaces.IHash |  |
+| ManagementCreated | uint32 |  |
+| ManagementRegistered | uint32 |  |
+| MatryoshkaHash | interfaces.IHash |  |
+| anchor_keys | array |  |
+| coinbase_address | interfaces.IHash |  |
+| efficiency | uint16 |  |
+| identity_chainid | interfaces.IHash |  |
+| identity_keys | array |  |
+| signing_key | interfaces.IHash |  |
+| status | uint8 |  |
+
+<a name="github.com.FactomProject.factomd.common.primitives.ByteSlice20"></a>
+
+#### ByteSlice20
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+
+<a name="github.com.FactomProject.factomd.common.primitives.PublicKey"></a>
+
+#### PublicKey
+
+| Field Name (alphabetical) | Field Type | Description |
+|-----|-----|-----|
+
+