|
3 | 3 | import com.bitso.bitgo.v2.entity.SendCoinsResponse;
|
4 | 4 | import com.bitso.bitgo.v2.entity.Wallet;
|
5 | 5 | import com.bitso.bitgo.v2.entity.WalletTransferResponse;
|
| 6 | +import org.json.JSONObject; |
6 | 7 |
|
7 | 8 | import java.io.IOException;
|
8 | 9 | import java.math.BigDecimal;
|
@@ -39,26 +40,22 @@ Optional<String> login(String email, String password, String otp, boolean extens
|
39 | 40 |
|
40 | 41 | /**
|
41 | 42 | * Invokes the sendmany method see https://www.bitgo.com/api/v2/?shell#send-transaction-to-many
|
42 |
| - * |
43 |
| - * @param coin tbtc for test bitcoin, see full list at https://www.bitgo.com/api/v2/#coin-digital-currency-support |
44 |
| - * @param walletId The ID of the source wallet. |
45 |
| - * @param walletPass The wallet passphrase. |
46 |
| - * @param recipients A map with the recipients' addresses as keys and the corresponding |
| 43 | + * Required parameters are: |
| 44 | + * coin tbtc for test bitcoin, see full list at https://www.bitgo.com/api/v2/#coin-digital-currency-support |
| 45 | + * walletId The ID of the source wallet. |
| 46 | + * walletPass The wallet passphrase. |
| 47 | + * recipients A map with the recipients' addresses as keys and the corresponding |
47 | 48 | * amounts as values. Amounts are in satoshis
|
48 |
| - * @param sequenceId A unique identifier for this transaction (optional). |
49 |
| - * @param message Notes about the transaction (optional). |
50 |
| - * @param fee Fee (in satoshis), leave null for autodetect. Do not specify unless you are sure it is sufficient. |
51 |
| - * @param feeTxConfirmTarget Calculate fees per kilobyte, targeting transaction confirmation in this number of blocks. Default: 2, Minimum: 2, Maximum: 20 |
52 |
| - * @param minConfirms only choose unspent inputs with a certain number of confirmations. We recommend setting this to 1 and using enforceMinConfirmsForChange |
53 |
| - * @param enforceMinConfirmsForChange Defaults to false. When constructing a transaction, minConfirms will only be enforced for unspents not originating from the wallet |
| 49 | + * sequenceId A unique identifier for this transaction (optional). |
| 50 | + * Optional parameters are: |
| 51 | + * message Notes about the transaction (optional). |
| 52 | + * fee Fee (in satoshis), leave null for autodetect. Do not specify unless you are sure it is sufficient. |
| 53 | + * feeTxConfirmTarget Calculate fees per kilobyte, targeting transaction confirmation in this number of blocks. Default: 2, Minimum: 2, Maximum: 20 |
| 54 | + * minConfirms only choose unspent inputs with a certain number of confirmations. We recommend setting this to 1 and using enforceMinConfirmsForChange |
| 55 | + * enforceMinConfirmsForChange Defaults to false. When constructing a transaction, minConfirms will only be enforced for unspents not originating from the wallet |
54 | 56 | * @return A SendCoinsResponse, or empty if there was a problem (although more likely in case of a problem it will throw).
|
55 | 57 | */
|
56 |
| - Optional<SendCoinsResponse> sendMany(String coin, String walletId, String walletPass, |
57 |
| - Map<String, BigDecimal> recipients, |
58 |
| - String sequenceId, String message, |
59 |
| - BigDecimal fee, BigDecimal feeTxConfirmTarget, |
60 |
| - int minConfirms, boolean enforceMinConfirmsForChange) |
61 |
| - throws IOException; |
| 58 | + Optional<SendCoinsResponse> sendMany(JSONObject parameters) throws IOException; |
62 | 59 |
|
63 | 60 | Optional<Map<String, Object>> getCurrentUserProfile() throws IOException;
|
64 | 61 |
|
|
0 commit comments