-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.js
38 lines (35 loc) · 1.01 KB
/
constant.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
const abi = [
{
constant: true,
inputs: [
{
name: '_owner',
type: 'address',
},
],
name: 'balanceOf',
outputs: [
{
name: 'balance',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
const username = 'username'; // replace with your Ethereum node RPC username
const password = 'password'; // replace with your Ethereum node RPC password
//const rpcEndpoint = 'https://nd-123-456-789.p2pify.com'; // replace with your Ethereum node RPC endpoint
//const bathEndpoint = `https://${username}:${password}@nd-123-456-789.p2pify.com`; // replace with your Ethereum node RPC endpoint
const rpcEndpoint = bathEndpoint = 'https://dai.poa.network'; // replace with your Ethereum node RPC endpoint
const walletAddress = '0x986a2fCa9eDa0e06fBf7839B89BfC006eE2a23Dd'; // replace with the address you want to query
module.exports = {
abi,
bathEndpoint,
password,
rpcEndpoint,
username,
walletAddress,
};