Skip to content

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

License

Notifications You must be signed in to change notification settings

retryW/XRPowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published