AB 技术信息
基本资料
- 项目方官网
- 区块链浏览器地址
- 区块链源码:
- 发行量和流通量:
NewChain与Ethereum的主要区别:
- 签名算法:将Ethereum用的secp256k1改成了NewChain用的secp256r1
- 地址需要通过转换后再展现给用户(用户看到的是NEW开头的地址,示例:NEW182F3f3q8CFM3od4RkjWPPEx6vAcBJpVdurC)。
- SDK里面已经提供的地址双向转换的代码。
- 请务必对用户提交的地址进行校验,确保地址解析出来的ChainID与当前网络的ChainID一致,否则会造成交易失败或者资产丢失。具体地址解析方法请参考example代码。
区块链相关信息
- 币的精度
- AB的最小单位是ISSAC,1AB == 1000000000000000000 ISSAC。
- 区块间隔时间
- 3秒
- 普通交易安全到账所需的确认区块数量
- 20个区块确认后可以认为安全。
- 自建节点
API
-
RPC服务地址
- 主网(MainNet):
- 测试网(TestNet):
-
ChainID
- 主网(MainNet): 1012
- 测试网(TestNet): 1007
-
示例代码:
-
目前Newton提供的RPC服务开放使用的API包括如下:(如需更多接口请自建节点)
"net_version",
"net_peerCount",
"net_listening",
"eth_protocolVersion",
"eth_syncing",
"eth_mining",
"eth_hashrate",
"eth_gasPrice",
"eth_blockNumber",
"eth_getBalance",
"eth_getStorageAt",
"eth_getTransactionCount",
"eth_getBlockTransactionCountByHash",
"eth_getBlockTransactionCountByNumber",
"eth_getUncleCountByBlockHash",
"eth_getUncleCountByBlockNumber",
"eth_getCode",
"eth_sendRawTransaction",
"eth_call",
"eth_estimateGas",
"eth_getBlockByHash",
"eth_getBlockByNumber",
"eth_getTransactionByHash",
"eth_getTransactionByBlockHashAndIndex",
"eth_getTransactionByBlockNumberAndIndex",
"eth_getTransactionReceipt",
"eth_getUncleByBlockHashAndIndex",
"eth_getUncleByBlockNumberAndIndex",
"eth_getCompilers",
"eth_compileLLL",
"eth_compileSolidity",
"eth_compileSerpent",
"eth_newFilter",
"eth_newBlockFilter",
"eth_newPendingTransactionFilter",
"eth_uninstallFilter",
"eth_getFilterChanges",
"eth_getFilterLogs",
"eth_getLogs",
"eth_chainId",
"eth_getProof",