Deploy contract
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Deploys a new smart contract to the TRON blockchain. This creates a transaction that must be signed and broadcast to the network. The contract deployment requires sufficient energy and bandwidth resources.
Body
Request value.
owner_addressstringrequiredThe address that will own and deploy the contract.
abistringrequiredThe contract's ABI in JSON string format.
bytecodestringrequiredThe contract's compiled bytecode in hex format.
namestringThe contract name.
fee_limitinteger<int64>The maximum fee (in SUN) for contract deployment.
origin_energy_limitintegerThe energy limit for the contract execution.
consume_user_resource_percentintegerThe percentage of resource consumption paid by the user (0-100).
parameterstringConstructor parameters in hex format (if any).
visiblebooleanWhether addresses are in base58 format.
Response
HTTP 200 response for deploycontract. The body contains either a successful result or a node-level error.
Bad Request. The request is malformed or contains invalid parameters.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error. The gateway or node failed while processing the request.