Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.38 KB

TransactionRequestFee.md

File metadata and controls

39 lines (29 loc) · 1.38 KB

TransactionRequestFee

For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated.

oneOf schemas

Example

// Import classes:
import com.fireblocks.sdk.model.TransactionRequestFee;
import com.fireblocks.sdk.model.BigDecimal;
import com.fireblocks.sdk.model.String;

public class Example {
    public static void main(String[] args) {
        TransactionRequestFee exampleTransactionRequestFee = new TransactionRequestFee();

        // create a new BigDecimal
        BigDecimal exampleBigDecimal = new BigDecimal();
        // set TransactionRequestFee to BigDecimal
        exampleTransactionRequestFee.setActualInstance(exampleBigDecimal);
        // to get back the BigDecimal set earlier
        BigDecimal testBigDecimal = (BigDecimal) exampleTransactionRequestFee.getActualInstance();

        // create a new String
        String exampleString = new String();
        // set TransactionRequestFee to String
        exampleTransactionRequestFee.setActualInstance(exampleString);
        // to get back the String set earlier
        String testString = (String) exampleTransactionRequestFee.getActualInstance();
    }
}