2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00
loop/looprpc/client.swagger.json

1317 lines
54 KiB
JSON
Raw Normal View History

{
"swagger": "2.0",
"info": {
"title": "client.proto",
"version": "version not set"
},
"tags": [
{
"name": "SwapClient"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
2020-09-03 08:36:44 +00:00
"/v1/auto/suggest": {
"get": {
2021-07-14 14:08:53 +00:00
"summary": "loop: `suggestswaps`\nSuggestSwaps returns a list of recommended swaps based on the current\nstate of your node's channels and it's liquidity manager parameters.\nNote that only loop out suggestions are currently supported.\n[EXPERIMENTAL]: endpoint is subject to change.",
"operationId": "SwapClient_SuggestSwaps",
2020-09-03 08:36:44 +00:00
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcSuggestSwapsResponse"
}
},
"default": {
"description": "An unexpected error response.",
2020-09-03 08:36:44 +00:00
"schema": {
"$ref": "#/definitions/rpcStatus"
2020-09-03 08:36:44 +00:00
}
}
},
"tags": [
"SwapClient"
]
}
},
"/v1/liquidity/params": {
"get": {
2021-07-14 14:08:53 +00:00
"summary": "loop: `getparams`\nGetLiquidityParams gets the parameters that the daemon's liquidity manager\nis currently configured with. This may be nil if nothing is configured.\n[EXPERIMENTAL]: endpoint is subject to change.",
"operationId": "SwapClient_GetLiquidityParams",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcLiquidityParameters"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"SwapClient"
]
},
"post": {
2021-07-14 14:08:53 +00:00
"summary": "loop: `setparams`\nSetLiquidityParams sets a new set of parameters for the daemon's liquidity\nmanager. Note that the full set of parameters must be provided, because\nthis call fully overwrites our existing parameters.\n[EXPERIMENTAL]: endpoint is subject to change.",
"operationId": "SwapClient_SetLiquidityParams",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcSetLiquidityParamsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/looprpcSetLiquidityParamsRequest"
}
}
],
"tags": [
"SwapClient"
]
}
},
2019-09-05 03:48:48 +00:00
"/v1/loop/in": {
"post": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `in`\nLoopIn initiates a loop in swap with the given parameters. The call\nreturns after the swap has been set up with the swap server. From that\npoint onwards, progress can be tracked via the SwapStatus stream\nthat is returned from Monitor().",
"operationId": "SwapClient_LoopIn",
2019-09-05 03:48:48 +00:00
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
2019-09-05 03:48:48 +00:00
"schema": {
"$ref": "#/definitions/looprpcSwapResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
2019-09-05 03:48:48 +00:00
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/looprpcLoopInRequest"
}
}
],
"tags": [
"SwapClient"
]
}
},
2021-05-10 14:55:53 +00:00
"/v1/loop/in/probe/{amt}": {
"get": {
"summary": "Probe asks he sever to probe the route to us to have a better upfront\nestimate about routing fees when loopin-in.",
"operationId": "SwapClient_Probe",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcProbeResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "amt",
"description": "The amount to probe.",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
},
{
"name": "last_hop",
"description": "Optional last hop of the route to probe.",
"in": "query",
"required": false,
"type": "string",
"format": "byte"
}
],
"tags": [
"SwapClient"
]
}
},
2019-09-05 03:48:48 +00:00
"/v1/loop/in/quote/{amt}": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `quote`\nGetQuote returns a quote for a swap with the provided parameters.",
"operationId": "SwapClient_GetLoopInQuote",
2019-09-05 03:48:48 +00:00
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
2019-09-05 03:48:48 +00:00
"schema": {
2020-07-14 13:20:37 +00:00
"$ref": "#/definitions/looprpcInQuoteResponse"
2019-09-05 03:48:48 +00:00
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
2019-09-05 03:48:48 +00:00
}
},
"parameters": [
{
"name": "amt",
2020-11-06 09:42:59 +00:00
"description": "The amount to swap in satoshis.",
2019-09-05 03:48:48 +00:00
"in": "path",
"required": true,
"type": "string",
"format": "int64"
},
{
"name": "conf_target",
2020-11-06 09:42:59 +00:00
"description": "The confirmation target that should be used either for the sweep of the\non-chain HTLC broadcast by the swap server in the case of a Loop Out, or for\nthe confirmation of the on-chain HTLC broadcast by the swap client in the\ncase of a Loop In.",
2019-09-05 03:48:48 +00:00
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "external_htlc",
2020-11-06 09:42:59 +00:00
"description": "If external_htlc is true, we expect the htlc to be published by an external\nactor.",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "swap_publication_deadline",
2020-11-06 09:42:59 +00:00
"description": "The latest time (in unix seconds) we allow the server to wait before\npublishing the HTLC on chain. Setting this to a larger value will give the\nserver the opportunity to batch multiple swaps together, and wait for\nlow-fee periods before publishing the HTLC, potentially resulting in a\nlower total swap fee. This only has an effect on loop out quotes.",
"in": "query",
"required": false,
"type": "string",
"format": "uint64"
2021-05-10 14:55:53 +00:00
},
{
"name": "loop_in_last_hop",
"description": "Optionally the client can specify the last hop pubkey when requesting a\nloop-in quote. This is useful to get better off-chain routing fee from the\nserver.",
"in": "query",
"required": false,
"type": "string",
"format": "byte"
},
{
"name": "private",
"description": "Private indicates whether the destination node should be considered\nprivate. In which case, loop will generate hophints to assist with\nprobing and payment.",
"in": "query",
"required": false,
"type": "boolean"
2019-09-05 03:48:48 +00:00
}
],
"tags": [
"SwapClient"
]
}
},
"/v1/loop/in/terms": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `terms`\nGetTerms returns the terms that the server enforces for swaps.",
"operationId": "SwapClient_GetLoopInTerms",
2019-09-05 03:48:48 +00:00
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
2019-09-05 03:48:48 +00:00
"schema": {
2020-07-14 13:13:55 +00:00
"$ref": "#/definitions/looprpcInTermsResponse"
2019-09-05 03:48:48 +00:00
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
2019-09-05 03:48:48 +00:00
}
},
"tags": [
"SwapClient"
]
}
},
"/v1/loop/info": {
"get": {
"summary": "loop: `getinfo`\nGetInfo gets basic information about the loop daemon.",
"operationId": "SwapClient_GetInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcGetInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"SwapClient"
]
}
},
"/v1/loop/out": {
"post": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `out`\nLoopOut initiates an loop out swap with the given parameters. The call\nreturns after the swap has been set up with the swap server. From that\npoint onwards, progress can be tracked via the SwapStatus stream that is\nreturned from Monitor().",
"operationId": "SwapClient_LoopOut",
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcSwapResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/looprpcLoopOutRequest"
}
}
],
"tags": [
"SwapClient"
]
}
},
"/v1/loop/out/quote/{amt}": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `quote`\nLoopOutQuote returns a quote for a loop out swap with the provided\nparameters.",
"operationId": "SwapClient_LoopOutQuote",
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
"schema": {
2020-07-14 13:20:37 +00:00
"$ref": "#/definitions/looprpcOutQuoteResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "amt",
2020-11-06 09:42:59 +00:00
"description": "The amount to swap in satoshis.",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
},
{
"name": "conf_target",
2020-11-06 09:42:59 +00:00
"description": "The confirmation target that should be used either for the sweep of the\non-chain HTLC broadcast by the swap server in the case of a Loop Out, or for\nthe confirmation of the on-chain HTLC broadcast by the swap client in the\ncase of a Loop In.",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "external_htlc",
2020-11-06 09:42:59 +00:00
"description": "If external_htlc is true, we expect the htlc to be published by an external\nactor.",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "swap_publication_deadline",
2020-11-06 09:42:59 +00:00
"description": "The latest time (in unix seconds) we allow the server to wait before\npublishing the HTLC on chain. Setting this to a larger value will give the\nserver the opportunity to batch multiple swaps together, and wait for\nlow-fee periods before publishing the HTLC, potentially resulting in a\nlower total swap fee. This only has an effect on loop out quotes.",
"in": "query",
"required": false,
"type": "string",
"format": "uint64"
2021-05-10 14:55:53 +00:00
},
{
"name": "loop_in_last_hop",
"description": "Optionally the client can specify the last hop pubkey when requesting a\nloop-in quote. This is useful to get better off-chain routing fee from the\nserver.",
"in": "query",
"required": false,
"type": "string",
"format": "byte"
},
{
"name": "private",
"description": "Private indicates whether the destination node should be considered\nprivate. In which case, loop will generate hophints to assist with\nprobing and payment.",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"SwapClient"
]
}
},
"/v1/loop/out/terms": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `terms`\nLoopOutTerms returns the terms that the server enforces for a loop out swap.",
"operationId": "SwapClient_LoopOutTerms",
"responses": {
"200": {
2019-11-15 12:57:03 +00:00
"description": "A successful response.",
"schema": {
2020-07-14 13:13:55 +00:00
"$ref": "#/definitions/looprpcOutTermsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"SwapClient"
]
}
2019-11-15 12:57:03 +00:00
},
"/v1/loop/swap/{id}": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `swapinfo`\nSwapInfo returns all known details about a single swap.",
"operationId": "SwapClient_SwapInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcSwapStatus"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
2020-11-06 09:42:59 +00:00
"description": "The swap identifier which currently is the hash that locks the HTLCs. When\nusing REST, this field must be encoded as URL safe base64.",
"in": "path",
"required": true,
"type": "string",
"format": "byte"
}
],
"tags": [
"SwapClient"
]
}
},
"/v1/loop/swaps": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `listswaps`\nListSwaps returns a list of all currently known swaps and their current\nstatus.",
"operationId": "SwapClient_ListSwaps",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcListSwapsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"SwapClient"
]
}
},
2019-11-15 12:57:03 +00:00
"/v1/lsat/tokens": {
"get": {
2020-11-06 09:42:59 +00:00
"summary": "loop: `listauth`\nGetLsatTokens returns all LSAT tokens the daemon ever paid for.",
"operationId": "SwapClient_GetLsatTokens",
2019-11-15 12:57:03 +00:00
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/looprpcTokensResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
2019-11-15 12:57:03 +00:00
}
},
"tags": [
"SwapClient"
]
}
}
},
"definitions": {
"looprpcAutoReason": {
"type": "string",
"enum": [
"AUTO_REASON_UNKNOWN",
"AUTO_REASON_BUDGET_NOT_STARTED",
"AUTO_REASON_SWEEP_FEES",
"AUTO_REASON_BUDGET_ELAPSED",
"AUTO_REASON_IN_FLIGHT",
"AUTO_REASON_SWAP_FEE",
"AUTO_REASON_MINER_FEE",
"AUTO_REASON_PREPAY",
"AUTO_REASON_FAILURE_BACKOFF",
"AUTO_REASON_LOOP_OUT",
"AUTO_REASON_LOOP_IN",
"AUTO_REASON_LIQUIDITY_OK",
"AUTO_REASON_BUDGET_INSUFFICIENT",
"AUTO_REASON_FEE_INSUFFICIENT"
],
"default": "AUTO_REASON_UNKNOWN",
"description": " - AUTO_REASON_BUDGET_NOT_STARTED: Budget not started indicates that we do not recommend any swaps because\nthe start time for our budget has not arrived yet.\n - AUTO_REASON_SWEEP_FEES: Sweep fees indicates that the estimated fees to sweep swaps are too high\nright now.\n - AUTO_REASON_BUDGET_ELAPSED: Budget elapsed indicates that the autoloop budget for the period has been\nelapsed.\n - AUTO_REASON_IN_FLIGHT: In flight indicates that the limit on in-flight automatically dispatched\nswaps has already been reached.\n - AUTO_REASON_SWAP_FEE: Swap fee indicates that the server fee for a specific swap is too high.\n - AUTO_REASON_MINER_FEE: Miner fee indicates that the miner fee for a specific swap is to high.\n - AUTO_REASON_PREPAY: Prepay indicates that the prepay fee for a specific swap is too high.\n - AUTO_REASON_FAILURE_BACKOFF: Failure backoff indicates that a swap has recently failed for this target,\nand the backoff period has not yet passed.\n - AUTO_REASON_LOOP_OUT: Loop out indicates that a loop out swap is currently utilizing the channel,\nso it is not eligible.\n - AUTO_REASON_LOOP_IN: Loop In indicates that a loop in swap is currently in flight for the peer,\nso it is not eligible.\n - AUTO_REASON_LIQUIDITY_OK: Liquidity ok indicates that a target meets the liquidity balance expressed\nin its rule, so no swap is needed.\n - AUTO_REASON_BUDGET_INSUFFICIENT: Budget insufficient indicates that we cannot perform a swap because we do\nnot have enough pending budget available. This differs from budget elapsed,\nbecause we still have some budget available, but we have allocated it to\nother swaps.\n - AUTO_REASON_FEE_INSUFFICIENT: Fee insufficient indicates that the fee estimate for a swap is higher than\nthe portion of total swap amount that we allow fees to consume."
},
"looprpcDisqualified": {
"type": "object",
"properties": {
"channel_id": {
"type": "string",
"format": "uint64",
"description": "The short channel ID of the channel that was excluded from our suggestions."
},
2021-02-16 11:31:51 +00:00
"pubkey": {
"type": "string",
"format": "byte",
"description": "The public key of the peer that was excluded from our suggestions."
},
"reason": {
"$ref": "#/definitions/looprpcAutoReason",
"description": "The reason that we excluded the channel from the our suggestions."
}
}
},
"looprpcFailureReason": {
"type": "string",
"enum": [
"FAILURE_REASON_NONE",
"FAILURE_REASON_OFFCHAIN",
"FAILURE_REASON_TIMEOUT",
"FAILURE_REASON_SWEEP_TIMEOUT",
"FAILURE_REASON_INSUFFICIENT_VALUE",
"FAILURE_REASON_TEMPORARY",
"FAILURE_REASON_INCORRECT_AMOUNT"
],
"default": "FAILURE_REASON_NONE",
"description": " - FAILURE_REASON_NONE: FAILURE_REASON_NONE is set when the swap did not fail, it is either in\nprogress or succeeded.\n - FAILURE_REASON_OFFCHAIN: FAILURE_REASON_OFFCHAIN indicates that a loop out failed because it wasn't\npossible to find a route for one or both off chain payments that met the fee\nand timelock limits required.\n - FAILURE_REASON_TIMEOUT: FAILURE_REASON_TIMEOUT indicates that the swap failed because on chain htlc\ndid not confirm before its expiry, or it confirmed too late for us to reveal\nour preimage and claim.\n - FAILURE_REASON_SWEEP_TIMEOUT: FAILURE_REASON_SWEEP_TIMEOUT indicates that a loop out permanently failed\nbecause the on chain htlc wasn't swept before the server revoked the\nhtlc.\n - FAILURE_REASON_INSUFFICIENT_VALUE: FAILURE_REASON_INSUFFICIENT_VALUE indicates that a loop out has failed\nbecause the on chain htlc had a lower value than requested.\n - FAILURE_REASON_TEMPORARY: FAILURE_REASON_TEMPORARY indicates that a swap cannot continue due to an\ninternal error. Manual intervention such as a restart is required.\n - FAILURE_REASON_INCORRECT_AMOUNT: FAILURE_REASON_INCORRECT_AMOUNT indicates that a loop in permanently failed\nbecause the amount extended by an external loop in htlc is insufficient."
},
"looprpcGetInfoResponse": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The current daemon version."
},
"network": {
"type": "string",
"description": "The network the daemon is running on."
},
"rpc_listen": {
"type": "string",
"description": "Host and port of the loopd grpc server."
},
"rest_listen": {
"type": "string",
"description": "Host and port of the loopd rest server."
},
"macaroon_path": {
"type": "string",
"description": "Loop's macaroon path that clients use to talk to the daemon."
},
"tls_cert_path": {
"type": "string",
"title": "Loop's tls cert path"
},
"loop_out_stats": {
"$ref": "#/definitions/looprpcLoopStats",
"description": "Statistics about loop outs."
},
"loop_in_stats": {
"$ref": "#/definitions/looprpcLoopStats",
"description": "Statistics about loop ins."
}
}
},
2021-05-10 14:55:53 +00:00
"looprpcHopHint": {
"type": "object",
"properties": {
"node_id": {
"type": "string",
"description": "The public key of the node at the start of the channel."
},
"chan_id": {
"type": "string",
"format": "uint64",
"description": "The unique identifier of the channel."
},
"fee_base_msat": {
"type": "integer",
"format": "int64",
"description": "The base fee of the channel denominated in millisatoshis."
},
"fee_proportional_millionths": {
"type": "integer",
"format": "int64",
"description": "The fee rate of the channel for sending one satoshi across it denominated in\nmillionths of a satoshi."
},
"cltv_expiry_delta": {
"type": "integer",
"format": "int64",
"description": "The time-lock delta of the channel."
}
}
},
2020-07-14 13:20:37 +00:00
"looprpcInQuoteResponse": {
"type": "object",
"properties": {
"swap_fee_sat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The fee that the swap server is charging for the swap."
2020-07-14 13:20:37 +00:00
},
"htlc_publish_fee_sat": {
"type": "string",
"format": "int64",
"description": "An estimate of the on-chain fee that needs to be paid to publish the HTLC\nIf a miner fee of 0 is returned, it means the external_htlc flag was set for\na loop in and the fee estimation was skipped. If a miner fee of -1 is\nreturned, it means lnd's wallet tried to estimate the fee but was unable to\ncreate a sample estimation transaction because not enough funds are\navailable. An information message should be shown to the user in this case."
},
"cltv_delta": {
"type": "integer",
"format": "int32",
2020-11-06 09:42:59 +00:00
"title": "On-chain cltv expiry delta"
},
"conf_target": {
"type": "integer",
"format": "int32",
"description": "The confirmation target to be used to publish the on-chain HTLC."
2020-07-14 13:20:37 +00:00
}
}
},
2020-07-14 13:13:55 +00:00
"looprpcInTermsResponse": {
"type": "object",
"properties": {
"min_swap_amount": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"title": "Minimum swap amount (sat)"
2020-07-14 13:13:55 +00:00
},
"max_swap_amount": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"title": "Maximum swap amount (sat)"
2020-07-14 13:13:55 +00:00
}
}
},
"looprpcLiquidityParameters": {
"type": "object",
"properties": {
"rules": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcLiquidityRule"
},
"description": "A set of liquidity rules that describe the desired liquidity balance."
},
2021-03-02 12:42:04 +00:00
"fee_ppm": {
"type": "string",
"format": "uint64",
"description": "The parts per million of swap amount that is allowed to be allocated to swap\nfees. This value is applied across swap categories and may not be set in\nconjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay\nrouting, max prepay and max miner fee."
2021-03-02 12:42:04 +00:00
},
"sweep_fee_rate_sat_per_vbyte": {
"type": "string",
"format": "uint64",
"description": "The limit we place on our estimated sweep cost for a swap in sat/vByte. If\nthe estimated fee for our sweep transaction within the specified\nconfirmation target is above this value, we will not suggest any swaps."
},
"max_swap_fee_ppm": {
"type": "string",
"format": "uint64",
"description": "The maximum fee paid to the server for facilitating the swap, expressed\nas parts per million of the swap volume."
},
"max_routing_fee_ppm": {
"type": "string",
"format": "uint64",
"description": "The maximum fee paid to route the swap invoice off chain, expressed as\nparts per million of the volume being routed."
},
"max_prepay_routing_fee_ppm": {
"type": "string",
"format": "uint64",
"description": "The maximum fee paid to route the prepay invoice off chain, expressed as\nparts per million of the volume being routed."
},
"max_prepay_sat": {
"type": "string",
"format": "uint64",
"description": "The maximum no-show penalty in satoshis paid for a swap."
},
"max_miner_fee_sat": {
"type": "string",
"format": "uint64",
"description": "The maximum miner fee we will pay to sweep the swap on chain. Note that we\nwill not suggest a swap if the estimate is above the sweep limit set by\nthese parameters, and we use the current fee estimate to sweep on chain so\nthis value is only a cap placed on the amount we spend on fees in the case\nwhere the swap needs to be claimed on chain, but fees have suddenly spiked."
},
"sweep_conf_target": {
"type": "integer",
"format": "int32",
"description": "The number of blocks from the on-chain HTLC's confirmation height that it\nshould be swept within."
},
"failure_backoff_sec": {
"type": "string",
"format": "uint64",
"description": "The amount of time we require pass since a channel was part of a failed\nswap due to off chain payment failure until it will be considered for swap\nsuggestions again, expressed in seconds."
},
"autoloop": {
"type": "boolean",
"description": "Set to true to enable automatic dispatch of swaps. All swaps will be limited\nto the fee categories set by these parameters, and total expenditure will\nbe limited to the autoloop budget."
},
"autoloop_budget_sat": {
"type": "string",
"format": "uint64",
"description": "The total budget for automatically dispatched swaps since the budget start\ntime, expressed in satoshis."
},
"autoloop_budget_start_sec": {
"type": "string",
"format": "uint64",
"description": "Deprecated, use autoloop_budget_refresh_period_sec. The start time for\nautoloop budget, expressed as a unix timestamp in seconds. If this value is\n0, the budget will be applied for all automatically dispatched swaps. Swaps\nthat were completed before this date will not be included in budget\ncalculations."
},
"auto_max_in_flight": {
"type": "string",
"format": "uint64",
"description": "The maximum number of automatically dispatched swaps that we allow to be in\nflight at any point in time."
},
"min_swap_amount": {
"type": "string",
"format": "uint64",
"description": "The minimum amount, expressed in satoshis, that the autoloop client will\ndispatch a swap for. This value is subject to the server-side limits\nspecified by the LoopOutTerms endpoint."
},
"max_swap_amount": {
"type": "string",
"format": "uint64",
"description": "The maximum amount, expressed in satoshis, that the autoloop client will\ndispatch a swap for. This value is subject to the server-side limits\nspecified by the LoopOutTerms endpoint."
},
"htlc_conf_target": {
"type": "integer",
"format": "int32",
"description": "The confirmation target for loop in on-chain htlcs."
2022-12-07 13:19:11 +00:00
},
"autoloop_dest_address": {
"type": "string",
"description": "The destination address to use for autoloop loop outs. Set to \"default\" in\norder to revert to default behavior."
2023-02-08 20:26:20 +00:00
},
"autoloop_budget_refresh_period_sec": {
"type": "string",
"format": "uint64",
"description": "The period over which the autoloop budget is refreshed, expressed in\nseconds."
},
"autoloop_budget_last_refresh": {
"type": "string",
"format": "uint64",
"description": "The time at which the autoloop budget was last refreshed, expressed as a\nUNIX timestamp in seconds."
},
"easy_autoloop": {
"type": "boolean",
"description": "Set to true to enable easy autoloop. If set, all channel/peer rules will be\noverridden and the client will automatically dispatch swaps in order to meet\nthe configured local balance target size. Currently only loop out is\nsupported, meaning that easy autoloop can only reduce the funds that are\nheld as balance in channels."
},
"easy_autoloop_local_target_sat": {
"type": "string",
"format": "uint64",
"description": "The local balance target size, expressed in satoshis. This is used by easy\nautoloop to determine how much liquidity should be maintained in channels."
}
}
},
"looprpcLiquidityRule": {
"type": "object",
"properties": {
"channel_id": {
"type": "string",
"format": "uint64",
2021-02-16 11:31:51 +00:00
"description": "The short channel ID of the channel that this rule should be applied to.\nThis field may not be set when the pubkey field is set."
},
2021-11-30 11:18:28 +00:00
"swap_type": {
"$ref": "#/definitions/looprpcSwapType",
"description": "The type of swap that will be dispatched for this rule."
},
2021-02-16 11:31:51 +00:00
"pubkey": {
"type": "string",
"format": "byte",
"description": "The public key of the peer that this rule should be applied to. This field\nmay not be set when the channel id field is set."
},
"type": {
"$ref": "#/definitions/looprpcLiquidityRuleType",
"description": "Type indicates the type of rule that this message rule represents. Setting\nthis value will determine which fields are used in the message. The comments\non each field in this message will be prefixed with the LiquidityRuleType\nthey belong to."
},
"incoming_threshold": {
"type": "integer",
"format": "int64",
"description": "THRESHOLD: The percentage of total capacity that incoming capacity should\nnot drop beneath."
},
"outgoing_threshold": {
"type": "integer",
"format": "int64",
"description": "THRESHOLD: The percentage of total capacity that outgoing capacity should\nnot drop beneath."
}
}
},
"looprpcLiquidityRuleType": {
"type": "string",
"enum": [
"UNKNOWN",
"THRESHOLD"
],
"default": "UNKNOWN"
},
"looprpcListSwapsResponse": {
"type": "object",
"properties": {
"swaps": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcSwapStatus"
},
2020-11-06 09:42:59 +00:00
"description": "The list of all currently known swaps and their status."
}
}
},
2019-09-05 03:48:48 +00:00
"looprpcLoopInRequest": {
"type": "object",
"properties": {
"amt": {
"type": "string",
"format": "int64",
"description": "Requested swap amount in sat. This does not include the swap and miner\nfee."
2019-09-05 03:48:48 +00:00
},
"max_swap_fee": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Maximum we are willing to pay the server for the swap. This value is not\ndisclosed in the swap initiation call, but if the server asks for a\nhigher fee, we abort the swap. Typically this value is taken from the\nresponse of the GetQuote call."
2019-09-05 03:48:48 +00:00
},
"max_miner_fee": {
"type": "string",
"format": "int64",
"description": "Maximum in on-chain fees that we are willing to spend. If we want to\npublish the on-chain htlc and the fee estimate turns out higher than this\nvalue, we cancel the swap.\n\nmax_miner_fee is typically taken from the response of the GetQuote call."
2019-09-05 03:48:48 +00:00
},
"last_hop": {
2019-09-05 03:48:48 +00:00
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "The last hop to use for the loop in swap. If empty, the last hop is selected\nbased on the lowest routing fee for the swap payment from the server."
2019-09-05 03:48:48 +00:00
},
"external_htlc": {
"type": "boolean",
2020-11-06 09:42:59 +00:00
"description": "If external_htlc is true, we expect the htlc to be published by an external\nactor."
},
"htlc_conf_target": {
"type": "integer",
"format": "int32",
2020-11-06 09:42:59 +00:00
"description": "The number of blocks that the on chain htlc should confirm within."
},
"label": {
"type": "string",
"description": "An optional label for this swap. This field is limited to 500 characters\nand may not be one of the reserved values in loop/labels Reserved list."
},
"initiator": {
"type": "string",
"description": "An optional identification string that will be appended to the user agent\nstring sent to the server to give information about the usage of loop. This\ninitiator part is meant for user interfaces to add their name to give the\nfull picture of the binary used (loopd, LiT) and the method used for\ntriggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI)."
},
"route_hints": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcRouteHint"
},
"description": "Optional route hints to reach the destination through private channels."
},
"private": {
"type": "boolean",
"description": "Private indicates whether the destination node should be considered\nprivate. In which case, loop will generate hophints to assist with\nprobing and payment."
2019-09-05 03:48:48 +00:00
}
}
},
"looprpcLoopOutRequest": {
"type": "object",
"properties": {
"amt": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Requested swap amount in sat. This does not include the swap and miner fee."
},
"dest": {
"type": "string",
2020-11-06 09:42:59 +00:00
"description": "Base58 encoded destination address for the swap."
},
"max_swap_routing_fee": {
"type": "string",
"format": "int64",
"description": "Maximum off-chain fee in sat that may be paid for swap payment to the\nserver. This limit is applied during path finding. Typically this value is\ntaken from the response of the GetQuote call."
},
"max_prepay_routing_fee": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Maximum off-chain fee in sat that may be paid for the prepay to the server.\nThis limit is applied during path finding. Typically this value is taken\nfrom the response of the GetQuote call."
},
"max_swap_fee": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Maximum we are willing to pay the server for the swap. This value is not\ndisclosed in the swap initiation call, but if the server asks for a\nhigher fee, we abort the swap. Typically this value is taken from the\nresponse of the GetQuote call. It includes the prepay amount."
},
"max_prepay_amt": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Maximum amount of the swap fee that may be charged as a prepayment."
},
"max_miner_fee": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Maximum in on-chain fees that we are willing to spend. If we want to\nsweep the on-chain htlc and the fee estimate turns out higher than this\nvalue, we cancel the swap. If the fee estimate is lower, we publish the\nsweep tx.\n\nIf the sweep tx is not confirmed, we are forced to ratchet up fees until it\nis swept. Possibly even exceeding max_miner_fee if we get close to the htlc\ntimeout. Because the initial publication revealed the preimage, we have no\nother choice. The server may already have pulled the off-chain htlc. Only\nwhen the fee becomes higher than the swap amount, we can only wait for fees\nto come down and hope - if we are past the timeout - that the server is not\npublishing the revocation.\n\nmax_miner_fee is typically taken from the response of the GetQuote call."
},
"loop_out_channel": {
"type": "string",
"format": "uint64",
2020-11-06 09:42:59 +00:00
"description": "Deprecated, use outgoing_chan_set. The channel to loop out, the channel\nto loop out is selected based on the lowest routing fee for the swap\npayment to the server."
},
"outgoing_chan_set": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
2020-11-06 09:42:59 +00:00
"description": "A restriction on the channel set that may be used to loop out. The actual\nchannel(s) that will be used are selected based on the lowest routing fee\nfor the swap payment to the server."
},
"sweep_conf_target": {
"type": "integer",
"format": "int32",
2020-11-06 09:42:59 +00:00
"description": "The number of blocks from the on-chain HTLC's confirmation height that it\nshould be swept within."
},
"htlc_confirmations": {
"type": "integer",
"format": "int32",
"description": "The number of confirmations that we require for the on chain htlc that will\nbe published by the server before we reveal the preimage."
},
"swap_publication_deadline": {
"type": "string",
"format": "uint64",
2020-11-06 09:42:59 +00:00
"description": "The latest time (in unix seconds) we allow the server to wait before\npublishing the HTLC on chain. Setting this to a larger value will give the\nserver the opportunity to batch multiple swaps together, and wait for\nlow-fee periods before publishing the HTLC, potentially resulting in a\nlower total swap fee."
},
"label": {
"type": "string",
"description": "An optional label for this swap. This field is limited to 500 characters\nand may not start with the prefix [reserved], which is used to tag labels\nproduced by the daemon."
},
"initiator": {
"type": "string",
"description": "An optional identification string that will be appended to the user agent\nstring sent to the server to give information about the usage of loop. This\ninitiator part is meant for user interfaces to add their name to give the\nfull picture of the binary used (loopd, LiT) and the method used for\ntriggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI)."
}
}
},
"looprpcLoopStats": {
"type": "object",
"properties": {
"pending_count": {
"type": "string",
"format": "uint64",
"description": "Number of currently pending swaps."
},
"success_count": {
"type": "string",
"format": "uint64",
"description": "Number of succeeded swaps."
},
"fail_count": {
"type": "string",
"format": "uint64",
"description": "Number failed swaps."
},
"sum_pending_amt": {
"type": "string",
"format": "int64",
"description": "The sum of all pending swap amounts."
},
"sum_succeeded_amt": {
"type": "string",
"format": "int64",
"description": "The sum of all succeeded swap amounts."
}
}
},
2019-11-15 12:57:03 +00:00
"looprpcLsatToken": {
"type": "object",
"properties": {
"base_macaroon": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "The base macaroon that was baked by the auth server."
2019-11-15 12:57:03 +00:00
},
"payment_hash": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "The payment hash of the payment that was paid to obtain the token."
2019-11-15 12:57:03 +00:00
},
"payment_preimage": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "The preimage of the payment hash, knowledge of this is proof that the\npayment has been paid. If the preimage is set to all zeros, this means the\npayment is still pending and the token is not yet fully valid."
2019-11-15 12:57:03 +00:00
},
"amount_paid_msat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The amount of millisatoshis that was paid to get the token."
2019-11-15 12:57:03 +00:00
},
"routing_fee_paid_msat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The amount of millisatoshis paid in routing fee to pay for the token."
2019-11-15 12:57:03 +00:00
},
"time_created": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The creation time of the token as UNIX timestamp in seconds."
2019-11-15 12:57:03 +00:00
},
"expired": {
"type": "boolean",
2020-11-06 09:42:59 +00:00
"description": "Indicates whether the token is expired or still valid."
2019-11-15 12:57:03 +00:00
},
"storage_name": {
"type": "string",
2020-11-06 09:42:59 +00:00
"description": "Identifying attribute of this token in the store. Currently represents the\nfile name of the token where it's stored on the file system."
2019-11-15 12:57:03 +00:00
}
}
},
2020-07-14 13:20:37 +00:00
"looprpcOutQuoteResponse": {
"type": "object",
"properties": {
2020-07-14 13:20:37 +00:00
"swap_fee_sat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The fee that the swap server is charging for the swap."
},
2020-07-14 13:20:37 +00:00
"prepay_amt_sat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "The part of the swap fee that is requested as a prepayment."
},
2020-07-14 13:20:37 +00:00
"htlc_sweep_fee_sat": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "An estimate of the on-chain fee that needs to be paid to sweep the HTLC for\na loop out."
},
"swap_payment_dest": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "The node pubkey where the swap payment needs to be paid\nto. This can be used to test connectivity before initiating the swap."
},
"cltv_delta": {
"type": "integer",
"format": "int32",
2020-11-06 09:42:59 +00:00
"title": "On-chain cltv expiry delta"
},
"conf_target": {
"type": "integer",
"format": "int32",
"description": "The confirmation target to be used for the sweep of the on-chain HTLC."
}
}
},
2020-07-14 13:20:37 +00:00
"looprpcOutTermsResponse": {
"type": "object",
"properties": {
"min_swap_amount": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"title": "Minimum swap amount (sat)"
2020-07-14 13:20:37 +00:00
},
"max_swap_amount": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"title": "Maximum swap amount (sat)"
2020-07-15 11:00:27 +00:00
},
"min_cltv_delta": {
"type": "integer",
"format": "int32",
"description": "The minimally accepted cltv delta of the on-chain htlc."
},
"max_cltv_delta": {
"type": "integer",
"format": "int32",
"description": "The maximally accepted cltv delta of the on-chain htlc."
2020-07-14 13:20:37 +00:00
}
}
},
2021-05-10 14:55:53 +00:00
"looprpcProbeResponse": {
"type": "object"
},
"looprpcRouteHint": {
"type": "object",
"properties": {
"hop_hints": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcHopHint"
},
"description": "A list of hop hints that when chained together can assist in reaching a\nspecific destination."
}
}
},
"looprpcSetLiquidityParamsRequest": {
"type": "object",
"properties": {
"parameters": {
"$ref": "#/definitions/looprpcLiquidityParameters",
"description": "Parameters is the desired new set of parameters for the liquidity management\nsubsystem. Note that the current set of parameters will be completely\noverwritten by the parameters provided (if they are valid), so the full set\nof parameters should be provided for each call."
}
}
},
"looprpcSetLiquidityParamsResponse": {
"type": "object"
},
2020-09-03 08:36:44 +00:00
"looprpcSuggestSwapsResponse": {
"type": "object",
"properties": {
"loop_out": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcLoopOutRequest"
},
"description": "The set of recommended loop outs."
},
"loop_in": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcLoopInRequest"
},
"title": "The set of recommended loop in swaps"
},
"disqualified": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcDisqualified"
},
"description": "Disqualified contains the set of channels that swaps are not recommended\nfor."
2020-09-03 08:36:44 +00:00
}
}
},
"looprpcSwapResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
2020-11-06 09:42:59 +00:00
"description": "Swap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs.\nDEPRECATED: To make the API more consistent, this field is deprecated in\nfavor of id_bytes and will be removed in a future release."
2020-01-31 12:57:28 +00:00
},
"id_bytes": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "Swap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs."
},
"htlc_address": {
"type": "string",
"description": "DEPRECATED. This field stores the address of the onchain htlc, but\ndepending on the request, the semantics are different.\n- For internal loop-in htlc_address contains the address of the\nnative segwit (P2WSH) htlc.\n/ - For loop-out htlc_address always contains the native segwit (P2WSH)\nhtlc address."
},
"htlc_address_p2wsh": {
"type": "string",
2020-11-06 09:42:59 +00:00
"description": "The native segwit address of the on-chain htlc.\nUsed for both loop-in and loop-out."
},
"htlc_address_p2tr": {
"type": "string",
"description": "The address of the v3 (taproot) htlc. Used for both loop-in and loop-out."
},
"server_message": {
"type": "string",
"description": "A human-readable message received from the loop server."
}
}
},
"looprpcSwapState": {
"type": "string",
"enum": [
"INITIATED",
"PREIMAGE_REVEALED",
2019-03-12 15:10:37 +00:00
"HTLC_PUBLISHED",
"SUCCESS",
"FAILED",
"INVOICE_SETTLED"
],
"default": "INITIATED",
2020-11-06 09:42:59 +00:00
"description": " - INITIATED: INITIATED is the initial state of a swap. At that point, the initiation\ncall to the server has been made and the payment process has been started\nfor the swap and prepayment invoices.\n - PREIMAGE_REVEALED: PREIMAGE_REVEALED is reached when the sweep tx publication is first\nattempted. From that point on, we should consider the preimage to no\nlonger be secret and we need to do all we can to get the sweep confirmed.\nThis state will mostly coalesce with StateHtlcConfirmed, except in the\ncase where we wait for fees to come down before we sweep.\n - HTLC_PUBLISHED: HTLC_PUBLISHED is reached when the htlc tx has been published in a loop in\nswap.\n - SUCCESS: SUCCESS is the final swap state that is reached when the sweep tx has\nthe required confirmation depth.\n - FAILED: FAILED is the final swap state for a failed swap with or without loss of\nthe swap amount.\n - INVOICE_SETTLED: INVOICE_SETTLED is reached when the swap invoice in a loop in swap has been\npaid, but we are still waiting for the htlc spend to confirm."
},
"looprpcSwapStatus": {
"type": "object",
"properties": {
"amt": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Requested swap amount in sat. This does not include the swap and miner\nfee."
},
"id": {
"type": "string",
2020-11-06 09:42:59 +00:00
"description": "Swap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs.\nDEPRECATED: To make the API more consistent, this field is deprecated in\nfavor of id_bytes and will be removed in a future release."
2020-01-31 12:57:28 +00:00
},
"id_bytes": {
"type": "string",
"format": "byte",
2020-11-06 09:42:59 +00:00
"description": "Swap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs."
},
"type": {
"$ref": "#/definitions/looprpcSwapType",
2020-11-06 09:42:59 +00:00
"description": "The type of the swap."
},
"state": {
"$ref": "#/definitions/looprpcSwapState",
2020-11-06 09:42:59 +00:00
"description": "State the swap is currently in, see State enum."
},
"failure_reason": {
"$ref": "#/definitions/looprpcFailureReason",
"description": "A failure reason for the swap, only set if the swap has failed."
},
"initiation_time": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Initiation time of the swap."
},
"last_update_time": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"description": "Initiation time of the swap."
},
"htlc_address": {
"type": "string",
"description": "DEPRECATED: This field stores the address of the onchain htlc.\n- For internal loop-in htlc_address contains the address of the\nnative segwit (P2WSH) htlc.\n- For loop-out htlc_address always contains the native segwit (P2WSH)\nhtlc address."
},
"htlc_address_p2wsh": {
"type": "string",
"description": "HTLC address (native segwit), used in loop-in and loop-out swaps."
},
"htlc_address_p2tr": {
"type": "string",
"description": "The address of the v3 (taproot) htlc. Used for both loop-in and loop-out."
},
"cost_server": {
"type": "string",
"format": "int64",
2020-11-06 09:42:59 +00:00
"title": "Swap server cost"
},
"cost_onchain": {
"type": "string",
"format": "int64",
"title": "On-chain transaction cost"
},
"cost_offchain": {
"type": "string",
"format": "int64",
"title": "Off-chain routing fees"
},
2022-05-30 16:01:17 +00:00
"last_hop": {
"type": "string",
"format": "byte",
"description": "Optional last hop if provided in the loop in request."
},
"outgoing_chan_set": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
"description": "Optional outgoing channel set if provided in the loop out request."
},
"label": {
"type": "string",
"description": "An optional label given to the swap on creation."
}
}
},
"looprpcSwapType": {
"type": "string",
"enum": [
2019-03-12 15:10:37 +00:00
"LOOP_OUT",
"LOOP_IN"
],
"default": "LOOP_OUT",
2019-03-12 15:10:37 +00:00
"title": "- LOOP_OUT: LOOP_OUT indicates an loop out swap (off-chain to on-chain)\n - LOOP_IN: LOOP_IN indicates a loop in swap (on-chain to off-chain)"
},
2019-11-15 12:57:03 +00:00
"looprpcTokensResponse": {
"type": "object",
"properties": {
"tokens": {
"type": "array",
"items": {
"$ref": "#/definitions/looprpcLsatToken"
},
2020-11-06 09:42:59 +00:00
"description": "List of all tokens the daemon knows of, including old/expired tokens."
2019-11-15 12:57:03 +00:00
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
2019-11-15 12:57:03 +00:00
}
}
}