Package org.stellar.sdk.xdr
Class SorobanTransactionData
java.lang.Object
org.stellar.sdk.xdr.SorobanTransactionData
- All Implemented Interfaces:
XdrElement
SorobanTransactionData's original definition in the XDR file is:
struct SorobanTransactionData
{
union switch (int v)
{
case 0:
void;
case 1:
SorobanResourcesExtV0 resourceExt;
} ext;
SorobanResources resources;
// Amount of the transaction `fee` allocated to the Soroban resource fees.
// The fraction of `resourceFee` corresponding to `resources` specified
// above is *not* refundable (i.e. fees for instructions, ledger I/O), as
// well as fees for the transaction size.
// The remaining part of the fee is refundable and the charged value is
// based on the actual consumption of refundable resources (events, ledger
// rent bumps).
// The `inclusionFee` used for prioritization of the transaction is defined
// as `tx.fee - resourceFee`.
int64 resourceFee;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSorobanTransactionDataExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionSorobanTransactionData(SorobanTransactionData.SorobanTransactionDataExt ext, SorobanResources resources, Int64 resourceFee) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanTransactionDatadecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SorobanTransactionDatafromXdrBase64(String xdr) static SorobanTransactionDatafromXdrByteArray(byte[] xdr) getExt()inthashCode()voidvoidsetResourceFee(Int64 resourceFee) voidsetResources(SorobanResources resources) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanTransactionData
public SorobanTransactionData() -
SorobanTransactionData
public SorobanTransactionData(SorobanTransactionData.SorobanTransactionDataExt ext, SorobanResources resources, Int64 resourceFee)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getExt
-
getResources
-
getResourceFee
-
setExt
-
setResources
-
setResourceFee
-
equals
-
hashCode
public int hashCode() -
toString
-