我们希望NEO的社区可以发展和合作。NEO是利用区块链技术和数字身份进行资产数字化,利用智能合约对数字资产进行自动化管理,实现“智能经济”的一种分布式网络。我们正在举办全球性的挑战赛,以促进NEO社区的增长。
- 可以使用各种方法获取指定高度时有NEO余额(不包含GAS)的地址及余额。
- 数据来源是NEO区块链主网,输入为区块高度,输出地址与对应余额的。csv文件。
- 获取的NEO地址不可以出现重复和遗漏。
- 使用最少时间者获胜。
- 使用开发语言不限。
- 最终解释权归NGD所有。
深圳市南山区科发路1号富利臻大厦3F*(近高新园地铁站)*
6月9日 09:30 ~ 6月10日 17:30
快速检索NEO地址及余额
1001 注:输入为区块高度,区块高度从0开始,区块高度=区块数量-1
地址1,余额1 地址2,余额2 。。。 地址n,余额n
第一名 150GAS 第二名 100GAS 第三名 50GAS
-
NEO Global Development (NGD) 高级软件工程师 NEO团队早期成员、开发者、技术布道师。全栈工程师,国内知名 Windows Insider。编写了大量技术文档,影响并推动着众多技术爱好者参与到区块链技术研发和推广中。
-
田力
NEO Global Development (NGD) 高级研发经理 多年互联网项目开发与管理经验。区块链社区早期参与者。专注于各种算法与人工智能在区块链上的研究与应用。
-
第一名: 王辉 、喻大圣 、陈圣聪(150 GAS)
从创世区块开始,逐个扫描区块,在同步区块的过程中进行下列操作:- 根据区块数据构造Block对象(开源项目NEO代码有Block类。
- Block对象有交易集合,分析交易集合输出(地址,余额。
- 下一个区块同样分析交易集合,但要加上前一个区块的结果。
- 内存中持有一份集合(地址,余额)的快照。
- 每一个区块都是对前一个区块的集合(地址,余额)进行新增地址余额、更新地址余额、消耗掉地址余额,更新内存状态的快照。
- 输出指定高度的内存快照。
-
- 使用RPC的getblock和getrawtransaction方法,分析从创始块到指定高度的区块的UTXO数据。
- 由UTXO内做出分析,我们知道VIN和VOUT的关系。VIN是消耗之前地址的余额,VOUT是更新地址余额,程序里面使用数据库把所有VIN和的交易记录记下,VIN为负数,VOUT为正数。
- 分析完最后可以使用数据库的sum和groupby方式把最终结果拿到。
-
第三名:
没有人完成。
We hope that NEO's community can develop and cooperate together. NEO utilizes blockchain technology and digital identity to digitize assets and automate the management of digital assets using smart contracts. Using a distributed network, it aims to create a "Smart Economy". We are organizing a global competition to promote the growth of the NEO community.
Free registration of challenge
- Various methods can be used to obtain the addresses of the NEO accounts with NEO balance (excluding GAS) and the specific amounts of balance when a height is designated.
- The data source is from the NEO blockchain main network. The input is the block height, and the output are addresses and the corresponding balances (csv file).
- The obtained NEO addresses cannot be repeated or omitted.
- Win with the least amount of time.
- The programming language is not limited.
- The final interpretation right belongs to NGD.
3F*, Fulizhen Building, No. 1, Kefa Road, Nanshan District, Shenzhen (near Gaoxinyuan Metro Station)
June 9th:09:30AM ~ June 10th: 17:30PM
Quickly query NEO’s addresses and balances
1001
Note: The input is the block height, the block height starts from 0, the block height is the number of blocks -1
Address 1, balance 1
Address 2, balance 2
......
Address n, balance n
First prize:150GAS, Second prize:100GAS, Third prize: 50GAS
-
Chen Zhitong
NEO Global Development (NGD) Senior Software Engineer
An early member of the NEO team, a developer, and a technical evangelist. Full stack engineer, well-known Windows Insider in China. He has written a large number of technical documents, which have encouraged many technology enthusiasts to participate in the research and development and promotion of blockchain technology.
-
Tian Li
NEO Global Development (NGD) Senior R&D Manager
Years of experience in Internet project development and management. An early participant in the blockchain community. Focus on the research and application of various algorithms and artificial intelligence to the blockchain.
-
First prize: Wang Hui, Yu Dasheng, Chen Shengcong(150 GAS)
Starting from the genesis block, they scan the blocks one by one, and do the following during the process of sync block:
-
Construct a block object based on block data (NEO code has block class).
-
The block object has transaction sets and analyzes the output of transaction sets (address, balance).
-
The next block also analyzes the transaction sets, but it adds the result of the previous block.
-
A snapshot of the sets (address, balance) is held in memory.
-
Each block is a snapshot of the newly added address balance, the updated address balance, the consumed address balance, and the updated memory state for the sets (address, balance) of the previous block.
-
Output a memory snapshot of the specified height.
-
-
Second prize:Li Jingye (100 GAS)
-
Use RPC methods of getblock and getrawtransaction to analyze the UTXO data from the genesis block to the block of the specified height.
-
By analyzing the UTXO, we figure out the relationship between VIN and VOUT. VIN consumes the balance of the previous address. VOUT updates the balance of address. The program records all VINs and VOUTs transaction history in the database. VIN is negative while VOUT is positive.
-
After the analysis, you can use the methods of sum and groupby to get the final result in database.
-
-
Third prize:
No one finished.