mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 17:52:25 +01:00
lnrpc: add DestOutput to the protobuf
This commit is contained in:
parent
d43cdcf9a0
commit
188b39268d
File diff suppressed because it is too large
Load Diff
@ -620,6 +620,38 @@ message Utxo {
|
||||
int64 confirmations = 6;
|
||||
}
|
||||
|
||||
enum OutputScriptType {
|
||||
SCRIPT_TYPE_PUBKEY_HASH = 0;
|
||||
SCRIPT_TYPE_SCRIPT_HASH = 1;
|
||||
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
|
||||
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
|
||||
SCRIPT_TYPE_PUBKEY = 4;
|
||||
SCRIPT_TYPE_MULTISIG = 5;
|
||||
SCRIPT_TYPE_NULLDATA = 6;
|
||||
SCRIPT_TYPE_NON_STANDARD = 7;
|
||||
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
|
||||
}
|
||||
|
||||
message OutputDetail {
|
||||
// The type of the output
|
||||
OutputScriptType output_type = 1;
|
||||
|
||||
// The address
|
||||
string address = 2;
|
||||
|
||||
// The pkscript in hex
|
||||
string pk_script = 3;
|
||||
|
||||
// The output index used in the raw transaction
|
||||
int64 output_index = 4;
|
||||
|
||||
// The value of the output coin in satoshis
|
||||
int64 amount = 5;
|
||||
|
||||
// Denotes if the output is controlled by the internal wallet
|
||||
bool is_our_address = 6;
|
||||
}
|
||||
|
||||
message Transaction {
|
||||
// The transaction hash
|
||||
string tx_hash = 1;
|
||||
@ -642,8 +674,12 @@ message Transaction {
|
||||
// Fees paid for this transaction
|
||||
int64 total_fees = 7;
|
||||
|
||||
// Addresses that received funds for this transaction
|
||||
repeated string dest_addresses = 8;
|
||||
// Addresses that received funds for this transaction. Deprecated as it is
|
||||
// now incorporated in the output_details field.
|
||||
repeated string dest_addresses = 8 [deprecated = true];
|
||||
|
||||
// Outputs that received funds for this transaction
|
||||
repeated OutputDetail output_details = 11;
|
||||
|
||||
// The raw transaction hex.
|
||||
string raw_tx_hex = 9;
|
||||
|
@ -5430,6 +5430,52 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcOutputDetail": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"output_type": {
|
||||
"$ref": "#/definitions/lnrpcOutputScriptType",
|
||||
"title": "The type of the output"
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"title": "The address"
|
||||
},
|
||||
"pk_script": {
|
||||
"type": "string",
|
||||
"title": "The pkscript in hex"
|
||||
},
|
||||
"output_index": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "The output index used in the raw transaction"
|
||||
},
|
||||
"amount": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "The value of the output coin in satoshis"
|
||||
},
|
||||
"is_our_address": {
|
||||
"type": "boolean",
|
||||
"title": "Denotes if the output is controlled by the internal wallet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcOutputScriptType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"SCRIPT_TYPE_PUBKEY_HASH",
|
||||
"SCRIPT_TYPE_SCRIPT_HASH",
|
||||
"SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",
|
||||
"SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",
|
||||
"SCRIPT_TYPE_PUBKEY",
|
||||
"SCRIPT_TYPE_MULTISIG",
|
||||
"SCRIPT_TYPE_NULLDATA",
|
||||
"SCRIPT_TYPE_NON_STANDARD",
|
||||
"SCRIPT_TYPE_WITNESS_UNKNOWN"
|
||||
],
|
||||
"default": "SCRIPT_TYPE_PUBKEY_HASH"
|
||||
},
|
||||
"lnrpcPayReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -6411,7 +6457,14 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Addresses that received funds for this transaction"
|
||||
"description": "Addresses that received funds for this transaction. Deprecated as it is\nnow incorporated in the output_details field."
|
||||
},
|
||||
"output_details": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcOutputDetail"
|
||||
},
|
||||
"title": "Outputs that received funds for this transaction"
|
||||
},
|
||||
"raw_tx_hex": {
|
||||
"type": "string",
|
||||
|
@ -720,6 +720,52 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcOutputDetail": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"output_type": {
|
||||
"$ref": "#/definitions/lnrpcOutputScriptType",
|
||||
"title": "The type of the output"
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"title": "The address"
|
||||
},
|
||||
"pk_script": {
|
||||
"type": "string",
|
||||
"title": "The pkscript in hex"
|
||||
},
|
||||
"output_index": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "The output index used in the raw transaction"
|
||||
},
|
||||
"amount": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "The value of the output coin in satoshis"
|
||||
},
|
||||
"is_our_address": {
|
||||
"type": "boolean",
|
||||
"title": "Denotes if the output is controlled by the internal wallet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcOutputScriptType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"SCRIPT_TYPE_PUBKEY_HASH",
|
||||
"SCRIPT_TYPE_SCRIPT_HASH",
|
||||
"SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",
|
||||
"SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",
|
||||
"SCRIPT_TYPE_PUBKEY",
|
||||
"SCRIPT_TYPE_MULTISIG",
|
||||
"SCRIPT_TYPE_NULLDATA",
|
||||
"SCRIPT_TYPE_NON_STANDARD",
|
||||
"SCRIPT_TYPE_WITNESS_UNKNOWN"
|
||||
],
|
||||
"default": "SCRIPT_TYPE_PUBKEY_HASH"
|
||||
},
|
||||
"lnrpcTransaction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -761,7 +807,14 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Addresses that received funds for this transaction"
|
||||
"description": "Addresses that received funds for this transaction. Deprecated as it is\nnow incorporated in the output_details field."
|
||||
},
|
||||
"output_details": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcOutputDetail"
|
||||
},
|
||||
"title": "Outputs that received funds for this transaction"
|
||||
},
|
||||
"raw_tx_hex": {
|
||||
"type": "string",
|
||||
|
Loading…
x
Reference in New Issue
Block a user