Function pallet_starknet::pallet::dispatchables::deploy_account
source · pub fn deploy_account<T: Config>(transaction: DeployAccountTransaction)
Expand description
Since Starknet v0.10.1 the deploy_account transaction replaces the deploy transaction
for deploying account contracts. To use it, you should first pre-fund your
would-be account address so that you could pay the transaction fee (see here for more
details) . You can then send the deploy_account transaction. See https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#deploy_account_transaction
.
Arguments
origin
- The origin of the transaction.transaction
- The Starknet transaction.
Returns
DispatchResult
- The result of the transaction.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::deploy_account
.