Deploy a smart contract
Deploy a new smart contract to the blockchain through automated workflows. The deployment includes bytecode validation, policy evaluation, approval workflow (if required), gas estimation, signing, and confirmation tracking.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
sender.vaultId | UUID | Yes | Deploying vault identifier |
chainId | number | Yes | Target blockchain network ID |
bytecode | string | Yes | Contract bytecode (0x prefixed hex) |
constructorParams | array | No | Constructor parameters with type/value |
value | string | No | Native currency to send (default: "0") |
gasLimit | string | Yes | Maximum gas units (typically 500000-5000000) |
gasPrice | string | No | Legacy gas price in Gwei |
maxFeePerGas | string | No | EIP-1559 max fee per gas in Gwei |
maxPriorityFeePerGas | string | No | EIP-1559 priority fee in Gwei |
performChainalysisScreening | boolean | No | Enable compliance screening |
Constructor Parameters Array
Each parameter object includes:
| Field | Type | Description |
|---|---|---|
type | string | Solidity type (e.g., address, uint256, string) |
value | string/number/boolean | Parameter value matching the type |
Deployment Workflow
- Validation — Validates bytecode and constructor parameters
- Encoding — Encodes constructor parameters
- Policy Evaluation — Checks against organization policies
- Approval — Requests approval if policy requires
- Gas Estimation — Estimates gas if not provided
- Signing — Signs deployment transaction
- Broadcast — Submits to blockchain
- Confirmation — Waits for block confirmation
Response Fields
| Field | Type | Description |
|---|---|---|
workflowId | string | Temporal workflow ID for tracking |
transactionId | UUID | Transaction record identifier |
status | string | Initial transaction status |
contractAddress | string | Deployed contract address (after confirmation) |
Use Cases
- Deploy ERC-20 token contracts
- Deploy ERC-721 NFT collections
- Deploy custom smart contracts
- Deploy multi-sig wallet contracts
- Deploy DeFi protocol contracts
Required Permission
contracts:deploy
Deploy a smart contract
Deploy a new smart contract to the blockchain through automated workflows. The deployment includes bytecode validation, policy evaluation, approval workflow (if required), gas estimation, signing, and confirmation tracking.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
sender.vaultId | UUID | Yes | Deploying vault identifier |
chainId | number | Yes | Target blockchain network ID |
bytecode | string | Yes | Contract bytecode (0x prefixed hex) |
constructorParams | array | No | Constructor parameters with type/value |
value | string | No | Native currency to send (default: "0") |
gasLimit | string | Yes | Maximum gas units (typically 500000-5000000) |
gasPrice | string | No | Legacy gas price in Gwei |
maxFeePerGas | string | No | EIP-1559 max fee per gas in Gwei |
maxPriorityFeePerGas | string | No | EIP-1559 priority fee in Gwei |
performChainalysisScreening | boolean | No | Enable compliance screening |
Constructor Parameters Array
Each parameter object includes:
| Field | Type | Description |
|---|---|---|
type | string | Solidity type (e.g., address, uint256, string) |
value | string/number/boolean | Parameter value matching the type |
Deployment Workflow
- Validation — Validates bytecode and constructor parameters
- Encoding — Encodes constructor parameters
- Policy Evaluation — Checks against organization policies
- Approval — Requests approval if policy requires
- Gas Estimation — Estimates gas if not provided
- Signing — Signs deployment transaction
- Broadcast — Submits to blockchain
- Confirmation — Waits for block confirmation
Response Fields
| Field | Type | Description |
|---|---|---|
workflowId | string | Temporal workflow ID for tracking |
transactionId | UUID | Transaction record identifier |
status | string | Initial transaction status |
contractAddress | string | Deployed contract address (after confirmation) |
Use Cases
- Deploy ERC-20 token contracts
- Deploy ERC-721 NFT collections
- Deploy custom smart contracts
- Deploy multi-sig wallet contracts
- Deploy DeFi protocol contracts
Required Permission
contracts:deploy