build

Builds the final SorobanTransactionData.

Returns a deep copy of the constructed data to ensure immutability. The builder can continue to be used after calling build().

Example

val data1 = builder.setResourceFee(1000).build()
val data2 = builder.setResourceFee(2000).build()
// data1 still has fee = 1000, data2 has fee = 2000

Return

A copy of the SorobanTransactionData