Skip to content

Instantly share code, notes, and snippets.

@tvl83
Created July 30, 2017 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvl83/2e0a5b992337122d3e12acd22e722298 to your computer and use it in GitHub Desktop.
Save tvl83/2e0a5b992337122d3e12acd22e722298 to your computer and use it in GitHub Desktop.
I am trying to make a file like https://github.com/tvl83/coininfo/blob/master/lib/coins/btc.js for ION. Please help by updating this with the right information. I know to look https://github.com/ionomy/ion/blob/master/src/chainparams.cpp but I don't know where to find all the information
/*
info from:
https://github.com/ionomy/ion/blob/master/src/chainparams.cpp
*/
var assign = require('object-assign')
var common = {
name: 'Ion',
per1: 1e8,
unit: 'IONM'
}
// Updated genBlock, port, rpcport, dnsSeeds
// TODO: versions.bip32
// TODO: bip44: 0,
// private: 0x80,
// public: 0x00,
// scripthash: 0x05
var main = assign({}, {
hashGenesisBlock: '0000004cf5ffbf2e31a9aa07c86298efb01a30b8911b80af7473d1114715084b',
// nDefaultPort
port: 12700,
portRpc: 12705,
protocol: {
// pchMessageStart
magic: 0xd9b4bef9 // careful, sent over wire as little endian
},
// vSeeds
seedsDns: [
'seeder.baseserv.com',
'main.seeder.baseserv.com',
'seeder.uksafedns.net',
'main.seeder.uksafedns.net'
],
// base58Prefixes
versions: {
bip32: {
private: 0x0488ade4,
public: 0x0488b21e
},
// http://doc.satoshilabs.com/slips/slip-0044.html
bip44: 0,
private: 0x80,
public: 0x00,
scripthash: 0x05
}
}, common)
var test = assign({}, {
hashGenesisBlock: '0000002bed128b6b2a62bd8edd4e6f8a414eac38e256aa0194adb8c93fe18132',
port: 18333,
portRpc: 18332,
protocol: {
magic: 0x0709110b
},
seedsDns: [
'seeder.baseserv.com',
'testnet.seeder.baseserv.com',
'seeder.uksafedns.net',
'testnet.seeder.uksafedns.net'
],
versions: {
bip32: {
private: 0x04358394,
public: 0x043587cf
},
bip44: 1,
private: 0xef,
public: 0x6f,
scripthash: 0xc4
}
}, common);
module.exports = {
main: main,
test: test
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment