Bitcoin Forum
August 28, 2024, 05:53:19 AM *
News: All versions of Windows are affected by a critical security bug; make sure you update.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help regarding RPC  (Read 81 times)
TonyJames11 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 09, 2023, 10:56:27 PM
 #1

Once scammed, now learning core node. I am using Bitcoin rpc calls. I generated an btc address, and accepted many times btc on that. So, I can easily track how much received on the address. Also this address is provided to one user on the code , I am working on. Now that guy wants to withdraw the btc from same address. How can I do that ? Please help
BitMaxz
Legendary
*
Offline Offline

Activity: 3360
Merit: 3094


BTC price road to $80k


View Profile WWW
October 09, 2023, 11:29:03 PM
 #2

What exactly do you want to achieve?

Instead of using RPC calls why not use it as a normal wallet? Bitcoin core is easy to use in the GUI you can just click the Bitcoin core shortcut and manage your wallet there.

Do you remotely control someone's wallet through RPC calls?

Can you add more details about what do you want to do through RPC calls?

Here's the RPC calls below for sending BTC you can place the same address under bitcoin_address from the command below.
Code:
bitcoin-cli sendtoaddress <bitcoin_address> <amount>
More samples here
- https://developer.bitcoin.org/reference/rpc/sendtoaddress.html

NotATether
Legendary
*
Offline Offline

Activity: 1708
Merit: 7185


In memory of o_e_l_e_o


View Profile WWW
October 10, 2023, 09:19:48 AM
 #3

Here's the RPC calls below for sending BTC you can place the same address under bitcoin_address from the command below.
Code:
bitcoin-cli sendtoaddress <bitcoin_address> <amount>

This is all you need to do if you don't care about exactly what kind of transaction is made.

Although if you use the -named command-line switch then you can also specify the transaction fee much more easily.

Example:

Code:
bitcoin-cli -named sendtoaddress address=<address> amount=<amount> fee_rate=<in sats/vbyte>

Note that both of these commands require that you unlock the wallet using the walletpassphrase command if it is password-protected. (And it should be!)

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!