Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::Transfer.
Transfers tokens from one user account to another. The sender must be a regular user account, as opposed to a privileged account like a token manager or an account manager.
Additionally, the transaction sender must have the ROLE_PAYER enabled on
it, while the receiver must have the ROLE_RECEIVER enabled on it.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#amount
def amount() -> ::Google::Cloud::UniversalLedger::V1::CurrencyValue- (::Google::Cloud::UniversalLedger::V1::CurrencyValue) — Required. The amount to transfer. The amount must be positive.
#amount=
def amount=(value) -> ::Google::Cloud::UniversalLedger::V1::CurrencyValue- value (::Google::Cloud::UniversalLedger::V1::CurrencyValue) — Required. The amount to transfer. The amount must be positive.
- (::Google::Cloud::UniversalLedger::V1::CurrencyValue) — Required. The amount to transfer. The amount must be positive.
#beneficiary_id
def beneficiary_id() -> ::String- (::String) — Required. The ID of the account that receives the tokens.
#beneficiary_id=
def beneficiary_id=(value) -> ::String- value (::String) — Required. The ID of the account that receives the tokens.
- (::String) — Required. The ID of the account that receives the tokens.