Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
chain_id
uint64
1
1
block_number
uint64
19.5M
20M
block_hash
stringlengths
64
64
transaction_hash
stringlengths
64
64
deployer_address
stringlengths
40
40
factory_address
stringlengths
40
40
contract_address
stringlengths
40
40
creation_bytecode
stringlengths
0
98.3k
runtime_bytecode
stringlengths
0
49.2k
creation_sourcecode
stringlengths
0
976k
1
19,493,000
dc43b5a0cdb0b20c8e158aabf3a5f75b626e73126d438ae5ccdfe9f5b8fd48b9
aca2f65cb2cb6bcb3151ce7fbbda99ea68ab605898ad929e906913f0b82438d1
a37ebd3bff5eb50ad1588f8edb7d7fb7d7c0ed9f
5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
0994def38c44c9b65cbe70fa3a463d3cf5a0d2ee
60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df09...
608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe001161...
// File: contracts/interfaces/IUniswapV2Pair.sol pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memo...
1
19,493,003
f0931f2a5f64c1489d148d4f7d04b6c0c8ec69d91c449dfbafe0ac65bb997910
136994712c5961fdb7cacb0bf34a24e3184b9b09cce4217a6a6d14aa09f5aaaf
1be721f572baf4d701b52238a2307a1dc579d684
a6b71e26c5e0845f74c812102ca7114b6a896ab2
57d4d2939795ade1fc714283a2730fb638a8e1e9
608060405234801561001057600080fd5b506040516101e63803806101e68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152...
608060405273ffffffffffffffffffffffffffffffffffffffff600054167fa619486e0000000000000000000000000000000000000000000000000000000060003514156050578060005260206000f35b3660008037600080366000845af43d6000803e60008114156070573d6000fd5b3d6000f3fea2646970667358221220d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b9552...
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; /// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain /// @author Richard Meissner - <richard@gnosis.io> interface IProxy { function masterCopy() external view returns (address); } /// @title GnosisSafePro...
1
19,493,003
f0931f2a5f64c1489d148d4f7d04b6c0c8ec69d91c449dfbafe0ac65bb997910
d8a74687f33ef41513aff76c1d037e2918db7b952a264bd4eaea4af7b5d49e68
d1eecd42646ef5c9ddc7f0f1ca80def142d4441c
000000008924d42d98026c656545c3c1fb3ad31c
0a0ab7aaf48fe0225a7ac6f09aeae5031a2c0ddc
"3d602d80600a3d3981f3363d3d373d3d3d363d73391a04311e0bfc913ef6fa784773307c826104f05af43d82803e903d916(...TRUNCATED)
363d3d373d3d3d363d73391a04311e0bfc913ef6fa784773307c826104f05af43d82803e903d91602b57fd5bf3
"{{\r\n \"language\": \"Solidity\",\r\n \"sources\": {\r\n \"lib/ERC721A/contracts/IERC721A.sol(...TRUNCATED)
1
19,493,006
0c8d2de084490e5ab5c3b48379db6ad26fe14820c2e46144240f2147a14d3d42
3b955de58e949f6163e755c923d46e0113697097343294c188b4dc7ba98e31dc
a7fb5ca286fc3fd67525629048a4de3ba24cba2e
c77ad0a71008d7094a62cfbd250a2eb2afdf2776
3008d84f5aa9d43ea6458fc798a347beed17a5bc
"608060408190526319b400eb60e21b8152339060009082906366d003ac9060849060209060048186803b158015610035576(...TRUNCATED)
1
19,493,006
0c8d2de084490e5ab5c3b48379db6ad26fe14820c2e46144240f2147a14d3d42
5f6bfd90e87d86da245921dd8a3f6a7220c3883148db8e083a89ca8e5d9ad697
c9aad2fc90eddacf02bd11fa690e3b44e318aa9b
a2a1bf5a83f9daec2dc364e1c561e937163cb613
77d5553099a8e6a39173483fb48b7fb9b03c6413
"3d602d80600a3d3981f3363d3d373d3d3d363d7387ae9be718aa310323042ab9806bd6692c1129b75af43d82803e903d916(...TRUNCATED)
363d3d373d3d3d363d7387ae9be718aa310323042ab9806bd6692c1129b75af43d82803e903d91602b57fd5bf3
1
19,493,012
2e204d15c090664ba5476d2de2e1ece9f56380174e0dc7b5d267c872578c1eda
133fff7fd0dbc4b02e25a3ed80766ad812ebd33b464904a0835043e2616675be
61d71a4176f44227186eb89c4fd2b15a688ff24e
61d71a4176f44227186eb89c4fd2b15a688ff24e
e97e79edb0b8ba07ce0a89de1d2224810c4e3f42
"6080604052670de0b6b3a764000060025566b1a2bc2ec500006003556004805460ff191690557f6e75382374384e10a7b62(...TRUNCATED)
"6080604052600436106100595760003560e01c80632b42b9411461006557806357ea89b6146100875780639763d29b14610(...TRUNCATED)
1
19,493,014
c34abd18688c3c62504cb9f04404e763be79e3e55621434acaabbea4bb04d23c
d8c2f5104bc54c85070bd181eb7b454a60076028483c1acec26cf714ed158f42
9862d074e33003726fa05c74f0142995f33a3250
9862d074e33003726fa05c74f0142995f33a3250
10a1d4fbfcd96d88ccac2b3f34ac6bd3d4953bce
"6060604052739862d074e33003726fa05c74f0142995f33a32506000806101000a81548173fffffffffffffffffffffffff(...TRUNCATED)
"6060604052361561004a576000357c0100000000000000000000000000000000000000000000000000000000900463fffff(...TRUNCATED)
1
19,493,015
8fefe5760770b784e7fcd897d171967319a1f2a231b987bca710cd3bc16df7e6
89829c478f06167824ebcbe56c06ec15333d1f7db485c736970343d4e66b3e13
e70b8c96c8594d7d2dbb79884419c07d4bd538e6
000000f20032b9e171844b00ea507e11960bd94a
ba36e76be6a7949584f9945a3bc1744bbc766b9c
"3d602d80600a3d3981f3363d3d373d3d3d363d730d223d05e1cc4ac20de7fce86bc9bb8efb56f4d45af43d82803e903d916(...TRUNCATED)
363d3d373d3d3d363d730d223d05e1cc4ac20de7fce86bc9bb8efb56f4d45af43d82803e903d91602b57fd5bf3
"{{\r\n \"language\": \"Solidity\",\r\n \"sources\": {\r\n \"src/clones/ERC1155SeaDropCloneable(...TRUNCATED)
1
19,493,019
3e31ca1022b8585f772c6f3cc09c257fb928c154936613eac252a5d1ed549a93
8eee1bc1007f06f419a0871aeaca85547c31090fd1c641df6621293624a3a182
958ac2e986ea15d33caae538dd632a1350f4b714
000000008924d42d98026c656545c3c1fb3ad31c
4504ecbfcfe5720d77a7573d1d4e2ec825db2566
"3d602d80600a3d3981f3363d3d373d3d3d363d73391a04311e0bfc913ef6fa784773307c826104f05af43d82803e903d916(...TRUNCATED)
363d3d373d3d3d363d73391a04311e0bfc913ef6fa784773307c826104f05af43d82803e903d91602b57fd5bf3
"{{\r\n \"language\": \"Solidity\",\r\n \"sources\": {\r\n \"lib/ERC721A/contracts/IERC721A.sol(...TRUNCATED)
1
19,493,020
51322bb8e147901416c7faf556888fa1fcfb4941b99bfa45f82ba29d2b7d3b38
fa64ba26dc3e8edccd550962f811f1dde09311734bc6fe7a2f88d927332a2ca4
099b1d292689be58f498f127f4e08fe4f0969bce
ffa397285ce46fb78c588a9e993286aac68c37cd
28fb5b7cc969bb5fbe130d8fd17be81e33b7cb4e
"3d602d80600a3d3981f3363d3d373d3d3d363d73059ffafdc6ef594230de44f824e2bd0a51ca5ded5af43d82803e903d916(...TRUNCATED)
363d3d373d3d3d363d73059ffafdc6ef594230de44f824e2bd0a51ca5ded5af43d82803e903d91602b57fd5bf3
"pragma solidity 0.7.5;\r\n\r\n/*\r\n The MIT License (MIT)\r\n Copyright (c) 2018 Murray Soft(...TRUNCATED)
End of preview. Expand in Data Studio

EVM Contracts

Description

EVMC (Ethereum Virtual Machine Contracts) is a collection of smart contracts from the ETH blockchain.

In particular, each sample holds the creation and runtime bytecodes. When available, the sources are also included.

Metadata

HEX Dataset

Config Split Size Samples Blocks
'hex-ethereum' 'train' 2.8 GB 1,294,247 19,493,000 - 20,292,000
'hex-ethereum' 'cleaned' 2.0 GB 122,800 19,493,000 - 20,292,000

The "cleaned" split covers the same block range, but records were removed when:

  • the source code is not available
  • the source code matches the contract factory instead of the deployed contract

BIN Dataset

Config Split Size Samples Blocks
'bin-ethereum' 'train' 2.3 GB 1,294,247 19,493,000 - 20,292,000

Features

The data comes in two flavors: binary and hexadecimal encodings. The fields have the same names in both and the underlying data is also identical.

In binary form, the raw bytes are stored in most fields:

datasets.Features({
    'chain_id': datasets.features.Value(dtype='uint64'),
    'block_number': datasets.features.Value(dtype='uint64'),
    'block_hash': datasets.features.Value(dtype='large_binary'),
    'transaction_hash': datasets.features.Value(dtype='large_binary'),
    'deployer_address': datasets.features.Value(dtype='large_binary'),
    'factory_address': datasets.features.Value(dtype='large_binary'),
    'contract_address': datasets.features.Value(dtype='large_binary'),
    'creation_bytecode': datasets.features.Value(dtype='large_binary'),
    'runtime_bytecode': datasets.features.Value(dtype='large_binary'),
    'creation_sourcecode': datasets.features.Value(dtype='large_binary'),})

While in hexadecimal format, the data is encoded into HEX strings:

datasets.Features({
    'chain_id': datasets.features.Value(dtype='uint64'),
    'block_number': datasets.features.Value(dtype='uint64'),
    'block_hash': datasets.features.Value(dtype='string'),
    'transaction_hash': datasets.features.Value(dtype='string'),
    'deployer_address': datasets.features.Value(dtype='string'),
    'factory_address': datasets.features.Value(dtype='string'),
    'contract_address': datasets.features.Value(dtype='string'),
    'creation_bytecode': datasets.features.Value(dtype='string'),
    'runtime_bytecode': datasets.features.Value(dtype='string'),
    'creation_sourcecode': datasets.features.Value(dtype='string'),})

Chain And Block Numbers

Both ids are stored as unsigned integers.

Solidity Sources

The sources all have open source licenses. They were collected from block explorer APIs like Etherscan.

The sources are formatted as standard JSON input for the solidity compiler.

The resulting JSON is then encoded using UTF-8 into a single string.

HEX Dataset

All the other features are HEX encoded into strings, without the 0x prefix.

For example:

{
    'chain_id': 1,
    'block_number': 20155815,
    'block_hash': 'fcddf33b1b5a728a40588eda60262639201ac0d3f611f08286a9e2ef65576111',
    'transaction_hash': 'ec3723ffb8a3bbb8b83b25481f61cbfc46383fc88ff8eb364186b53aa226e4bf'
    'deployer_address': 'ba57abe375903838b5c19709e96dae12191fa37e',
    'factory_address': '0000000000b3f879cb30fe243b4dfee438691c04',
    'contract_address': 'eff10e7d4feef60ed9b9e9bb9fee12c2504bd0ba',
    'creation_bytecode': '756eb3f879cb30fe243b4dfee438691c043318585733ff6000526016600af3',
    'runtime_bytecode': '6eb3f879cb30fe243b4dfee438691c043318585733ff',
    'solidity_sourcecode': '',}

BIN Dataset

All the other features are stored in binary format:

{
    'chain_id': 1,
    'block_number': 20155815,
    'block_hash': b'\xfc\xdd\xf3;\x1bZr\x8a@X\x8e\xda`&&9 \x1a\xc0\xd3\xf6\x11\xf0\x82\x86\xa9\xe2\xefeWa\x11',
    'transaction_hash': b'\xec7#\xff\xb8\xa3\xbb\xb8\xb8;%H\x1fa\xcb\xfcF8?\xc8\x8f\xf8\xeb6A\x86\xb5:\xa2&\xe4\xbf',
    'deployer_address': b'\xbaW\xab\xe3u\x9088\xb5\xc1\x97\t\xe9m\xae\x12\x19\x1f\xa3~',
    'factory_address': b'\x00\x00\x00\x00\x00\xb3\xf8y\xcb0\xfe$;M\xfe\xe48i\x1c\x04',
    'contract_address': b'\xc7%\xbc1\xcb\xa2LS\xe5\xc0\xc2\xe2\x06]K@\xf5#Fx',
    'creation_bytecode': b'un\xb3\xf8y\xcb0\xfe$;M\xfe\xe48i\x1c\x043\x18XW3\xff`\x00R`\x16`\n\xf3',
    'runtime_bytecode': b'n\xb3\xf8y\xcb0\xfe$;M\xfe\xe48i\x1c\x043\x18XW3\xff',
    'creation_sourcecode': b''}

This saves disk space and may actually be more practical for further processing.

Downloads last month
91