Skip to content

Could we add an easier way to call a function? #41

Open
@treeder

Description

@treeder

Rather than having to generate the hash for the data field on the client side, allow human readable input, like:

"call": {
  "function": "my_function",
  "args": [ "yo", 123 ]
}

Then rpc-proxy will convert that to the hash.

Or even better, something like this:

GET /contract/ADDRESS/FUNCTION?arg0=string:yo&arg1=int:123

Rationale

Say I have a simple app/webpage that wants to get data from a contract and display it, and I don't want to load in the full web3.js and create contract code just to get some data. I could just do a simple jquery.getJSON instead.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions