🤖gRPC API
This page was automatically generated.
Paths for the REST proxy of the gRPC interface can be found here.
boltzrpc.Boltz
Methods
GetInfo
Gets general information about the daemon like the chain of the lightning node it is connected to and the IDs of pending swaps.
GetServiceInfo
Fetches the latest limits and fees from the Boltz backend API it is connected to.
GetPairInfo
Fetches information about a specific pair for a chain swap.
GetPairs
Fetches all available pairs for submarine and reverse swaps.
ListSwaps
Returns a list of all swaps, reverse swaps, and chain swaps in the database.
RefundSwap
Refund a failed swap manually. This is only required when no refund address has been set or the swap does not have an associated wallet.
GetSwapInfo
Gets all available information about a swap from the database.
GetSwapInfoStream
Returns the entire history of the swap if is still pending and streams updates in real time. If the swap id is empty or "*" updates for all swaps will be streamed.
Deposit
This is a wrapper for channel creation swaps. The daemon only returns the ID, timeout block height and lockup address. The Boltz backend takes care of the rest. When an amount of onchain coins that is in the limits is sent to the address before the timeout block height, the daemon creates a new lightning invoice, sends it to the Boltz backend which will try to pay it and if that is not possible, create a new channel to make the swap succeed.
CreateSwap
Creates a new swap from onchain to lightning.
CreateChannel
Create a new swap from onchain to a new lightning channel. The daemon will only accept the invoice payment if the HTLCs is coming trough a new channel channel opened by Boltz.
CreateReverseSwap
Creates a new reverse swap from lightning to onchain. If accept_zero_conf
is set to true in the request, the daemon will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
CreateChainSwap
Creates a new chain swap from one chain to another. If accept_zero_conf
is set to true in the request, the daemon will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
CreateWallet
Creates a new liquid wallet and returns the mnemonic.
ImportWallet
Imports an existing wallet.
SetSubaccount
Sets the subaccount of a wallet. Not supported for readonly wallets.
GetSubaccounts
Returns all subaccounts for a given wallet. Not supported for readonly wallets.
GetWallets
Returns all available wallets.
GetWallet
Returns the current balance and subaccount of a wallet.
GetWalletCredentials
Returns the credentials of a wallet. The password will be required if the wallet is encrypted.
RemoveWallet
Removes a wallet.
Stop
Gracefully stops the daemon.
Unlock
Unlocks the server. This will be required on startup if there are any encrypted wallets.
VerifyWalletPassword
Check if the password is correct.
ChangeWalletPassword
Changes the password for wallet encryption.
CreateEntity
Creates a new entity which can be used to bake restricted macaroons.
ListEntities
Returns all entities.
GetEntity
Get a specifiy entity.
BakeMacaroon
Bakes a new macaroon with the specified permissions. The macaroon can also be restricted to a specific entity. In this case, - any swap or wallet created with the returned macaroon will belong to this entity and can not be accessed by other entities. - the lightning node connected to the daemon can not be used to pay or create invoices for swaps.
Messages
BakeMacaroonRequest
BakeMacaroonResponse
Balance
BlockHeights
Budget
ChainSwapData
ChainSwapInfo
ChangeWalletPasswordRequest
ChannelCreationInfo
Channel creations are an optional extension to a submarine swap in the data types of boltz-client.
ChannelId
CombinedChannelSwapInfo
CreateChainSwapRequest
CreateChannelRequest
CreateEntityRequest
CreateReverseSwapRequest
CreateReverseSwapResponse
CreateSwapRequest
CreateSwapResponse
CreateWalletRequest
DepositRequest
DepositResponse
Entity
Fees
GetEntityRequest
GetInfoRequest
GetInfoResponse
GetPairInfoRequest
GetPairsResponse
GetServiceInfoRequest
GetServiceInfoResponse
GetSubaccountsRequest
GetSubaccountsResponse
GetSwapInfoRequest
GetSwapInfoResponse
GetWalletCredentialsRequest
GetWalletRequest
GetWalletsRequest
ImportWalletRequest
ImportWalletResponse
LightningChannel
Limits
ListEntitiesRequest
ListEntitiesResponse
ListSwapsRequest
ListSwapsResponse
MacaroonPermissions
MinerFees
Pair
PairInfo
RefundSwapRequest
RemoveWalletRequest
RemoveWalletResponse
ReverseSwapInfo
SetSubaccountRequest
Subaccount
SwapFees
SwapInfo
SwapStats
UnlockRequest
VerifyWalletPasswordRequest
VerifyWalletPasswordResponse
Wallet
WalletCredentials
WalletInfo
Wallets
Enums
Currency
MacaroonAction
SwapState
SwapType
autoswaprpc.AutoSwap
Methods
GetSwapRecommendations
Returns a list of swaps which are currently recommended by autoswap. Also works when autoswap is not running.
GetStatus
Returns the current budget of autoswap and some relevant stats.
ResetConfig
Resets the configuration to default values.
SetConfig
Allows setting multiple json-encoded config values at once. Autoswap will reload the configuration after this call.
SetConfigValue
Allows setting a specific value in the configuration. Autoswap will reload the configuration after this call.
GetConfig
Returns the currently used configurationencoded as json. If a key is specfied, only the value of that key will be returned.
ReloadConfig
Reloads the configuration from disk.
Messages
Budget
Config
GetConfigRequest
GetStatusRequest
GetStatusResponse
GetSwapRecommendationsRequest
GetSwapRecommendationsResponse
SetConfigValueRequest
SwapRecommendation
Enums
Scalar Value Types
Last updated