RPC Methods
Your BTC RPC endpoint supports standard Bitcoin Core JSON-RPC methods.
All examples below assume you are connected to the private VPN (WireGuard) and are calling the node over its private RPC IP.
VPN RPC URL (example): http://10.200.0.1:8332
Auth: Basic auth (RPC username + password)
Quick client examples (recommended)
PowerShell (WireGuard-safe)
Copy/paste this once, then call any method by name:
# ---- CUSTOMER: set your values ----
$RpcHost = "10.200.0.1"
$RpcPort = 8332
$RpcUser = "rpcclient1"
$RpcPass = "REPLACE_WITH_YOUR_PASSWORD"
# ----------------------------------
function Invoke-BtcRpc {
param(
[Parameter(Mandatory=$true)][string]$Method,
[Parameter(Mandatory=$false)][object[]]$Params = @(),
[string]$Id = "client"
)
$auth = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$RpcUser`:$RpcPass"))
$body = @{
jsonrpc = "1.0"
id = $Id
method = $Method
params = $Params
} | ConvertTo-Json -Depth 10
Invoke-RestMethod -Uri "http://$RpcHost`:$RpcPort" -Method Post `
-Headers @{ Authorization = "Basic $auth" } `
-ContentType "application/json" `
-Body $body
}
# Example:
Invoke-BtcRpc -Method "getblockchaininfo"