<p>After investigating, it turns out that the problem lies with the dimecoin wallets in built max money variable, which is capped at 10 million. as you may know, this functionality only affects the maximum size of a transaction, not the actual money supply.</p>

CC BY-SA 3.0
2014-01-22T18:05:15.853Z
2014-01-22T18:05:15.853Z
r3wt
<p>I run a small exchange, and we are having a  problem with the DIMECOIN wallet. when sending amounts over 1 million coins. we get the following message when error reporting turned on. I can't for the life of me determine what the error is.</p>

<pre><code>Fatal error: Uncaught exception 'Exception' with message 'Request error: Array' 
stack trace: #0 ../class.wallet.php(36): jsonRPCClient-     &gt;__call('sendtoaddress', Array)
#1 ../class.wallet.php(36): jsonRPCClient-&gt;sendtoaddress('7EFMZkPb6sHhKgk...', 69986000) #2 
../withdrawalqueue.php(128): Wallet-&gt;Withdraw('7EFMZkPb6sHhKgk...', '69986000', '1', 'DIME') #3 ../index.php(334): include('..') #4 {main} thrown in ../jsonRPCClient.php on line 
</code></pre>

<p>Here is my code:</p>

<pre><code>if ($total &gt; 1000000) {
        return $this-&gt;Client-&gt;sendtoaddress($address, (double)round($total, 2));
}
elseif($total &gt; 10000000) {
        $amt2s = $total * .1;
        $i = 0;
        do{
            return $this-&gt;Client-&gt;sendtoaddress($address, round($amt2s));
            $i++
        }
        while($i &lt; 10);

}else{
        return $this-&gt;Client-&gt;sendtoaddress($address, (double)sprintf("%.8f", $total));
    }
</code></pre>

CC BY-SA 3.0
2014-03-21T14:49:52.710Z
help! i'm having the problem again. i'll update the question now.
r3wt
<json-rpc><error><php>
JSON RPC: Fatal error: Uncaught exception 'Exception' with message 'Request error: Array'
r3wt
# JSON RPC: Fatal error: Uncaught exception 'Exception' with message 'Request error: Array'

(Asked by: username_0 on 2014-01-20)

I run a small exchange, and we are having a  problem with the DIMECOIN wallet. when sending amounts over 1 million coins. we get the following message when error reporting turned on. I can't for the life of me determine what the error is.
Fatal error: Uncaught exception 'Exception' with message 'Request error: Array' 
stack trace: #0 ../class.wallet.php(36): jsonRPCClient-     >__call('sendtoaddress', Array)
#1 ../class.wallet.php(36): jsonRPCClient->sendtoaddress('7EFMZkPb6sHhKgk...', 69986000) #2 
../withdrawalqueue.php(128): Wallet->Withdraw('7EFMZkPb6sHhKgk...', '69986000', '1', 'DIME') #3 ../index.php(334): include('..') #4 {main} thrown in ../jsonRPCClient.php on line 

Here is my code:
if ($total > 1000000) {
        return $this->Client->sendtoaddress($address, (double)round($total, 2));
}
elseif($total > 10000000) {
        $amt2s = $total * .1;
        $i = 0;
        do{
            return $this->Client->sendtoaddress($address, round($amt2s));
            $i++
        }
        while($i < 10);

}else{
        return $this->Client->sendtoaddress($address, (double)sprintf("%.8f", $total));
    }

**Tags:** json-rpc, error, php

> **Comments:**
> **username_0**: help! i'm having the problem again. i'll update the question now.  

---

## 1 answers

### Answer by username_0 on 2014-01-22. Score: 1 | Accepted answer

After investigating, it turns out that the problem lies with the dimecoin wallets in built max money variable, which is capped at 10 million. as you may know, this functionality only affects the maximum size of a transaction, not the actual money supply.


---

