Class TokenTransfer
-
- All Implemented Interfaces:
public final class TokenTransferInformation about a token transfer between accounts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTokenTransfer.BuilderA builder for TokenTransfer.
public final classTokenTransfer.StatusStatus of the token transfer.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the token transfer. final ChainchainId()CAIP-2 chain ID of the blockchain that the transfer is made on. final OffsetDateTimecreatedDt()Datetime at which the transfer was created. final Doublequantity()Quantity of the token being transferred. final StringrecipientAccountId()ID of the account to which the tokens are transferred. final StringsenderAccountId()ID of the account from which the tokens are transferred. final TokenTransfer.Statusstatus()Status of the token transfer. final StringtokenAddress()Address of the token being transferred. final OffsetDateTimeupdatedDt()Datetime at which the transfer was last updated. final Optional<String>transactionHash()Transaction hash of the transfer on the blockchain, if applicable. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Chain>_chainId()Returns the raw JSON value of chainId. final JsonField<OffsetDateTime>_createdDt()Returns the raw JSON value of createdDt. 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>_senderAccountId()Returns the raw JSON value of senderAccountId. final JsonField<TokenTransfer.Status>_status()Returns the raw JSON value of status. final JsonField<String>_tokenAddress()Returns the raw JSON value of tokenAddress. final JsonField<OffsetDateTime>_updatedDt()Returns the raw JSON value of updatedDt. final JsonField<String>_transactionHash()Returns the raw JSON value of transactionHash. final Map<String, JsonValue>_additionalProperties()final TokenTransfer.BuildertoBuilder()final TokenTransfervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TokenTransfer.Builderbuilder()Returns a mutable builder for constructing an instance of TokenTransfer. -
-
Method Detail
-
createdDt
final OffsetDateTime createdDt()
Datetime at which the transfer was created. ISO 8601 timestamp.
-
recipientAccountId
final String recipientAccountId()
ID of the account to which the tokens are transferred.
-
senderAccountId
final String senderAccountId()
ID of the account from which the tokens are transferred.
-
status
final TokenTransfer.Status status()
Status of the token transfer.
-
tokenAddress
final String tokenAddress()
Address of the token being transferred.
-
updatedDt
final OffsetDateTime updatedDt()
Datetime at which the transfer was last updated. ISO 8601 timestamp.
-
transactionHash
final Optional<String> transactionHash()
Transaction hash of the transfer on the blockchain, if applicable. This is only present if the transfer has been executed on-chain.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_chainId
final JsonField<Chain> _chainId()
Returns the raw JSON value of chainId.
Unlike chainId, this method doesn't throw if the JSON field has an unexpected type.
-
_createdDt
final JsonField<OffsetDateTime> _createdDt()
Returns the raw JSON value of createdDt.
Unlike createdDt, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_senderAccountId
final JsonField<String> _senderAccountId()
Returns the raw JSON value of senderAccountId.
Unlike senderAccountId, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<TokenTransfer.Status> _status()
Returns the raw JSON value of status.
Unlike status, 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.
-
_updatedDt
final JsonField<OffsetDateTime> _updatedDt()
Returns the raw JSON value of updatedDt.
Unlike updatedDt, this method doesn't throw if the JSON field has an unexpected type.
-
_transactionHash
final JsonField<String> _transactionHash()
Returns the raw JSON value of transactionHash.
Unlike transactionHash, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TokenTransfer.Builder toBuilder()
-
validate
final TokenTransfer validate()
-
builder
final static TokenTransfer.Builder builder()
Returns a mutable builder for constructing an instance of TokenTransfer.
The following fields are required:
.id() .chainId() .createdDt() .quantity() .recipientAccountId() .senderAccountId() .status() .tokenAddress() .updatedDt()
-
-
-
-