-
Notifications
You must be signed in to change notification settings - Fork 66
ilp-cli testnet setup command error #725
Description
Deprecated Xpring API had an endpoint https://xpring.io/api/accounts/<assetCode> to create accounts on Xpring's side. ilp-cli testnet setup command was using this endpoint to create an account and peer with it to connect the testnet easily.
But since Xpring rebranded as RippleX, API endpoints and responses changed with it. For now, I find out three things that need to change, in order to ilp-cli testnet setup command work.
-
API endpoint, which changed from
https://xpring.io/api/accounts/<assetCode>tohttps://ripplex.io/portal/ilp/hermes/accounts/. Also, you should send aPOSTrequest instead of aGETrequest. -
The method to change the account asset. You should send a POST request to
https://ripplex.io/portal/ilp/hermes/accounts/with a JSON payload, an object namedassetCodein it to use an asset other than XRP. You can see the old method here: https://github.com/omrtozd/interledger-rs/blob/master/docs/manual-config.md#get-your-own-credentials -
The
XpringResponsestruct, due to the change in the response format.
-
XpringResponse Struct: https://github.com/omrtozd/interledger-rs/blob/0fcaf5d0a9b34d52bde08250a5f52f5398f6c7ab/crates/ilp-cli/src/interpreter.rs#L394-L403
-
Example response:
"accountId": "user_w0vzjgqc",
"accountRelationship": "CHILD",
"assetCode": "XRP",
"assetScale": 9,
"maximumPacketAmount": null,
"linkType": {},
"connectionInitiator": true,
"isInternal": false,
"sendRoutes": true,
"receiveRoutes": false,
"balanceSettings": {
"minBalance": null,
"settleThreshold": null,
"settleTo": 0
},
"rateLimitSettings": {
"maxPacketsPerSecond": null
},
"settlementEngineDetails": null,
"customSettings": {
"ilpOverHttp.outgoing.url": "https://rxprod.wc.wallet.ripplex.io./ilp",
"ilpOverHttp.incoming.auth_type": "SIMPLE",
"ilpOverHttp.incoming.simple.auth_token": "ygV47wq8mvI0b",
"ilpOverHttp.outgoing.simple.auth_token": "enc:gcpkms:connector:secret0:1:gs:CiQAxw4QhykCtBPYDxd7n91yo3FGmiIGbDQE8bN1c6Ft_4tYvRUSWACjdIaO5ZBq-W9sN7OiSr3o9Hb8uQBv68QTmd61EMCXMHuEa6uxrJZNM2ZHwkvhMEPgBfTH13EGUGkeSQfLMVlp9ZXyluiP-m0t1OJbDfUAE4qv0LBIhRY=",
"ilpOverHttp.outgoing.auth_type": "SIMPLE"
},
"parentAccount": false,
"childAccount": true,
"peerAccount": false,
"peerOrParentAccount": false,
"paymentPointer": "$rxprod.wc.wallet.ripplex.io./user_w0vzjgqc"