Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cli/rawtransactions/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Raw Transactions",
"position": 3
}
63 changes: 63 additions & 0 deletions docs/cli/rawtransactions/analyzepsbt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: analyzepsbt
sidebar_label: analyzepsbt
description: "Syscoin Core CLI reference: analyzepsbt"
---

# `analyzepsbt`

Analyzes and provides information about the current status of a PSBT and its inputs

## Synopsis

```
analyzepsbt "psbt"
```

## Arguments

```
1. psbt (string, required) A base64 string of a PSBT
```

## Result

```
{ (json object)
"inputs" : [ (json array, optional)
{ (json object)
"has_utxo" : true|false, (boolean) Whether a UTXO is provided
"is_final" : true|false, (boolean) Whether the input is finalized
"missing" : { (json object, optional) Things that are missing that are required to complete this input
"pubkeys" : [ (json array, optional)
"hex", (string) Public key ID, hash160 of the public key, of a public key whose BIP 32 derivation path is missing
...
],
"signatures" : [ (json array, optional)
"hex", (string) Public key ID, hash160 of the public key, of a public key whose signature is missing
...
],
"redeemscript" : "hex", (string, optional) Hash160 of the redeemScript that is missing
"witnessscript" : "hex" (string, optional) SHA256 of the witnessScript that is missing
},
"next" : "str" (string, optional) Role of the next person that this input needs to go to
},
...
],
"estimated_vsize" : n, (numeric, optional) Estimated vsize of the final signed transaction
"estimated_feerate" : n, (numeric, optional) Estimated feerate of the final signed transaction in SYS/kvB. Shown only if all UTXO slots in the PSBT have been filled
"fee" : n, (numeric, optional) The transaction fee paid. Shown only if all UTXO slots in the PSBT have been filled
"next" : "str", (string) Role of the next person that this psbt needs to go to
"error" : "str" (string, optional) Error message (if there is one)
}
```

## Examples

```
> syscoin-cli analyzepsbt "psbt"
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
42 changes: 42 additions & 0 deletions docs/cli/rawtransactions/combinepsbt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: combinepsbt
sidebar_label: combinepsbt
description: "Syscoin Core CLI reference: combinepsbt"
---

# `combinepsbt`

Combine multiple partially signed Syscoin transactions into one transaction.
Implements the Combiner role.

## Synopsis

```
combinepsbt ["psbt",...]
```

## Arguments

```
1. txs (json array, required) The base64 strings of partially signed transactions
[
"psbt", (string) A base64 string of a PSBT
...
]
```

## Result

```
"str" (string) The base64-encoded partially signed transaction
```

## Examples

```
> syscoin-cli combinepsbt '["mybase64_1", "mybase64_2", "mybase64_3"]'
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
43 changes: 43 additions & 0 deletions docs/cli/rawtransactions/combinerawtransaction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: combinerawtransaction
sidebar_label: combinerawtransaction
description: "Syscoin Core CLI reference: combinerawtransaction"
---

# `combinerawtransaction`

Combine multiple partially signed transactions into one transaction.
The combined transaction may be another partially signed transaction or a
fully signed transaction.

## Synopsis

```
combinerawtransaction ["hexstring",...]
```

## Arguments

```
1. txs (json array, required) The hex strings of partially signed transactions
[
"hexstring", (string) A hex-encoded raw transaction
...
]
```

## Result

```
"str" (string) The hex-encoded raw transaction with signature(s)
```

## Examples

```
> syscoin-cli combinerawtransaction '["myhex1", "myhex2", "myhex3"]'
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
50 changes: 50 additions & 0 deletions docs/cli/rawtransactions/converttopsbt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: converttopsbt
sidebar_label: converttopsbt
description: "Syscoin Core CLI reference: converttopsbt"
---

# `converttopsbt`

Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction
createpsbt and walletcreatefundedpsbt should be used for new applications.

## Synopsis

```
converttopsbt "hexstring" ( permitsigdata iswitness )
```

## Arguments

```
1. hexstring (string, required) The hex string of a raw transaction
2. permitsigdata (boolean, optional, default=false) If true, any signatures in the input will be discarded and conversion
will continue. If false, RPC will fail if any signatures are present.
3. iswitness (boolean, optional, default=depends on heuristic tests) Whether the transaction hex is a serialized witness transaction.
If iswitness is not present, heuristic tests will be used in decoding.
If true, only witness deserialization will be tried.
If false, only non-witness deserialization will be tried.
This boolean should reflect whether the transaction has inputs
(e.g. fully valid, or on-chain transactions), if known by the caller.
```

## Result

```
"str" (string) The resulting raw transaction (base64-encoded string)
```

## Examples

```
Create a transaction
> syscoin-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]"

Convert the transaction to a PSBT
> syscoin-cli converttopsbt "rawtransaction"
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
66 changes: 66 additions & 0 deletions docs/cli/rawtransactions/createpsbt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: createpsbt
sidebar_label: createpsbt
description: "Syscoin Core CLI reference: createpsbt"
---

# `createpsbt`

Creates a transaction in the Partially Signed Transaction format.
Implements the Creator role.

## Synopsis

```
createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount,...},{"data":"hex","data_amount":amount,"data_version":n},...] ( locktime replaceable )
```

## Arguments

```
1. inputs (json array, required) The inputs
[
{ (json object)
"txid": "hex", (string, required) The transaction id
"vout": n, (numeric, required) The output number
"sequence": n, (numeric, optional, default=depends on the value of the 'replaceable' and 'locktime' arguments) The sequence number
},
...
]
2. outputs (json array, required) The outputs specified as key-value pairs.
Each key may only appear once, i.e. there can only be one 'data' output, and no address may be duplicated.
At least one output of either type must be specified.
For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also
accepted as second parameter.
[
{ (json object)
"address": amount, (numeric or string, required) A key-value pair. The key (string) is the syscoin address, the value (float or string) is the amount in SYS
...
},
{ (json object)
"data": "hex", (string, required) A key-value pair. The key must be "data", the value is hex-encoded data
"data_amount": amount, (numeric or string, optional, default=0) Amount to burn in OP_RETURN output for Syscoin transactions
"data_version": n, (numeric, optional, default=0) Transaction version to use for Syscoin transactions
},
...
]
3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs
4. replaceable (boolean, optional, default=true) Marks this transaction as BIP125-replaceable.
Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible.
```

## Result

```
"str" (string) The resulting raw transaction (base64-encoded string)
```

## Examples

```
> syscoin-cli createpsbt "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]"
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
72 changes: 72 additions & 0 deletions docs/cli/rawtransactions/createrawtransaction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
title: createrawtransaction
sidebar_label: createrawtransaction
description: "Syscoin Core CLI reference: createrawtransaction"
---

# `createrawtransaction`

Create a transaction spending the given inputs and creating new outputs.
Outputs can be addresses or data.
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and
it is not stored in the wallet or transmitted to the network.

## Synopsis

```
createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount,...},{"data":"hex","data_amount":amount,"data_version":n},...] ( locktime replaceable )
```

## Arguments

```
1. inputs (json array, required) The inputs
[
{ (json object)
"txid": "hex", (string, required) The transaction id
"vout": n, (numeric, required) The output number
"sequence": n, (numeric, optional, default=depends on the value of the 'replaceable' and 'locktime' arguments) The sequence number
},
...
]
2. outputs (json array, required) The outputs specified as key-value pairs.
Each key may only appear once, i.e. there can only be one 'data' output, and no address may be duplicated.
At least one output of either type must be specified.
For compatibility reasons, a dictionary, which holds the key-value pairs directly, is also
accepted as second parameter.
[
{ (json object)
"address": amount, (numeric or string, required) A key-value pair. The key (string) is the syscoin address, the value (float or string) is the amount in SYS
...
},
{ (json object)
"data": "hex", (string, required) A key-value pair. The key must be "data", the value is hex-encoded data
"data_amount": amount, (numeric or string, optional, default=0) Amount to burn in OP_RETURN output for Syscoin transactions
"data_version": n, (numeric, optional, default=0) Transaction version to use for Syscoin transactions
},
...
]
3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs
4. replaceable (boolean, optional, default=true) Marks this transaction as BIP125-replaceable.
Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible.
```

## Result

```
"hex" (string) hex string of the transaction
```

## Examples

```
> syscoin-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"address\":0.01}]"
> syscoin-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"myid\",\"vout\":0}]", "[{\"address\":0.01}]"]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"myid\",\"vout\":0}]", "[{\"data\":\"00010203\"}]"]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/
```

---

*Source: [src/rpc/rawtransaction.cpp](https://github.com/syscoin/syscoin/blob/master/src/rpc/rawtransaction.cpp). Auto-generated from Syscoin Core 5.0.5 on 2026-05-20.*
Loading