query("rig",array("method"=>"list","type"=>$type,"page"=>$page)); } function rigDetail($rigid) { return $this->query("rig",array("method"=>"detail","id"=>$rigid)); } function rentalDetail($rentid) { return $this->query("rental",array("method"=>"detail","id"=>$rentid)); } function myRigs() { return $this->query("account",array("method"=>"myrigs")); } function myRentals() { return $this->query("account",array("method"=>"myrentals")); } function balance() { return $this->query("account",array("method"=>"balance")); } function myPools() { return $this->query("account",array("method"=>"pools")); } function myProfiles() { return $this->query("account",array("method"=>"profiles")); } function rent($rigid,$profileid,$length) { return $this->query("rigs",array("method"=>"rent","id"=>$rigid,"length"=>$length,"profileid"=>$profileid)); } } $mrr = new mrr(); var_dump($mrr->query("rigs",array("method"=>"update","id"=>"17209","price"=>"0.00002233","pricetype"=>"gh"))); /*List all scrypt rigs */ //var_dump($mrr->rigList("x11")); /* Get my balance */ //var_dump($mrr->balance()); /* List My Rigs */ //var_dump($mrr->myRigs()); /* List My Rentals */ //var_dump($mrr->myRentals()); /* Get the detail of my rental */ //var_dump($mrr->rigDetail(8785)); /* List my Profiles */ //var_dump($mrr->myProfiles()); /* Rent rig 11487, using my profile ID 3483, and rent it for 3 hours */ $rigID = 11487; $profileID = 3483; $length = 3; //var_dump($mrr->rent($rigID,$profileID,$length));