# GetTransactionSign

Sign the transaction, the api has the risk of leaking the private key, please make sure to call the api in a secure environment

**Return value: Signed Transaction contract data**

❗️Please control risks when using this API. To ensure environmental security, please do not invoke APIs provided by other or invoke this very API on a public network.

**BODY PARAMS**\
`{`

**`transaction  object`**`  ``required`

**`privateKey`**` ``string required`

`}`

**Note:**  &#x20;

* **privateKey** is the user private key
* **transaction object** is a contract created by http api&#x20;

**transaction object**

`{`

&#x20;**`txID`**` ``string`

&#x20;**`visible`**` ``boolean`

&#x20;**`raw_data`**` ``json`

&#x20;**`raw_data_hex`**` ``string`

&#x20;**`signature`**` ``array of strings`&#x20;

`}`

**Example:**

curl --request POST\
\--url <http://172.104.51.182:16667/wallet/gettransactionsign>\
\--header 'Accept: application/json'\
\--header 'Content-Type: application/json'\
\--data ' { "transaction": { "visible": true, "txID": "978f610d94c14c7a9c840073dff482ea5e6bf1eb403f5b7cc692bbfc84b94fb6", "raw\_data": { "contract": \[ { "parameter": { "value": { "data": "50bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e32000000000000", "owner\_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "contract\_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd" }, "type\_url": "type.googleapis.com/protocol.TriggerSmartContract" }, "type": "TriggerSmartContract" } ], "ref\_block\_bytes": "bbdd", "ref\_block\_hash": "fbf5695b52ea68d6", "expiration": 1639036515000, "fee\_limit": 400000000, "timestamp": 1639036458060 }, "raw\_data\_hex": "0a02bbdd2208fbf5695b52ea68d640b8e5c1f1d92f5a9002081f128b020a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412d5010a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb0121541d0f723a417a54e5629d865e05db8a45b79f0a9c322a40150bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e3200000000000070cca8bef1d92f90018088debe01" }, "privateKey": "76E937A694584F3E183D660533797BE4B220167884BD98506B3059105A23F3EB" }

**Input:**&#x20;

`{`&#x20;

`"transaction": { "visible": true, "txID": "978f610d94c14c7a9c840073dff482ea5e6bf1eb403f5b7cc692bbfc84b94fb6", "raw_data": { "contract": [ { "parameter": { "value": { "data": "50bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e32000000000000", "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "contract_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd" }, "type_url": "type.googleapis.com/protocol.TriggerSmartContract" }, "type": "TriggerSmartContract" } ], "ref_block_bytes": "bbdd", "ref_block_hash": "fbf5695b52ea68d6", "expiration": 1639036515000, "fee_limit": 400000000, "timestamp": 1639036458060 }, "raw_data_hex": "0a02bbdd2208fbf5695b52ea68d640b8e5c1f1d92f5a9002081f128b020a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412d5010a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb0121541d0f723a417a54e5629d865e05db8a45b79f0a9c322a40150bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e3200000000000070cca8bef1d92f90018088debe01" }, "privateKey": "76E937A694584F3E183D660533797BE4B220167884BD98506B3059105A23F3EB"`&#x20;

`}`

**Response:**&#x20;

`{ "visible": true, "signature": [ "aef3b466874b538ad90dab1f10e0e47ab705eb3d15e26048aaf0806cb634e62f79a262baec3a31bcae3e54a63167a5409c43f82412a5cb85dad67404f3f88fef01" ], "txID": "978f610d94c14c7a9c840073dff482ea5e6bf1eb403f5b7cc692bbfc84b94fb6", "raw_data": { "contract": [ { "parameter": { "value": { "data": "50bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e32000000000000", "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "contract_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd" }, "type_url": "type.googleapis.com/protocol.TriggerSmartContract" }, "type": "TriggerSmartContract" } ], "ref_block_bytes": "bbdd", "ref_block_hash": "fbf5695b52ea68d6", "expiration": 1639036515000, "fee_limit": 400000000, "timestamp": 1639036458060 }, "raw_data_hex": "0a02bbdd2208fbf5695b52ea68d640b8e5c1f1d92f5a9002081f128b020a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412d5010a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb0121541d0f723a417a54e5629d865e05db8a45b79f0a9c322a40150bb4e7f0000000000000000000000004203485a535a4072c9fbfaaddfe2a010ad0bcdb000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f7777772e676f6f676c652e636f6d2e766e3200000000000070cca8bef1d92f90018088debe01" }`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.aixchain.com/http-api/api-list/transactions/gettransactionsign.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
