mirror of
https://github.com/bumi/lnrpc
synced 2026-02-15 23:57:49 +00:00
grpc files for v0.13.0-beta
This commit is contained in:
@@ -10,6 +10,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
add_message "walletrpc.ListUnspentRequest" do
|
||||
optional :min_confs, :int32, 1
|
||||
optional :max_confs, :int32, 2
|
||||
optional :account, :string, 3
|
||||
end
|
||||
add_message "walletrpc.ListUnspentResponse" do
|
||||
repeated :utxos, :message, 1, "lnrpc.Utxo"
|
||||
@@ -17,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
add_message "walletrpc.LeaseOutputRequest" do
|
||||
optional :id, :bytes, 1
|
||||
optional :outpoint, :message, 2, "lnrpc.OutPoint"
|
||||
optional :expiration_seconds, :uint64, 3
|
||||
end
|
||||
add_message "walletrpc.LeaseOutputResponse" do
|
||||
optional :expiration, :uint64, 1
|
||||
@@ -32,10 +34,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :key_family, :int32, 2
|
||||
end
|
||||
add_message "walletrpc.AddrRequest" do
|
||||
optional :account, :string, 1
|
||||
end
|
||||
add_message "walletrpc.AddrResponse" do
|
||||
optional :addr, :string, 1
|
||||
end
|
||||
add_message "walletrpc.Account" do
|
||||
optional :name, :string, 1
|
||||
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
||||
optional :extended_public_key, :string, 3
|
||||
optional :master_key_fingerprint, :bytes, 4
|
||||
optional :derivation_path, :string, 5
|
||||
optional :external_key_count, :uint32, 6
|
||||
optional :internal_key_count, :uint32, 7
|
||||
optional :watch_only, :bool, 8
|
||||
end
|
||||
add_message "walletrpc.ListAccountsRequest" do
|
||||
optional :name, :string, 1
|
||||
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
||||
end
|
||||
add_message "walletrpc.ListAccountsResponse" do
|
||||
repeated :accounts, :message, 1, "walletrpc.Account"
|
||||
end
|
||||
add_message "walletrpc.ImportAccountRequest" do
|
||||
optional :name, :string, 1
|
||||
optional :extended_public_key, :string, 2
|
||||
optional :master_key_fingerprint, :bytes, 3
|
||||
optional :address_type, :enum, 4, "walletrpc.AddressType"
|
||||
optional :dry_run, :bool, 5
|
||||
end
|
||||
add_message "walletrpc.ImportAccountResponse" do
|
||||
optional :account, :message, 1, "walletrpc.Account"
|
||||
repeated :dry_run_external_addrs, :string, 2
|
||||
repeated :dry_run_internal_addrs, :string, 3
|
||||
end
|
||||
add_message "walletrpc.ImportPublicKeyRequest" do
|
||||
optional :public_key, :bytes, 1
|
||||
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
||||
end
|
||||
add_message "walletrpc.ImportPublicKeyResponse" do
|
||||
end
|
||||
add_message "walletrpc.Transaction" do
|
||||
optional :tx_hex, :bytes, 1
|
||||
optional :label, :string, 2
|
||||
@@ -68,6 +106,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :next_broadcast_height, :uint32, 6
|
||||
optional :requested_conf_target, :uint32, 8
|
||||
optional :requested_sat_per_byte, :uint32, 9
|
||||
optional :sat_per_vbyte, :uint64, 10
|
||||
optional :requested_sat_per_vbyte, :uint64, 11
|
||||
optional :force, :bool, 7
|
||||
end
|
||||
add_message "walletrpc.PendingSweepsRequest" do
|
||||
@@ -80,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :target_conf, :uint32, 2
|
||||
optional :sat_per_byte, :uint32, 3
|
||||
optional :force, :bool, 4
|
||||
optional :sat_per_vbyte, :uint64, 5
|
||||
end
|
||||
add_message "walletrpc.BumpFeeResponse" do
|
||||
end
|
||||
@@ -103,13 +144,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
add_message "walletrpc.LabelTransactionResponse" do
|
||||
end
|
||||
add_message "walletrpc.FundPsbtRequest" do
|
||||
optional :account, :string, 5
|
||||
optional :min_confs, :int32, 6
|
||||
optional :spend_unconfirmed, :bool, 7
|
||||
oneof :template do
|
||||
optional :psbt, :bytes, 1
|
||||
optional :raw, :message, 2, "walletrpc.TxTemplate"
|
||||
end
|
||||
oneof :fees do
|
||||
optional :target_conf, :uint32, 3
|
||||
optional :sat_per_vbyte, :uint32, 4
|
||||
optional :sat_per_vbyte, :uint64, 4
|
||||
end
|
||||
end
|
||||
add_message "walletrpc.FundPsbtResponse" do
|
||||
@@ -128,11 +172,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
end
|
||||
add_message "walletrpc.FinalizePsbtRequest" do
|
||||
optional :funded_psbt, :bytes, 1
|
||||
optional :account, :string, 5
|
||||
end
|
||||
add_message "walletrpc.FinalizePsbtResponse" do
|
||||
optional :signed_psbt, :bytes, 1
|
||||
optional :raw_final_tx, :bytes, 2
|
||||
end
|
||||
add_message "walletrpc.ListLeasesRequest" do
|
||||
end
|
||||
add_message "walletrpc.ListLeasesResponse" do
|
||||
repeated :locked_utxos, :message, 1, "walletrpc.UtxoLease"
|
||||
end
|
||||
add_enum "walletrpc.AddressType" do
|
||||
value :UNKNOWN, 0
|
||||
value :WITNESS_PUBKEY_HASH, 1
|
||||
value :NESTED_WITNESS_PUBKEY_HASH, 2
|
||||
value :HYBRID_NESTED_WITNESS_PUBKEY_HASH, 3
|
||||
end
|
||||
add_enum "walletrpc.WitnessType" do
|
||||
value :UNKNOWN_WITNESS, 0
|
||||
value :COMMITMENT_TIME_LOCK, 1
|
||||
@@ -162,6 +218,13 @@ module Walletrpc
|
||||
KeyReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.KeyReq").msgclass
|
||||
AddrRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrRequest").msgclass
|
||||
AddrResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrResponse").msgclass
|
||||
Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Account").msgclass
|
||||
ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsRequest").msgclass
|
||||
ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsResponse").msgclass
|
||||
ImportAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountRequest").msgclass
|
||||
ImportAccountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountResponse").msgclass
|
||||
ImportPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyRequest").msgclass
|
||||
ImportPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyResponse").msgclass
|
||||
Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Transaction").msgclass
|
||||
PublishResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PublishResponse").msgclass
|
||||
SendOutputsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsRequest").msgclass
|
||||
@@ -184,5 +247,8 @@ module Walletrpc
|
||||
UtxoLease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.UtxoLease").msgclass
|
||||
FinalizePsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtRequest").msgclass
|
||||
FinalizePsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtResponse").msgclass
|
||||
ListLeasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesRequest").msgclass
|
||||
ListLeasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesResponse").msgclass
|
||||
AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddressType").enummodule
|
||||
WitnessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.WitnessType").enummodule
|
||||
end
|
||||
|
||||
@@ -33,6 +33,9 @@ module Walletrpc
|
||||
# originally lock the output.
|
||||
rpc :ReleaseOutput, ::Walletrpc::ReleaseOutputRequest, ::Walletrpc::ReleaseOutputResponse
|
||||
#
|
||||
# ListLeases lists all currently locked utxos.
|
||||
rpc :ListLeases, ::Walletrpc::ListLeasesRequest, ::Walletrpc::ListLeasesResponse
|
||||
#
|
||||
# DeriveNextKey attempts to derive the *next* key within the key family
|
||||
# (account in BIP43) specified. This method should return the next external
|
||||
# child within this branch.
|
||||
@@ -45,6 +48,43 @@ module Walletrpc
|
||||
# NextAddr returns the next unused address within the wallet.
|
||||
rpc :NextAddr, ::Walletrpc::AddrRequest, ::Walletrpc::AddrResponse
|
||||
#
|
||||
# ListAccounts retrieves all accounts belonging to the wallet by default. A
|
||||
# name and key scope filter can be provided to filter through all of the
|
||||
# wallet accounts and return only those matching.
|
||||
rpc :ListAccounts, ::Walletrpc::ListAccountsRequest, ::Walletrpc::ListAccountsResponse
|
||||
#
|
||||
# ImportAccount imports an account backed by an account extended public key.
|
||||
# The master key fingerprint denotes the fingerprint of the root key
|
||||
# corresponding to the account public key (also known as the key with
|
||||
# derivation path m/). This may be required by some hardware wallets for
|
||||
# proper identification and signing.
|
||||
#
|
||||
# The address type can usually be inferred from the key's version, but may be
|
||||
# required for certain keys to map them into the proper scope.
|
||||
#
|
||||
# For BIP-0044 keys, an address type must be specified as we intend to not
|
||||
# support importing BIP-0044 keys into the wallet using the legacy
|
||||
# pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
|
||||
# the standard BIP-0049 derivation scheme, while a witness address type will
|
||||
# force the standard BIP-0084 derivation scheme.
|
||||
#
|
||||
# For BIP-0049 keys, an address type must also be specified to make a
|
||||
# distinction between the standard BIP-0049 address schema (nested witness
|
||||
# pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
|
||||
# externally, witness pubkeys internally).
|
||||
#
|
||||
# NOTE: Events (deposits/spends) for keys derived from an account will only be
|
||||
# detected by lnd if they happen after the import. Rescans to detect past
|
||||
# events will be supported later on.
|
||||
rpc :ImportAccount, ::Walletrpc::ImportAccountRequest, ::Walletrpc::ImportAccountResponse
|
||||
#
|
||||
# ImportPublicKey imports a public key as watch-only into the wallet.
|
||||
#
|
||||
# NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
||||
# they happen after the import. Rescans to detect past events will be
|
||||
# supported later on.
|
||||
rpc :ImportPublicKey, ::Walletrpc::ImportPublicKeyRequest, ::Walletrpc::ImportPublicKeyResponse
|
||||
#
|
||||
# PublishTransaction attempts to publish the passed transaction to the
|
||||
# network. Once this returns without an error, the wallet will continually
|
||||
# attempt to re-broadcast the transaction on start up, until it enters the
|
||||
|
||||
Reference in New Issue
Block a user