Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::CreateAccount.
Creates a new user account. The sender must be an account manager.
If the transaction is successful, the ID of the newly created account is returned as an event in the TransactionCertificate of the finalized transaction.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#account_comment
def account_comment() -> ::String- (::String) — Optional. Immutable. An opaque comment field that is not interpreted by the system but stored on the ledger in the account. Considered public information. Maximum length is 128 characters. May be left empty. Once created, the field is immutable.
#account_comment=
def account_comment=(value) -> ::String- value (::String) — Optional. Immutable. An opaque comment field that is not interpreted by the system but stored on the ledger in the account. Considered public information. Maximum length is 128 characters. May be left empty. Once created, the field is immutable.
- (::String) — Optional. Immutable. An opaque comment field that is not interpreted by the system but stored on the ledger in the account. Considered public information. Maximum length is 128 characters. May be left empty. Once created, the field is immutable.
#account_status
def account_status() -> ::Google::Cloud::UniversalLedger::V1::AccountStatus-
(::Google::Cloud::UniversalLedger::V1::AccountStatus) — Optional. The status of the account to be created. By default, the account
status of a newly created account will be
ACCOUNT_STATUS_ACTIVE.
#account_status=
def account_status=(value) -> ::Google::Cloud::UniversalLedger::V1::AccountStatus-
value (::Google::Cloud::UniversalLedger::V1::AccountStatus) — Optional. The status of the account to be created. By default, the account
status of a newly created account will be
ACCOUNT_STATUS_ACTIVE.
-
(::Google::Cloud::UniversalLedger::V1::AccountStatus) — Optional. The status of the account to be created. By default, the account
status of a newly created account will be
ACCOUNT_STATUS_ACTIVE.
#key_format
def key_format() -> ::Google::Cloud::UniversalLedger::V1::KeyFormat- (::Google::Cloud::UniversalLedger::V1::KeyFormat) — Optional. Immutable. The key format of the public key. If not specified, defaults to a binary serialized keyset in Tink wire format. Considered public information.
#key_format=
def key_format=(value) -> ::Google::Cloud::UniversalLedger::V1::KeyFormat- value (::Google::Cloud::UniversalLedger::V1::KeyFormat) — Optional. Immutable. The key format of the public key. If not specified, defaults to a binary serialized keyset in Tink wire format. Considered public information.
- (::Google::Cloud::UniversalLedger::V1::KeyFormat) — Optional. Immutable. The key format of the public key. If not specified, defaults to a binary serialized keyset in Tink wire format. Considered public information.
#public_key
def public_key() -> ::String-
(::String) — Required. The public key of the account owner. Note that this is not the
public key of the sender. This is the public key of the new account owner
and it will be stored on the ledger. It will be used to validate the
signature of the transactions emanating from the created account.
The format of the public key is defined by the
key_formatfield. Considered public information.
#public_key=
def public_key=(value) -> ::String-
value (::String) — Required. The public key of the account owner. Note that this is not the
public key of the sender. This is the public key of the new account owner
and it will be stored on the ledger. It will be used to validate the
signature of the transactions emanating from the created account.
The format of the public key is defined by the
key_formatfield. Considered public information.
-
(::String) — Required. The public key of the account owner. Note that this is not the
public key of the sender. This is the public key of the new account owner
and it will be stored on the ledger. It will be used to validate the
signature of the transactions emanating from the created account.
The format of the public key is defined by the
key_formatfield. Considered public information.
#roles
def roles() -> ::Array<::Google::Cloud::UniversalLedger::V1::Role>- (::Array<::Google::Cloud::UniversalLedger::V1::Role>) — Optional. The list of roles to grant to this account.
#roles=
def roles=(value) -> ::Array<::Google::Cloud::UniversalLedger::V1::Role>- value (::Array<::Google::Cloud::UniversalLedger::V1::Role>) — Optional. The list of roles to grant to this account.
- (::Array<::Google::Cloud::UniversalLedger::V1::Role>) — Optional. The list of roles to grant to this account.
#token_manager_id
def token_manager_id() -> ::String- (::String) — Optional. The ID of the token manager for this account. This field is optional and if not supplied, the default token manager associated to the account manager (that is, the sender of this transaction) will be used. The value is limited to 60 characters.
#token_manager_id=
def token_manager_id=(value) -> ::String- value (::String) — Optional. The ID of the token manager for this account. This field is optional and if not supplied, the default token manager associated to the account manager (that is, the sender of this transaction) will be used. The value is limited to 60 characters.
- (::String) — Optional. The ID of the token manager for this account. This field is optional and if not supplied, the default token manager associated to the account manager (that is, the sender of this transaction) will be used. The value is limited to 60 characters.