# Sending funds to z-addr in regtest mode

**URL:** <https://forum.zcashcommunity.com/t/sending-funds-to-z-addr-in-regtest-mode/32612>\
**Category:** zcashd client\
**Created:** [January 30, 2019, 8:41am UTC](https://forum.zcashcommunity.com/t/sending-funds-to-z-addr-in-regtest-mode/32612 "2019-01-30T08:41:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungl](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@hungl](https://forum.zcashcommunity.com/u/hungl)\
**Post date:** [January 30, 2019, 8:41am UTC](https://forum.zcashcommunity.com/t/sending-funds-to-z-addr-in-regtest-mode/32612/1 "2019-01-30T08:41:27Z")

</div>

Hi there.

I run two zcash nodes in regtest mode. Here are my configuration files.  
First one:  
server=1  
regtest=1  
rpcuser=user  
rpcpassword=password  
port=18233  
rpcport=18232  
rpcallowip=0.0.0.0/0  
addnode=127.0.0.1:18243

And second one:  
server=1  
regtest=1  
rpcuser=user  
rpcpassword=password  
port=18243  
rpcport=18242  
rpcallowip=0.0.0.0/0  
addnode=127.0.0.1:18233

After starting nodes I can send funds between t-addrs but not to z-addr. For example, when I call  
{  
“method”: “z\_sendmany”,  
“params”: [  
“tmELw6WVggwvQBndyULn7Hmrsjoq93ARwoV”,  
[{  
“address”: “zregtestsapling1fglqzdaksqq5cyw0xxkxuq5rdfckgs0x46595xtremczmlsyej2zn8ksmczdh79c69aruaz8wud”, “amount”: 1  
}]  
]  
}  
I get an error:  
{  
“result”: null,  
“error”: {  
“code”: -8,  
“message”: “Invalid parameter, Sapling has not activated”  
},  
“id”: null  
}

What does **“Invalid parameter, Sapling has not activated”** mean?

Also I tried to call \*\* z\_shieldcoinbase\*\* like was mentioned [here](https://forum.zcashcommunity.com/t/how-to-add-funds-to-a-z-address-in-regtest-mode/31546/5) but it responded with the same error (“Invalid parameter, Sapling has not activated”).

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![str4d](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/str4d/32/64_2.png) [@str4d](https://forum.zcashcommunity.com/u/str4d)\
**Post date:** [January 30, 2019, 1:26pm UTC](https://forum.zcashcommunity.com/t/sending-funds-to-z-addr-in-regtest-mode/32612/2 "2019-01-30T13:26:27Z")

</div>

`regtest` mode is used for the test suite, and as such it needs to support a variety of upgrades being active or not. By default, no upgrades are configured to be active. To configure Sapling as active, you need to use the following `zcashd` options (either on the CLI or in `zcash.conf`):

```auto
-nuparams=5ba81b19:1
-nuparams=76b809bb:1

```

The first option activates Overwinter at height 1, and the second option activates Sapling at height 1.

---

<div class="post-metadata">

**Author:** ![hungl](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@hungl](https://forum.zcashcommunity.com/u/hungl)\
**Post date:** [February 1, 2019, 4:59pm UTC](https://forum.zcashcommunity.com/t/sending-funds-to-z-addr-in-regtest-mode/32612/3 "2019-02-01T16:59:18Z")

</div>

Thank you! This really saved me!
