Jump to content

How to construct payment transactions with a specified path manually?


Graine

Recommended Posts

I have been trying to create a payment that takes a specified path, albeit unsuccessfully. Being a mentally technically-challenged person, all attempt at issuing RippledApi calls resulted either into 'ripplelib can't be found', 'syntax error' or 'unexpected object'. The only thing that actually executed error-free was the 'get account' test thing from RippleApi Beginner's guide. Regretfully, that does not aid my endeavour.

So, is there any template that I could copy-paste and it will work? I.e. so the only thing I would need to customize is Sender/recipient, currency/issuer and path?

Ripplerm's wallet has raw_txn feature, but it doesn't have an option to specify the path. 
 

Quote

 

Flags: 2147680256

TransactionType: "Payment"

Destination: "wallet2"

 Amount: Object

value: "0.01"

currency: "LTC"

issuer: "rNPRNzBB92BVpAhhZr4iXDTveCgV5Pofm9"

Account: "wallet1"

Sequence: 14

Fee: "12"

 SendMax: Object

value: "0.01"

currency: "LTC"

issuer: "gateway1"

 

Thanks!

 

 

Edited by Graine
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

9 minutes ago, tulo said:

You can use ripple-lib to do that. You can manually add a path field in the Payment transaction.

There are lots of topics on the official forum on that, with limitations and bugs.

I have read a topic where you and JoelKatz discuss the similar thing. 
The problem is, I keep having errors when trying to touch ripple-lib. Thought someone might have a template or two I could paste into websocket tool, or something. 

Link to comment
Share on other sites

28 minutes ago, Graine said:

I have read a topic where you and JoelKatz discuss the similar thing. 
The problem is, I keep having errors when trying to touch ripple-lib. Thought someone might have a template or two I could paste into websocket tool, or something. 

Which error? I think the first step is to be able to use ripple-lib. You should try the boilerplate in the documentation, then you try a standard payment, then you add a path.

I doubt you can do that with the websocket tool, but maybe you can.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...