Skip to main content

starknet_addDeployAccountTransaction RPC Method

Loading...

Updated on
Mar 18, 2024

starknet_addDeployAccountTransaction RPC Method

Parameters

deploy_account_transaction
object
REQUIRED
Loading...
DEPLOY_ACCOUNT_TXN_V1
object
Loading...
type
string
REQUIRED
Loading...
max_fee
string
REQUIRED
Loading...
version
string
REQUIRED
Loading...
signature
string
REQUIRED
Loading...
nonce
string
REQUIRED
Loading...
contract_address_salt
string
REQUIRED
Loading...
constructor_calldata
array
REQUIRED
Loading...
class_hash
string
REQUIRED
Loading...
DEPLOY_ACCOUNT_TXN_V3
object
Loading...
type
string
REQUIRED
Loading...
version
string
REQUIRED
Loading...
signature
string
REQUIRED
Loading...
nonce
string
REQUIRED
Loading...
contract_address_salt
string
REQUIRED
Loading...
constructor_calldata
array
REQUIRED
Loading...
class_hash
string
REQUIRED
Loading...
resource_bounds
object
REQUIRED
Loading...
l1_gas
string
REQUIRED
Loading...
l2_gas
string
REQUIRED
Loading...
tip
string
REQUIRED
Loading...
paymaster_data
array
REQUIRED
Loading...
nonce_data_availability_mode
string
REQUIRED
Loading...
fee_data_availability_mode
string
REQUIRED
Loading...

Returns

result
object
Loading...
transaction_hash
string
Loading...
class_hash
string
Loading...
Request
1
# Note: You can specify Starknet version in the URL path
2
# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.6
3
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \
4
--header 'accept: application/json' \
5
--header 'content-type: application/json' \
6
--data '{
7
"id": 1,
8
"jsonrpc": "2.0",
9
"method": "starknet_addDeployAccountTransaction",
10
"params": [
11
{
12
"max_fee": "MAX_FEE",
13
"version": "VERSION",
14
"signature": [
15
"SIGNATURE"
16
],
17
"nonce": "NONCE_VALUE",
18
"type": "DEPLOY_ACCOUNT",
19
"contract_address_salt": "CONTRACT_ADDRESS_SALT",
20
"constructor_calldata": [
21
"CALL_DATA"
22
],
23
"class_hash": "CLASS_HASH"
24
}
25
]
26
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free