Documentation
¶
Index ¶
- type Client
- 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) SendBTCByPSBT(ctx context.Context, psbt string) (string, error)
- func (c *Client) SendBTCByPSBTPreview(ctx context.Context, inputParams *types.TxInputParams) (*psbt.BuildResult, 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) SendBTCByPSBT ¶
接收OKX签名后的交易数据并广播
func (*Client) SendBTCByPSBTPreview ¶
func (c *Client) SendBTCByPSBTPreview(ctx context.Context, inputParams *types.TxInputParams) (*psbt.BuildResult, error)
转账交易-PSBT预览: 通过输入数据根据发起转账钱包地址的类型创建对应的PSBT交易数据, 这个数据将提交给外部okx插件钱包等进行签名.
Click to show internal directories.
Click to hide internal directories.