Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
Calling a function from a smart contract

I'm making a node app that writes contracts with the Arbitrum api, I have successfully accessed the api, I'm new to node and basically I need to access the Arbitrum website with code and write some contracts, if there's anything unclear ask me to edit the post. my current code:

var Web3 = require('web3');
var web3 = new Web3(new Web3.providers.HttpProvider());
var version = web3.version.api;
var getJSON = require('get-json');

getJSON(
  'https://api.arbiscan.io/api?module=contract&action=getabi&address=0x0000000000000000000000000000000000001004&apikey=YourApiKeyToken',
  function (error, data) {
    var contractABI = '';
    contractABI = JSON.parse(data);
    if (contractABI != '') {
      var MyContract = web3.eth.contract(contractABI);
      var myContractInstance = MyContract.at(
        '0x604cd9df9e73a792feef9877aa53fc25d1b9baa5'
      );
      var result = myContractInstance.memberId(
        '0xfe8ad7dd2f564a877cc23feea6c0a9cc2e783715'
      );
      console.log('result1 : ' + result);
      var result = myContractInstance.members(1);
      console.log('result2 : ' + result);
    } else {
      console.log('Error');
    }
  }
);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!