Package org.stellar.sdk.xdr
Class PathPaymentStrictSendOp
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictSendOp
PathPaymentStrictSendOp's original definition in the XDR file is:
struct PathPaymentStrictSendOp
{
Asset sendAsset; // asset we pay with
int64 sendAmount; // amount of sendAsset to send (excluding fees)
MuxedAccount destination; // recipient of the payment
Asset destAsset; // what they end up with
int64 destMin; // the minimum amount of dest asset to
// be received
// The operation will fail if it can't be met
Asset path<5>; // additional hops it must go through to get there
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictSendOp(Asset sendAsset, Int64 sendAmount, MuxedAccount destination, Asset destAsset, Int64 destMin, Asset[] path) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PathPaymentStrictSendOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PathPaymentStrictSendOpfromXdrBase64(String xdr) static PathPaymentStrictSendOpfromXdrByteArray(byte[] xdr) Asset[]getPath()inthashCode()voidsetDestAsset(Asset destAsset) voidsetDestination(MuxedAccount destination) voidsetDestMin(Int64 destMin) voidvoidsetSendAmount(Int64 sendAmount) voidsetSendAsset(Asset sendAsset) toString()default Stringdefault byte[]
-
Constructor Details
-
PathPaymentStrictSendOp
public PathPaymentStrictSendOp() -
PathPaymentStrictSendOp
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSendAsset
-
getSendAmount
-
getDestination
-
getDestAsset
-
getDestMin
-
getPath
-
setSendAsset
-
setSendAmount
-
setDestination
-
setDestAsset
-
setDestMin
-
setPath
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-