-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconstant.js
40 lines (37 loc) · 1.07 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
39
40
// Get the following from your Chainstack console
// Check https://docs.chainstack.com/platform/view-node-access-and-credentials#public-chain-nodes
const username = 'username' // replace with your Ethereum node RPC username
const password = 'password' // replace with your Ethereum node RPC password
const rpcEndpoint = 'https://your-chainstack-password-protected-endpoint.com' // replace with your Ethereum node RPC endpoint
const bathEndpoint = `https://${username}:${password}@your-chainstack-password-protected-endpoint.com` // replace with your Ethereum node RPC endpoint
// replace with the address you want to query
const walletAddress = '0x1234512345123451234512345'
const abi = [
{
constant: true,
inputs: [
{
name: '_owner',
type: 'address',
},
],
name: 'balanceOf',
outputs: [
{
name: 'balance',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
]
module.exports = {
abi,
bathEndpoint,
password,
rpcEndpoint,
username,
walletAddress,
}