Skip to main content

starknet_addDeployAccountTransaction RPC Method

Submit a new deploy account transaction.

Updated on
Mar 18, 2024

Parameters

deploy_account_transaction
object
REQUIRED

The deploy account transaction. Starknet JSON-RPC 0.9 only accepts v3 transactions, which contain the following fields:

type
string
REQUIRED

The type of declare. It can take only one value - 'DEPLOY_ACCOUNT'

version
string
REQUIRED

The version of the transaction scheme

signature
string
REQUIRED

The signature associated with the transaction

nonce
string
REQUIRED

The nonce value

contract_address_salt
string
REQUIRED

The salt for the address of the deployed contract

constructor_calldata
array
REQUIRED

The parameters passed to the constructor

class_hash
string
REQUIRED

The hash of the deployed contract's class

resource_bounds
object
REQUIRED

The resource bounds for the transaction execution

l1_gas
object
REQUIRED

The max amount and max price per unit of L1 gas used in this tx

max_amount
string
REQUIRED

The max amount of the resource that can be used in the tx

max_price_per_unit
string
REQUIRED

The max price per unit of this resource for this tx

l1_data_gas
object
REQUIRED

The max amount and max price per unit of L1 data gas used in this tx

max_amount
string
REQUIRED

The max amount of the resource that can be used in the tx

max_price_per_unit
string
REQUIRED

The max price per unit of this resource for this tx

l2_gas
object
REQUIRED

The max amount and max price per unit of L2 gas used in this tx

max_amount
string
REQUIRED

The max amount of the resource that can be used in the tx

max_price_per_unit
string
REQUIRED

The max price per unit of this resource for this tx

tip
string
REQUIRED

The tip for the transaction

paymaster_data
array
REQUIRED

The data needed to allow the paymaster to pay for the transaction in native tokens

nonce_data_availability_mode
string
REQUIRED

The storage domain of the account's nonce (an account has a nonce per DA mode). It can be one of 'L1' or 'L2'

fee_data_availability_mode
string
REQUIRED

The storage domain of the account's balance from which fee will be charged. It can be one of 'L1' or 'L2'

Returns

result
object

The result of the transaction submission

transaction_hash
string

The hash of the deploy transaction

class_hash
string

The address of the new contract

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free