Documentation ¶
Index ¶
- Constants
- Variables
- func GenBundle(items []paySchema.BundleItem, expiration int64) paySchema.Bundle
- type Client
- func (c *Client) Balance(tokenTag, accid string) (balance serverSchema.AccBalance, err error)
- func (c *Client) Balances(accid string) (balances serverSchema.AccBalances, err error)
- func (c *Client) BundleByHash(everHash string) (tx cacheSchema.TxResponse, bundle paySchema.BundleWithSigs, ...)
- func (c *Client) CursorTxs(startCursor uint64, tokenSymbol, action, withoutAction string) (txs serverSchema.Txs, err error)
- func (c *Client) CursorTxsByAcc(accid string, startCursor uint64, tokenSymbol, action, withoutAction string) (txs serverSchema.Txs, err error)
- func (c *Client) Fee(tokenTag string) (fee serverSchema.Fee, err error)
- func (c *Client) Fees() (fees serverSchema.Fees, err error)
- func (c *Client) GetInfo() (info serverSchema.Info, err error)
- func (c *Client) LimitIp() (isLimit bool, err error)
- func (c *Client) MintTx(chainHash string) (tx serverSchema.Tx, err error)
- func (c *Client) PendingTxs(everHash string) (txs serverSchema.PendingTxs, err error)
- func (c *Client) SetHeader(key, val string)
- func (c *Client) SubmitTx(tx paySchema.Transaction) (err error)
- func (c *Client) SubscribeTxs(fq schema.FilterQuery) *SubscribeTx
- func (c *Client) TxByHash(everHash string) (tx serverSchema.Tx, err error)
- func (c *Client) Txs(page int, orderBy, tokenSymbol string, action, withoutAction string) (txs serverSchema.Txs, err error)
- func (c *Client) TxsByAcc(accid string, page int, orderBy string, ...) (txs serverSchema.AccTxs, err error)
- type SDK
- func (s *SDK) Bundle(symbol string, to string, amount *big.Int, ...) (*paySchema.Transaction, error)
- func (s *SDK) GetSymbolToTag() map[string]string
- func (s *SDK) GetTokens() map[string]serverSchema.TokenInfo
- func (s *SDK) Sign(msg string) (string, error)
- func (s *SDK) SignBundleData(bundleTx paySchema.Bundle) (paySchema.BundleWithSigs, error)
- func (s *SDK) Transfer(symbol string, amount *big.Int, to, data string) (*paySchema.Transaction, error)
- func (s *SDK) Withdraw(symbol string, amount *big.Int, chainType, to string) (*paySchema.Transaction, error)
- type SubscribeTx
Constants ¶
View Source
const ( RSASignerType = "RSASigner" EccSignerType = "EccSigner" )
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Balance ¶
func (c *Client) Balance(tokenTag, accid string) (balance serverSchema.AccBalance, err error)
func (*Client) Balances ¶
func (c *Client) Balances(accid string) (balances serverSchema.AccBalances, err error)
func (*Client) BundleByHash ¶
func (c *Client) BundleByHash(everHash string) ( tx cacheSchema.TxResponse, bundle paySchema.BundleWithSigs, internalStatus cacheSchema.InternalStatus, err error)
func (*Client) CursorTxsByAcc ¶
func (*Client) MintTx ¶
func (c *Client) MintTx(chainHash string) (tx serverSchema.Tx, err error)
MintTx get minted everTx by onChain mint txHash
func (*Client) PendingTxs ¶
func (c *Client) PendingTxs(everHash string) (txs serverSchema.PendingTxs, err error)
PendingTxs get pending Txs everHash: means get from the everTx
func (*Client) SubscribeTxs ¶
func (c *Client) SubscribeTxs(fq schema.FilterQuery) *SubscribeTx
SubscribeTxs fq.StartCursor: option fq.Address: option fq.TokenSymbol: option fq.Action: option fq.WithoutAction: option
func (*Client) TxByHash ¶
func (c *Client) TxByHash(everHash string) (tx serverSchema.Tx, err error)
type SDK ¶
func (*SDK) Bundle ¶
func (s *SDK) Bundle(symbol string, to string, amount *big.Int, bundleWithSigs paySchema.BundleWithSigs) (*paySchema.Transaction, error)
func (*SDK) GetSymbolToTag ¶
func (*SDK) SignBundleData ¶
type SubscribeTx ¶
type SubscribeTx struct {
// contains filtered or unexported fields
}
func (*SubscribeTx) Subscribe ¶
func (s *SubscribeTx) Subscribe() <-chan cacheSchema.TxResponse
func (*SubscribeTx) Unsubscribe ¶
func (s *SubscribeTx) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.