setup()
setup(string $endpoint)
Set endpoint URI
Parameters
string | $endpoint |
Ripple Rest Client for PHP.
getTransaction(string $hash) : array
Retrieve the details of a transaction in the standard Ripple JSON format.
string | $hash | transaction hash |
if RippleRest server returns an error
if protocol is wrong or network is down
See the Ripple Wiki page on Transaction Formats for more information.
isServerConnected() : boolean
A simple endpoint that can be used to check if ripple-rest is connected to a rippled and is ready to serve. If used before querying the other endpoints this can be used to centralize the logic to handle if rippled is disconnected from the Ripple Network and unable to process transactions.
if RippleRest server returns an error
if protocol is wrong or network is down
true if ripple-rest
is ready to serve
getServerInfo() : array
Retrieve information about the ripple-rest and connected rippled's current status.
if RippleRest server returns an error
if protocol is wrong or network is down
https://github.com/ripple/ripple-rest/blob/develop/docs/api-reference.md#get-server-info