curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createspendauthsig \
--header 'Content-Type: application/json' \
--data '
{
"ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005",
"alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907",
"tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337"
}
'{
"value": "66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createspendauthsig \
--header 'Content-Type: application/json' \
--data '
{
"ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005",
"alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907",
"tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337"
}
'{
"value": "66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
}ask, alpha, tx_hash) must be exactly 32 bytes (64 hexadecimal characters) provided as raw hex strings without the 0x prefix. Values that are shorter, longer, or include the 0x prefix will result in a “param length must be 32” error.ask — the authentication secret key used for signing (32 bytes, hex without 0x prefix)alpha — the alpha parameter for randomization (32 bytes, hex without 0x prefix)tx_hash — the transaction hash being authorized (32 bytes, hex without 0x prefix)value — the generated spending authorization signature (hex string without 0x prefix)wallet/createspendauthsig method is used for:
Authentication secret key for signing (32 bytes, hex without 0x prefix)
"0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005"
Alpha parameter for randomization (32 bytes, hex without 0x prefix)
"d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907"
Transaction hash being authorized (32 bytes, hex without 0x prefix)
"7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337"
Successfully created spending authorization signature
Generated spending authorization signature (hex string without 0x prefix)
"66c806bc592a7599e65833bf25c3c7005c8b21b7895dd835a84c97d7bec49d0f1493d2c73a68eeb9b9699b92cae42406f9e44ebe19acaea3d5febfe28de57109"
Was this page helpful?