<p><code>untrusted_pending</code> means <code>untrusted pending balance (outputs created by others that are in the mempool)</code> according to the bitcoin core source.</p>
<p>If you create a new block and it contains above payment transaction, it will show in <code>trusted</code>.</p>

CC BY-SA 4.0
2021-11-04T15:10:57.633Z
You're right! I added a block and it worked. I noticed there are two options to generate blocks: `generatetoaddress` and `generateblocks`, what's the difference?
LesserFlow
CC BY-SA 4.0
2021-11-05T05:19:11.020Z
The `generatetoaddress` automatically picks up transactions from the set of transactions in the mempool and creates a block. 
`generateblock` RPC, on the other hand, is an RPC added in 0.21.0. It takes an argument to specify the set of transactions (via txid or rawtx) to be included in the generated block. This is useful to include another Tx in the block that conflicts with the Tx in the mempool, or to create a block where a particular Tx is not mined.
Shigeyuki Azuchi
CC BY-SA 4.0
2021-11-05T07:57:44.823Z
Thank you! You made it clear
LesserFlow
CC BY-SA 4.0
2021-11-04T12:56:52.060Z
2021-11-04T12:56:52.060Z
Shigeyuki Azuchi
<p>I sent some BTC via the regtest network from one wallet to another, and I don't see it using <code>getbalance</code>, but I do see it if I use the command <code>getbalances</code> as <code>untrusted_pending</code>:</p>
<pre><code>{
  &quot;mine&quot;: {
    &quot;trusted&quot;: 0.00000000,
    &quot;untrusted_pending&quot;: 2.00000000,
    &quot;immature&quot;: 0.00000000
  }
}
</code></pre>
<p>What does it mean? And how can I accept it? Will it also happen in the mainnet?</p>

<bitcoin-core><json-rpc>
How to accept the payment with regtest?
LesserFlow
# How to accept the payment with regtest?

(Asked by: username_0 on 2021-11-04)

I sent some BTC via the regtest network from one wallet to another, and I don't see it using `getbalance`, but I do see it if I use the command `getbalances` as `untrusted_pending`:

```
{
  "mine": {
    "trusted": 0.00000000,
    "untrusted_pending": 2.00000000,
    "immature": 0.00000000
  }
}

```

What does it mean? And how can I accept it? Will it also happen in the mainnet?

**Tags:** bitcoin-core, json-rpc


---

## 1 answers

### Answer by username_1 on 2021-11-04. Score: 0 | Accepted answer

`untrusted_pending` means `untrusted pending balance (outputs created by others that are in the mempool)` according to the bitcoin core source.

If you create a new block and it contains above payment transaction, it will show in `trusted`.

> **Comments:**
> **username_0**: You're right! I added a block and it worked. I noticed there are two options to generate blocks: `generatetoaddress` and `generateblocks`, what's the difference?  
> **username_1**: The `generatetoaddress` automatically picks up transactions from the set of transactions in the mempool and creates a block.  `generateblock` RPC, on the other hand, is an RPC added in 0.21.0. It takes an argument to specify the set of transactions (via txid or rawtx) to be included in the generated block. This is useful to include another Tx in the block that conflicts with the Tx in the mempool, or to create a block where a particular Tx is not mined.  
> **username_0**: Thank you! You made it clear  

---

