ensure_blockchain_account

Returns the blockchain account with the given ID, creating it if needed.

Can only be called from an operation.

Throws when an account with given ID exists, but the type is not ACCOUNT_TYPE_BLOCKCHAIN.

Parameters

blockchain_rid

the ID of the blockchain whose account is to be returned