const axios = require('axios');
const data = JSON.stringify({
walletId: 'effae2b6-3ee3-48cb-9528-87c29152c89e',
to: '0xc2de797fab7d2d2b26246e93fcf2cd5873a90b10',
method: 'store',
params: [{ type: 'uint256', value: '35' }],
contractABI: '[{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"store","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retrieve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]'
});
const config = {
method: 'post',
url: 'http://localhost:8889/wallet/callContract',
headers: {
'Content-Type': 'application/json',
'ChainId': 'xxxx',
},
data: data,
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});