<p>As long as your calling <strong><code>sendmany</code></strong> so you have to send bitcoin addresses/amount as object and don't forget to attach <code>fromaccount</code> parameter. </p>

<pre><code>sendmany account '{"address":amount,"address":amount}'
</code></pre>

<p>or you can leave account parameter empty, but you have to call it.</p>

<pre><code>sendmany "" '{"address":amount,"address":amount}'
</code></pre>

<p>also you can call <code>validateaddress</code> to check if address is valid or not.</p>

<pre><code>bitcoin-cli validateaddress 'yourbitcoinAddress'
</code></pre>

<p>Please read more <a href="https://bitcoin.org/en/developer-reference#sendmany" rel="nofollow noreferrer">here</a>.</p>

CC BY-SA 3.0
2017-11-25T12:12:29.003Z
Thank you very much for your help

comment on this portion of the code, so that the error would pop up, and the pool kept working

else if (result.error) {
        logger.error(logSystem, logComponent, 'Error trying to send payments with RPC sendmany '
            + JSON.stringify(result.error));
            callback(true);
        }
Johnny Sosa
CC BY-SA 3.0
2017-11-25T12:18:58.613Z
Now the pending payments of some miners do not make them, it is only making the payments of the new transactions. Is there any way to force these payments?
Johnny Sosa
CC BY-SA 3.0
2017-11-25T12:21:00.457Z
... sorry. the edited program was: paymentProcessor.js
Johnny Sosa
CC BY-SA 3.0
2017-11-21T04:30:23.873Z
2017-11-21T04:30:23.873Z
Tailer
<p>someone could help me with this error:</p>

<p>[Payments] [bitcoin] Error trying to send payments with RPC sendmany {"code":-5,"message":"Invalid BTC address: 9aK3cr3"}</p>

<p>Since I have this error the pool has not paid the miners...</p>

<p>Thank you so much</p>

CC BY-SA 3.0
2017-11-21T00:29:42.867Z
9aK3cr3 is not a valid Bitcoin address. What do you expect?
Pieter Wuille
CC BY-SA 3.0
2017-11-21T00:36:12.110Z
Thanks for answering. But how do I remove the record with the invalid wallet address (9aK3cr3); Therefore, while this error originates, the other payments are not executed
Johnny Sosa
CC BY-SA 3.0
2017-11-21T00:44:27.840Z
You'll need to explain what your code is doing, what packages you're using, what you expect to happen , ...
Pieter Wuille
CC BY-SA 3.0
2017-11-21T01:17:42.120Z
The application that I am using:

- nomp (pool mining)
- redis NoSQL
- Node.js v0.10.25
- npm 1.3.10
Johnny Sosa
CC BY-SA 3.0
2017-11-21T01:21:08.243Z
Please edit your question to include that information, as well as any excerpts from your code that may be relevant.
Pieter Wuille
<bitcoin-core><rpc-error-5>
Payments bitcoin Error trying to send payments with RPC sendmany {"code":-5,"message":"Invalid BTC address: 9aK3cr3"}
Johnny Sosa
# Payments bitcoin Error trying to send payments with RPC sendmany {"code":-5,"message":"Invalid BTC address: 9aK3cr3"}

(Asked by: username_0 on 2017-11-21)

someone could help me with this error:

[Payments] [bitcoin] Error trying to send payments with RPC sendmany {"code":-5,"message":"Invalid BTC address: 9aK3cr3"}

Since I have this error the pool has not paid the miners...

Thank you so much

**Tags:** bitcoin-core, rpc-error-5

> **Comments:**
> **username_1**: 9aK3cr3 is not a valid Bitcoin address. What do you expect?  
> **username_0**: Thanks for answering. But how do I remove the record with the invalid wallet address (9aK3cr3); Therefore, while this error originates, the other payments are not executed  
> **username_1**: You'll need to explain what your code is doing, what packages you're using, what you expect to happen , ...  
> **username_0**: The application that I am using:  - nomp (pool mining) - redis NoSQL - Node.js v0.10.25 - npm 1.3.10  
> **username_1**: Please edit your question to include that information, as well as any excerpts from your code that may be relevant.  

---

## 1 answers

### Answer by username_2 on 2017-11-21. Score: 1

As long as your calling sendmany so you have to send bitcoin addresses/amount as object and don't forget to attach fromaccount parameter. 
sendmany account '{"address":amount,"address":amount}'

or you can leave account parameter empty, but you have to call it.
sendmany "" '{"address":amount,"address":amount}'

also you can call validateaddress to check if address is valid or not.
bitcoin-cli validateaddress 'yourbitcoinAddress'

Please read more here.

> **Comments:**
> **username_0**: Thank you very much for your help  comment on this portion of the code, so that the error would pop up, and the pool kept working  else if (result.error) {         logger.error(logSystem, logComponent, 'Error trying to send payments with RPC sendmany '             + JSON.stringify(result.error));             callback(true);         }  
> **username_0**: Now the pending payments of some miners do not make them, it is only making the payments of the new transactions. Is there any way to force these payments?  
> **username_0**: ... sorry. the edited program was: paymentProcessor.js  

---

