denpamusic / php-bitcoinrpc

Fully unit-tested Bitcoin JSON-RPC client based on GuzzleHttp.
MIT License
282 stars 100 forks source link

setaccount can only be used with own address #61

Open opetoks opened 2 years ago

opetoks commented 2 years ago

I am experimenting a coin and get to stage of sending from individual to another. I found out using "sentfrom" require to specify the account which i did not specify initially while generating the address, so to rectify this i want the system to automatically fix the account users to their addresses using "setaccount" $bimcoind->setaccount(strval($addr),strval($id)); the error report says Denpa\Bitcoin\Exceptions\BadRemoteCallException: setaccount can only be used with own address How do can i rectify or go about setting the account user to individual addresses. I need help.