client

package
v0.0.0-...-6752b92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	PublicKey string
	Address   string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewWalletClient

func NewWalletClient(url string) *Client

func (*Client) GetSupportCoins

func (c *Client) GetSupportCoins(chain, network string) (bool, error)

func (*Client) GetWalletAddress

func (c *Client) GetWalletAddress(chain, network string) (*Address, error)

type SupportChainResponse

type SupportChainResponse struct {
	Support bool `json:"support"`
}

type WalletAddressResponse

type WalletAddressResponse struct {
	PublicKey string `json:"publicKey"`
	Address   string `json:"address"`
}

type WalletClient

type WalletClient interface {
	GetSupportCoins(chain, network string) (bool, error)
	GetWalletAddress(chain, network string) (*Address, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL