A PowerShell Module / API to connect to the XRP Ledger via Websockets
Usage
-
Clone this repository
-
Extract it to the PowerShell Modules directory (below is the default):
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\
-
Import the Module
Import-Module XRPowershell
- Connect to a XRPL websocket
Connect-XRPL "wss://s1.ripple.com:443"
- Get info on an XRPL address
Get-AccountInfo "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE"
-
Make any response readable from console (but no longer a PowerShell object)
Add
-ToString
to any function. Eg:
Get-AccountInfo "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE" -ToString
- Query the XRP Ledger with any valid command JSON
$txJSON =
'{
"id": 1337,
"command": "account_lines",
"account": "rpbvDUFjb1RZYfMGoy8ki8itHNEXaeCALE",
"ledger": "current"
}'
Send-CustomTx $txJSON
- Disconnect from the XRPL
Disconnect-XRPL