-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtronbox.js
39 lines (34 loc) · 976 Bytes
/
tronbox.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const port = process.env.HOST_PORT || 9090
module.exports = {
networks: {
mainnet: {
// Don't put your private key here:
privateKey: process.env.PRIVATE_KEY_MAINNET,
/*
Create a .env file (it must be gitignored) containing something like
export PRIVATE_KEY_MAINNET=4E7FECCB71207B867C495B51A9758B104B1D4422088A87F4978BE64636656243
Then, run the migration with:
source .env && tronbox migrate --network mainnet
*/
userFeePercentage: 100,
feeLimit: 1e8,
fullHost: "https://api.trongrid.io",
network_id: "1"
},
shasta: {
privateKey: process.env.PRIVATE_KEY_SHASTA,
userFeePercentage: 50,
feeLimit: 1e8,
fullHost: "https://api.shasta.trongrid.io",
network_id: "2"
},
development: {
// For trontools/quickstart docker image
privateKey: '',
userFeePercentage: 50,
feeLimit: 1e8,
fullHost: 'http://127.0.0.1:' + port,
network_id: "9"
}
}
}