The starknet_addInvokeTransaction command allows users to add a new deployment transaction to the StarkNet chain. This command is used to deploy new accounts (smart contracts) to the StarkNet network. Upon successful submission, the result of the transaction submission is returned.


  • class_hash: A FieldElement representing the hash of the desired account class.

  • constructor_calldata: A List<FieldElement> comprising the arguments for the account constructor.

  • contract_address_salt: A FieldElement that functions as a random salt determining the account address.

  • signature: A List<FieldElement> containing additional information provided by the sender, used for transaction validation.

  • max_fee: A FieldElement indicating the maximum fee the sender is prepared to pay for the transaction.

  • nonce: A FieldElement representing the transaction nonce.

  • version: A FieldElement indicating the transaction's version. The value is set to 1.


transaction_hash: The transaction hash of the newly added deployment transaction. This hash uniquely identifies the transaction on the StarkNet network.

Example Request and Result for starknet_addDeployAccountTransaction


curl<project-id> \
-H "Content-Type: application/json" \
-d '{
   "jsonrpc": "2.0",
   "method": "starknet_addDeployAccountTransaction",
   "params": {
      "class_hash": "0x23371b227eaecd8e8920cd429d2cd0f3fee6abaacca08d3ab82a7cdd",
      "constructor_calldata": [
      "contract_address_salt": "0x23371b227eaecd8e8920cd429d2cd0f3fee6abaacca08d3ab82a7cdd",
      "signature": [
      "max_fee": "0x4f388496839",
      "nonce": "0x7",
      "version": "0x0"
   "id": 1


    "jsonrpc": "2.0",
    "result": {
        "transaction_hash": "0x1ce0d76c0c085306fd32679b75f9541fab71851da8d3e3898a691b49ed8175c"
    "id": 1

Last updated