Class Wallet.CppProxy

  • All Implemented Interfaces:
    Wallet
    Enclosing interface:
    Wallet

    public static final class Wallet.CppProxy
    extends java.lang.Object
    implements Wallet
    • Nested Class Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void _djinni_private_destroy()  
      void composeEthTransaction​(java.lang.String fromAccountId, java.math.BigDecimal gasPrice, int gasLimit, java.lang.String destination, java.math.BigDecimal amount, java.lang.String data, java.lang.Integer nonce, boolean sendMax, ComposeTransactionCallback callback)
      Compose Ethereum transaction.
      void composeTransaction​(java.lang.String fromAccountId, java.lang.String changeAccountId, java.lang.String destination, java.math.BigDecimal amount, java.math.BigDecimal feeRate, boolean sendMax, ComposeTransactionCallback callback)
      Compose BTC or BSV transaction.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • _djinni_private_destroy

        public void _djinni_private_destroy()
      • composeTransaction

        public void composeTransaction​(java.lang.String fromAccountId,
                                       java.lang.String changeAccountId,
                                       java.lang.String destination,
                                       java.math.BigDecimal amount,
                                       java.math.BigDecimal feeRate,
                                       boolean sendMax,
                                       ComposeTransactionCallback callback)
        Description copied from interface: Wallet
        Compose BTC or BSV transaction. Refer to Send Transactions guide for usage details.

        On success ComposedTransaction is returned via callback.

        Specified by:
        composeTransaction in interface Wallet
        Parameters:
        fromAccountId - Account identifier
        changeAccountId - change Account identifier, which can be the same as fromAccountId
        destination - destination wallet address
        amount - amount in BTC or BSV
        feeRate - fee rate in satoshis/byte
        sendMax - send maximum possible funds to destination
        callback - an interface to receive the result or error
      • composeEthTransaction

        public void composeEthTransaction​(java.lang.String fromAccountId,
                                          java.math.BigDecimal gasPrice,
                                          int gasLimit,
                                          java.lang.String destination,
                                          java.math.BigDecimal amount,
                                          java.lang.String data,
                                          java.lang.Integer nonce,
                                          boolean sendMax,
                                          ComposeTransactionCallback callback)
        Description copied from interface: Wallet
        Compose Ethereum transaction. Refer to Send Transactions guide for usage details.

        On success ComposedTransaction is returned via callback.

        Specified by:
        composeEthTransaction in interface Wallet
        Parameters:
        fromAccountId - Account identifier
        gasPrice - gas price in gwei
        gasLimit - gas limit
        destination - destination wallet address
        amount - amount in ETH
        data - data in string format or null
        nonce - next transaction nonce or null
        sendMax - send maximum possible funds to destination
        callback - an interface to receive the result or error