WitnessCreateContract
, the fields contained in raw_data.contract[0].parameter.value
in the transaction are as follows:Field | Type | Description |
---|---|---|
owner_address | string | Account address |
url | string | The website URL of the SR node |
{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"url": "007570646174654e616d6531353330363038383733343633",
"visible": true
}
curl --location --request POST '/wallet/createwitness' \
--header 'Content-Type: application/json' \
--data-raw '{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"url": "007570646174654e616d6531353330363038383733343633",
"visible": true
}'
{
"Error": "class org.tron.core.exception.ContractValidateException : balance < AccountUpgradeCost"
}