In case you are trying to send a raw transaction to deploy your contract you will need to append the encoded params right after the bytecode of your smart contract.
For instance if you have web3 available you could do the following:
var Web3 = require('web3')
var encodeConstructorParams = function(web3, abi, params) {
return abi.filter(function(json) {
return json.type === 'constructor' && json.inputs.length === params.length;
}).map(function(json) {
return json.inputs.map(function(input) {
return input.type;
});
}).map(function(types) {
return web3.eth.abi.encodeParameters(types, params).slice(2); // Remove initial 0x
})[0] || '';
};
const web3 = new Web3('http://localhost:8545');
const contractABI = [{...}]
const contractBytecode = "0x06..."
const constructorParams = [arg1, arg2];
const encodedParams = encodeConstructorParams(web3, contractABI, constructorParams)
web3.eth.sendTransaction({from, data: contractBytecode + encodeParams, ...})