You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// JsonCloseOutput is a struct that represents the additional co-op close output
// information of asset channels.
typeJsonCloseOutputstruct {
BtcInternalKeystring`json:"btc_internal_key"`
AssetInternalKeystring`json:"asset_internal_key"`
ScriptKeysmap[string]string`json:"script_keys"`
}
// JsonHtlcBalance is a struct that represents the balance of a single asset
// HTLC.
typeJsonHtlcBalancestruct {
AssetIDstring`json:"asset_id"`
Amountuint64`json:"amount"`
}
// JsonHtlc is a struct that represents the asset information that can be
// transferred via an HTLC.
typeJsonHtlcstruct {
Balances []*JsonHtlcBalance`json:"balances"`
RfqIDstring`json:"rfq_id"`
}
), however, we could really use some examples of each of these in JSON format for people to easier understand and for people who don't even use golang.
The text was updated successfully, but these errors were encountered:
We have some structs that can be used with
json.Unmarshal
to decode custom channel data (taproot-assets/rfqmsg/custom_channel_data.go
Lines 1 to 73 in 4852be4
The text was updated successfully, but these errors were encountered: