Skip to content

Instantly share code, notes, and snippets.

@XertroV
Created June 27, 2018 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XertroV/6f267f3000fdb32d056011bf4b18443c to your computer and use it in GitHub Desktop.
Save XertroV/6f267f3000fdb32d056011bf4b18443c to your computer and use it in GitHub Desktop.
> var c = eth.contract([{
"constant": true,
"inputs": [],
"name": "getCount",
"outputs": [
{
"name": "count",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}]).at("0x9FF3F97d7ccD0Cb034eF6c7721088a6B820bDAD8")
undefined
> c
{
abi: [{
constant: true,
inputs: [],
name: "getCount",
outputs: [{...}],
payable: false,
stateMutability: "view",
type: "function"
}],
address: "0x9FF3F97d7ccD0Cb034eF6c7721088a6B820bDAD8",
transactionHash: null,
allEvents: function(),
getCount: function()
}
> c.getCount()
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment