post https://api.shasta.trongrid.io/wallet/deploycontract
Deploys a contract. Returns TransactionExtention, which contains an unsigned transaction.
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is CreateSmartContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows:
| Field | Type | Description |
|---|---|---|
| owner_address | string | Account address |
| new_contract | SmartContract | Deployed contract data, the fields contained in it, please refer to GetContract |
| call_token_value | int64 | The amount of TRC-10 transferred into the contract |
| token_id | int64 | TRC-10 token id |