please tell me how to set extra default block parameter

kenmazsymakenmazsyma tokyoMember Posts: 13
Hi.‎
I'm trying to call a contract via JSON RPC.
A target contract is written in Solidity(following).

contract {
 uint8 v;
 function set( uint8 x) {‎
 v=x;
}
function get() returns(uint8 v){
 return v;
}

It succeeded which to call get function with following json parameters.

data:[ { data: "0x...(method id + parameters)"} ]

However, following is failure.

data:[ {data: "0x...(method id + parameters)"}, "latest" ]

I'd like to call a function with extra default block parameter.‎
How should I set extra default block parameter?‎

Comments

Sign In or Register to comment.