Package org.stellar.sdk.xdr
Class SorobanTransactionData
java.lang.Object
org.stellar.sdk.xdr.SorobanTransactionData
SorobanTransactionData's original definition in the XDR file is:
struct SorobanTransactionData
{
ExtensionPoint 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 class -
Constructor Summary
ConstructorsConstructorDescriptionSorobanTransactionData(ExtensionPoint 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()voidsetExt(ExtensionPoint ext) voidsetResourceFee(Int64 resourceFee) voidsetResources(SorobanResources resources) toString()default Stringdefault byte[]
-
Constructor Details
-
SorobanTransactionData
public SorobanTransactionData() -
SorobanTransactionData
-
-
Method Details
-
encode
- 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
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-