Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1008 Bytes

File metadata and controls

46 lines (38 loc) · 1008 Bytes

XRPowerShell

A PowerShell Module / API to connect to the XRP Ledger via Websockets

Usage

  1. Clone this repository

  2. Extract it to the PowerShell Modules directory (below is the default): C:\Windows\System32\WindowsPowerShell\v1.0\Modules\

  3. Import the Module

Import-Module XRPowershell
  1. Connect to a XRPL websocket
Connect-XRPL "wss://s1.ripple.com:443"
  1. Get info on an XRPL address
Get-AccountInfo "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE"
  1. Make any response readable from console (but no longer a PowerShell object)

    Add -ToString to any function. Eg:

Get-AccountInfo "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE" -ToString
  1. Query the XRP Ledger with any valid command JSON
$txJSON =
'{
    "id": 1337,
    "command": "account_lines",
    "account": "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE",
    "ledger": "current"
}'
Send-CustomTx $txJSON
  1. Disconnect from the XRPL
Disconnect-XRPL