Skip to main content
Package: com.coinbase.cdp.types

Method Details

getTransferId

Returns: Optional<String> - The ID of the transfer. Required when validateOnly is false.

getStatus

Returns: Optional<TransferStatus>

getSource

Returns: TransferSource

getTarget

Returns: TransferTarget

getSourceAmount

Returns: Optional<String> - The amount of the source asset that will be transferred out, as a decimal string in standard unit denomination.

getSourceAsset

Returns: Optional<Asset> - The asset symbol of the source amount.

getTargetAmount

Returns: Optional<String> - The amount of the target asset received, as a decimal string in standard unit denomination. May be omitted in the quoted state if the value cannot be guaranteed; see estimate.targetAmount for the expected value. Populated with the actual executed amount once the transfer completes.

getTargetAsset

Returns: Optional<Asset> - The asset symbol of the target amount.

getExchangeRate

Returns: Optional<TransferExchangeRate> - Exchange rate information for currency conversion. The rate indicates how much of the target asset is equivalent to one unit of the source asset. May be omitted in the quoted state if the rate cannot be guaranteed; see estimate.exchangeRate for the expected rate. Populated with the actual executed rate once the transfer completes.

getFees

Returns: Optional<TransferFees> - The fees associated with this transfer. Different transfer types have different fee structures. May be omitted in the quoted state if the fees cannot be guaranteed; see estimate.fees for the expected fees. Populated with the actual fees once the transfer completes.

getEstimate

Returns: Optional<TransferEstimate>

getCompletedAt

Returns: Optional<OffsetDateTime> - The date and time the transfer was completed.

getFailureReason

Returns: Optional<String> - The reason for failure, if the transfer failed. Only present when status is failed.

getExpiresAt

Returns: Optional<OffsetDateTime> - The date and time when this transfer will expire if not executed. Only present for quoted status. A new transfer must be created to obtain an updated quote after expiration. Required when validateOnly is false.

getExecutedAt

Returns: Optional<OffsetDateTime> - The date and time the transfer was executed and moved to processing. Only present when status has progressed beyond quoted.

getCreatedAt

Returns: Optional<OffsetDateTime> - The date and time the transfer was created. Required when validateOnly is false.

getUpdatedAt

Returns: Optional<OffsetDateTime> - The date and time the transfer was last updated. Required when validateOnly is false.

getMetadata

Returns: Optional<Metadata>

getDetails

Returns: Optional<TransferDetails>

equals

Overrides: [equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Parameters: other - Object Returns: boolean

getAdditionalProperties

Returns: Map<String,Object>

hashCode

Overrides: [hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Returns: int

toString

Overrides: [toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang") Returns: String

builder

Returns: Transfer.SourceStage