Class TokenTransferCreateParams
-
- All Implemented Interfaces:
-
com.dinari.api.core.Params
public final class TokenTransferCreateParams implements Params
Creates a
TokenTransferfrom thisAccount.A
TokenTransferrepresents a transfer of tokens through the Dinari platform from oneAccountto another. As such, onlyAccounts that are connected to Dinari-managedWallets can initiateTokenTransfers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTokenTransferCreateParams.BuilderA builder for TokenTransferCreateParams.
public final classTokenTransferCreateParams.BodyInput parameters for creating a token transfer from a managed account.
-
Method Summary
Modifier and Type Method Description final Optional<String>accountId()final Doublequantity()Quantity of the token to transfer. final StringrecipientAccountId()ID of the recipient account to which the tokens will be transferred. final StringtokenAddress()Address of the token to transfer. final JsonField<Double>_quantity()Returns the raw JSON value of quantity. final JsonField<String>_recipientAccountId()Returns the raw JSON value of recipientAccountId. final JsonField<String>_tokenAddress()Returns the raw JSON value of tokenAddress. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final TokenTransferCreateParams.BuildertoBuilder()final TokenTransferCreateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static TokenTransferCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of TokenTransferCreateParams. -
-
Method Detail
-
recipientAccountId
final String recipientAccountId()
ID of the recipient account to which the tokens will be transferred.
-
tokenAddress
final String tokenAddress()
Address of the token to transfer.
-
_quantity
final JsonField<Double> _quantity()
Returns the raw JSON value of quantity.
Unlike quantity, this method doesn't throw if the JSON field has an unexpected type.
-
_recipientAccountId
final JsonField<String> _recipientAccountId()
Returns the raw JSON value of recipientAccountId.
Unlike recipientAccountId, this method doesn't throw if the JSON field has an unexpected type.
-
_tokenAddress
final JsonField<String> _tokenAddress()
Returns the raw JSON value of tokenAddress.
Unlike tokenAddress, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final TokenTransferCreateParams.Builder toBuilder()
-
_body
final TokenTransferCreateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static TokenTransferCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of TokenTransferCreateParams.
The following fields are required:
.quantity() .recipientAccountId() .tokenAddress()
-
-
-
-