跳至主要內容

基本信息

tokenview大约 7 分钟

基本信息

Tokenview API 支持的所有公链基本信息。

公链列表

GET https://services.tokenview.io/vipapi/block/latest/height?apikey={apikey}

参数

Request

curl --location 'https://services.tokenview.io/vipapi/block/latest/height?apikey={apikey}'

Response

{
  "code": 1,
  "msg": "成功",
  "data": {
    "btc": "548739",
    "zen": "406490",
    "btm": "122828",
    "zcash": "422943",
    "eth": "6642477",
    "mona": "1486092",
    "dash": "965288",
    "neo": "2919243",
    "ltc": "1521057",
    "doge": "2459890",
    "nas": "1259250",
    "xmr": "1697750",
    "bch": "555183",
    "etc": "6868379"
  }
}

应答字段说明

返回Tokenview 支持的所有公链最新块高。

公链信息

GET https://services.tokenview.io/vipapi/coin/abstract/{公链简称小写}?apikey={apikey}

参数

Request

curl --location 'https://services.tokenview.io/vipapi/coin/abstract/btc?apikey={apikey}'

Response

{
  "code": 1,
  "msg": "成功",
  "data": {
    "id": "",
    "wpTitle": "Bitcoin/BTC white paper",
    "type": "",
    "circulationAmount": "16,923,962 BTC",
    "issueDate": "1225497600000",
    "isToken": "No",
    "summaryEn": "The concept of Bitcoin (Bitcoin) was first proposed by Nakamoto in 2009, according to Satoshi Nakamoto's idea of ​​designing open source software and building a P2P network. Bitcoin is a P2P digital currency. Point-to-point transmission means a decentralized payment system. Unlike most currencies, Bitcoin does not rely on specific currency institutions to issue. It is based on specific algorithms and generated by a large number of calculations. The Bitcoin economy uses a distributed database of multiple nodes in the entire P2P network to confirm and record all transactions. And the use of cryptography design to ensure the security of the various aspects of currency circulation. P2P decentralization features and algorithms itself can ensure that can not be manipulated through the large number of bitcoin to manipulate the currency value. The cryptographic design allows bitcoin to be transferred or paid only by the real owner. This also ensures the anonymity of currency ownership and liquidity transactions. The biggest difference between Bitcoin and other virtual currencies is that their total number is very limited and they are extremely scarce. The currency system had no more than 10.5 million in 4 years, and the total amount will be permanently limited to 21 million.",
    "summaryCn": "比特币(BitCoin)的概念最初由中本聪在2009年提出,根据中本聪的思路设计发布的开源软件以及建构其上的P2P网络。比特币是一种P2P形式的数字货币。点对点的传输意味着一个去中心化的支付系统。与大多数货币不同,比特币不依靠特定货币机构发行,它依据特定算法,通过大量的计算产生,比特币经济使用整个P2P网络中众多节点构成的分布式数据库来确认并记录所有的交易行为,并使用密码学的设计来确保货币流通各个环节安全性。P2P的去中心化特性与算法本身可以确保无法通过大量制造比特币来人为操控币值。基于密码学的设计可以使比特币只能被真实的拥有者转移或支付。这同样确保了货币所有权与流通交易的匿名性。比特币与其他虚拟货币最大的不同,是其总数量非常有限,具有极强的稀缺性。该货币系统曾在4年内只有不超过1050万个,之后的总数量将被永久限制在2100万个。",
    "supply": "21,000,000 BTC",
    "homePageUrl": "https://bitcoin.org/",
    "wpUrl": "http://www.bitcoin.org/bitcoin.pdf",
    "srcUrl": "https://github.com/bitcoin/",
    "coinShortName": "BTC",
    "tokenPlatform": "ethereum",
    "wpEn": "Bitcoin: A Peer-to-Peer Electronic Cash System\nSatoshi Nakamoto\nsatoshin@gmx.com\nwww.bitcoin.org\nAbstract. A purely peer-to-peer version of electronic cash would allow online\npayments to be sent directly from one party to another without going through a\nfinancial institution. Digital signatures provide part of the solution, but the main\nbenefits are lost if a trusted third party is still required to prevent double-spending.\nWe propose a solution to the double-spending problem using a peer-to-peer network.\nThe network timestamps transactions by hashing them into an ongoing chain of\nhash-based proof-of-work, forming a record that cannot be changed without redoing\nthe proof-of-work. The longest chain not only serves as proof of the sequence of\nevents witnessed, but proof that it came from the largest pool of CPU power. As\nlong as a majority of CPU power is controlled by nodes that are not cooperating to\nattack the network, they'll generate the longest chain and outpace attackers. The\nnetw",
    "wpCn": "比特币:一种点对点的电子现金系统\n中本聪(Satoshi Nakamoto)\nsatoshin@gmx.com\nwww.bitcoin.org\n摘要:本文提出了一种完全通过点对点技术实现的电子现金系统,它使得在线支付能够直接由一方发起并支付给另外一方,中间不需要通过任何的金融机构。虽然数字签名部分解决了这个问题,但是如果仍然需要第三方的支持才能防止双重支付的话,那么这种系统也就失去了存在的价值。我们在此提出一种解决方案,使现金系统在点对点的环境下运行,并防止双重支付问题。该网络通过随机散列对全部交易加上时间戳,将它们合并入一个不断延伸的基于随机散列的工作量证明的链条作为交易记录,除非重新完成全部的工作量证明,形成的交易记录将不可更改。最长的链条不仅将作为被观察到的事件序列的证明,而且被看做是来自 CPU 计算能力最大的池。只要大多数的 CPU 计算能力都没有打算合作起来对全网进行攻击,那么诚实的节点将会生成最长的、超过攻击者的链条。这个系统本身需要的基础设施非常少。信息尽最大努力在全网传播即可,节点可以随时离开和重新加入网络,并将最长的工作量证明链条作为在该节点离线期间发生的交易的证明。\n1. 简介\n互联网上的贸易,几乎都需要借助金融机构作为可资信赖的第三方来处理电子支付信息。虽然这类系统在绝大多数情况下都运作良好,但是这类系统仍然内生性地受制于“基于信用的模式”的弱点。我们无法实现完全不可逆的交易,因为金融机构总是不可避免地会出面协调争端。而金融中介的存在,也会增加交易的成本,并且限制了实际可行的最小交易规模,也限制了日常的小额支付交易。并且潜在的损失还在于,很多商品和服务本身是无法退货的,如果缺乏不可逆的支付手段,互联网的贸易就大大受限。因为有潜在的退款的可能,就需要交易双方拥有信任。而商家也必须提防自己的客户,因此会向客户索取完全不必要的个人信息。而实际的商业行为中,一定比例的欺诈性客户也被认为是不可避免的,相关损失视作销售费用处理。而在使用物理现金的情况下,这些销售费用和支付问题上的不确定性却是可以避免的,因为此时没有第三方信用中介的存在。所以,我们非常需要这样一种电子支付系统,它基于密码学原理而不基于信用,使得任何达成一致的双方,能够直接进行支付,从而不需要第三方中介的参与。杜绝回滚支付交易的可能,这就可以保护特定的卖家免于欺诈;而对于想要保护买家的人来说",
    "icon": "bitcoin",
    "uniqueId": "btc",
    "erc20Addr": "",
    "youtubeLink": "https://www.youtube.com/channel/UCetxkZolEBHX47BqtZktbkg",
    "facebookLink": "https://www.facebook.com/bitcoins/",
    "telegramLink": "",
    "twitterLink": "https://twitter.com/bitcoin",
    "bitcointalkLink": "https://bitcointalk.org",
    "codeLang": "C/C++",
    "consensusMethod": "PoW",
    "algorithm": "SHA256",
    "mineable": "Yes",
    "coinFullName": "Bitcoin",
    "coinFullNameCn": "比特币",
    "blockchain": "",
    "blockUrl": "",
    "perSecond": "",
    "githubLink": "https://github.com/bitcoin/",
    "githubContributors": "",
    "githubCommits": "",
    "githubAttention": "",
    "githubCopy": "",
    "github_update": "",
    "homeEmail": "",
    "timeForBlock": "",
    "rank": ""
  }
}

Hash 类型

GET https://services.tokenview.io/vipapi/hashtype/{任意哈希值}?apikey={apikey}

参数

Request

curl --location 'https://services.tokenview.io/vipapi/hashtype/qzu9xxpgkkwnu3y00exnn3n5hpr355hrf55fyq3nw5?apikey={apikey}' 

Response

{
"code": 1,
"msg": "成功",
"data": {
    "BTC": "addr",
    "BCH": "addr"
    }
}

应答字段说明

获取区块链上的 hash 类型,hash 类型通常包括:区块hash,交易hash,地址hash,公私钥hash等。
如果这个hash没在tokenview支持的链上出现过,返回空。
返回的值的含义如下:
  • bh: 区块hash
  • tx: 交易hash
  • addr: 地址hash
  • pk: 公钥hash
  • pid: pid hash

最新块高

GET https://services.tokenview.io/vipapi/coin/latest/{公链简称小写}?apikey={apikey}

参数

Request

curl --location 'https://services.tokenview.io/vipapi/coin/latest/btc?apikey={apikey}'

Response

{
"code": 1,
"msg": "成功",
"data": 593181
}
上次编辑于: