Skip to content

Commit

Permalink
Create contract-executor.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 8, 2024
1 parent 0a3d478 commit b1bb9cd
Showing 1 changed file with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// contract-executor.config.js

module.exports = {
// Provider URL
providerUrl: 'https://mainnet.infura.io/v3/YOUR_PROJECT_ID',

// Contract address and ABI
contractAddress: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
abi: [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],

// From address and private key
fromAddress: '0x1234567890abcdef1234567890abcdef',
privateKey: '0x1234567890abcdef1234567890abcdef1234567890abcdef',

// Gas and gas price
gas: 200000,
gasPrice: 20e9
};

0 comments on commit b1bb9cd

Please sign in to comment.