Documentation ¶
Index ¶
- func AdrStringToOutscript(adr string) ([]byte, error)
- func CoinTypeFromAdr(adr string) uint32
- func CoinTypeFromBechAdr(adr string) (uint32, error)
- func RPCListen(rpcl *LitRPC, port uint16)
- type AddressArgs
- type AddressReply
- type AssignNicknameArgs
- type BalanceReply
- type ChanArgs
- type ChannelInfo
- type ChannelListReply
- type CoinArgs
- type CoinBalReply
- type ConInfo
- type ConnectArgs
- type DumpReply
- type FanArgs
- type FeeArgs
- type FeeReply
- type FundArgs
- type ListConnectionsReply
- type ListenArgs
- type ListeningPortsReply
- type LitRPC
- func (r *LitRPC) Address(args *AddressArgs, reply *AddressReply) error
- func (r *LitRPC) AssignNickname(args AssignNicknameArgs, reply *StatusReply) error
- func (r *LitRPC) Balance(args *NoArgs, reply *BalanceReply) error
- func (r *LitRPC) BreakChannel(args ChanArgs, reply *StatusReply) error
- func (r *LitRPC) ChannelList(args ChanArgs, reply *ChannelListReply) error
- func (r *LitRPC) CloseChannel(args ChanArgs, reply *StatusReply) error
- func (r *LitRPC) Connect(args ConnectArgs, reply *StatusReply) error
- func (r *LitRPC) DumpPrivs(args NoArgs, reply *DumpReply) error
- func (r *LitRPC) Fanout(args FanArgs, reply *TxidsReply) error
- func (r *LitRPC) FundChannel(args FundArgs, reply *StatusReply) error
- func (r *LitRPC) GetFee(args *FeeArgs, reply *FeeReply) error
- func (r *LitRPC) GetListeningPorts(args NoArgs, reply *ListeningPortsReply) error
- func (r *LitRPC) GetMessages(args NoArgs, reply *StatusReply) error
- func (r *LitRPC) ListConnections(args NoArgs, reply *ListConnectionsReply) error
- func (r *LitRPC) Listen(args ListenArgs, reply *ListeningPortsReply) error
- func (r *LitRPC) Push(args PushArgs, reply *PushReply) error
- func (r *LitRPC) Say(args SayArgs, reply *StatusReply) error
- func (r *LitRPC) Send(args SendArgs, reply *TxidsReply) error
- func (r *LitRPC) SetFee(args *SetFeeArgs, reply *FeeReply) error
- func (r *LitRPC) Stop(args NoArgs, reply *StatusReply) error
- func (r *LitRPC) Sweep(args SweepArgs, reply *TxidsReply) error
- func (r *LitRPC) TxoList(args *NoArgs, reply *TxoListReply) error
- type NoArgs
- type PrivInfo
- type PushArgs
- type PushReply
- type SayArgs
- type SendArgs
- type SetFeeArgs
- type StatusReply
- type SweepArgs
- type TxidsReply
- type TxoInfo
- type TxoListReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdrStringToOutscript ¶
AdrStringToOutscript converts an address string into an output script byte slice note that this ignores the prefix! Be careful not to mix networks. currently only works for testnet legacy addresses
func CoinTypeFromAdr ¶
Default to testnet for unknown / bad addrs.
func CoinTypeFromBechAdr ¶
Gives the cointype from an address string (if known)
Types ¶
type AddressArgs ¶
------------------------- address
type AddressReply ¶
type AssignNicknameArgs ¶
------------------------- name a connection
type BalanceReply ¶
type BalanceReply struct {
Balances []CoinBalReply
}
type ChannelInfo ¶
type ChannelListReply ¶
type ChannelListReply struct {
Channels []ChannelInfo
}
type CoinBalReply ¶
type CoinBalReply struct { CoinType uint32 SyncHeight int32 // height this wallet is synced to ChanTotal int64 // total balance in channels TxoTotal int64 // all utxos MatureWitty int64 // confirmed, spendable and witness FeeRate int64 // fee per byte }
------------------------- balance BalReply is the reply when the user asks about their balance.
type FundArgs ¶
type FundArgs struct { Peer uint32 // who to make the channel with CoinType uint32 // what coin to use Capacity int64 // later can be minimum capacity Roundup int64 // ignore for now; can be used to round-up capacity InitialSend int64 // Initial send of -1 means "ALL" }
------------------------- fund
type ListConnectionsReply ¶
type ListenArgs ¶
type ListenArgs struct {
Port string
}
type ListeningPortsReply ¶
type LitRPC ¶
func (*LitRPC) Address ¶
func (r *LitRPC) Address(args *AddressArgs, reply *AddressReply) error
func (*LitRPC) AssignNickname ¶
func (r *LitRPC) AssignNickname(args AssignNicknameArgs, reply *StatusReply) error
func (*LitRPC) BreakChannel ¶
func (r *LitRPC) BreakChannel(args ChanArgs, reply *StatusReply) error
------------------------- break
func (*LitRPC) ChannelList ¶
func (r *LitRPC) ChannelList(args ChanArgs, reply *ChannelListReply) error
ChannelList sends back a list of every (open?) channel with some info for each.
func (*LitRPC) CloseChannel ¶
func (r *LitRPC) CloseChannel(args ChanArgs, reply *StatusReply) error
reply with status string CloseChannel is a cooperative closing of a channel to a specified address.
func (*LitRPC) Connect ¶
func (r *LitRPC) Connect(args ConnectArgs, reply *StatusReply) error
func (*LitRPC) FundChannel ¶
func (r *LitRPC) FundChannel(args FundArgs, reply *StatusReply) error
func (*LitRPC) GetListeningPorts ¶
func (r *LitRPC) GetListeningPorts(args NoArgs, reply *ListeningPortsReply) error
func (*LitRPC) GetMessages ¶
func (r *LitRPC) GetMessages(args NoArgs, reply *StatusReply) error
------- receive chat
func (*LitRPC) ListConnections ¶
func (r *LitRPC) ListConnections(args NoArgs, reply *ListConnectionsReply) error
func (*LitRPC) Listen ¶
func (r *LitRPC) Listen(args ListenArgs, reply *ListeningPortsReply) error
type PrivInfo ¶
type PrivInfo struct { OutPoint string Amt int64 Height int32 Delay int32 CoinType string Witty bool PairKey string WIF string }
------------------------- dumpPriv
type StatusReply ¶
type StatusReply struct {
Status string
}
type TxidsReply ¶
type TxidsReply struct {
Txids []string
}
type TxoListReply ¶
type TxoListReply struct {
Txos []TxoInfo
}