Documentation
¶
Index ¶
- type Client
- func (c *Client) BroadcastRawTx(ctx context.Context, rawTx []byte) (string, error)
- func (c *Client) CreateTxUsePSBTv0(ctx context.Context, inputParams *types.TxInputParams) (string, error)
- func (c *Client) FinalizePSBT(ctx context.Context, signedPSBT string) ([]byte, error)
- func (c *Client) GetRawTx(ctx context.Context, txid string) ([]byte, error)
- func (c *Client) GetTx(ctx context.Context, txid string) (*types.Tx, error)
- func (c *Client) MsgTxToPSBTV0(ctx context.Context, tx *wire.MsgTx, inputParams *types.TxInputParams, ...) (*types.TxUnsignedPSBT, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(bitcoindrpcClient *bitcoindrpc.Client, mempoolapisClient *mempoolapis.Client, addressClient *address.Client) *Client
func (*Client) BroadcastRawTx ¶ added in v0.1.0
广播交易
func (*Client) CreateTxUsePSBTv0 ¶ added in v0.1.0
func (c *Client) CreateTxUsePSBTv0(ctx context.Context, inputParams *types.TxInputParams) (string, error)
转账交易-使用PSBTv0版本
func (*Client) FinalizePSBT ¶ added in v0.1.0
接收OKX签名后的交易数据并解析
func (*Client) MsgTxToPSBTV0 ¶ added in v0.1.0
func (c *Client) MsgTxToPSBTV0(ctx context.Context, tx *wire.MsgTx, inputParams *types.TxInputParams, utxos []*types.TxUTXO) (*types.TxUnsignedPSBT, error)
将交易 MsgTx 转为 PSBTv0 格式; 因为btcd还不支持v2, 暂时使用v0;
Click to show internal directories.
Click to hide internal directories.