Documentation ¶
Index ¶
- func AppendTxs(in []types.Tx, srcTx *Doc, coinIndex uint) (out []types.Tx)
- func NormalizeToken(srcToken *Contract, coinIndex uint) types.Token
- func NormalizeTokens(srcTokens []Contract, coinIndex uint) []types.Token
- type Client
- func (c *Client) GetBlock(num int64) (page []Doc, err error)
- func (c *Client) GetBlockByNumber(num int64, coinIndex uint) (*types.Block, error)
- func (c *Client) GetCurrentBlockNumber() (int64, error)
- func (c *Client) GetTokenList(address string, coinIndex uint) (types.TokenPage, error)
- func (c *Client) GetTokenTxs(address, token string, coinIndex uint) (types.TxPage, error)
- func (c *Client) GetTokens(address string) (tp *TokenPage, err error)
- func (c *Client) GetTransactions(address string, coinIndex uint) (types.TxPage, error)
- func (c *Client) GetTxs(address string) (*Page, error)
- func (c *Client) GetTxsWithContract(address, contract string) (*Page, error)
- type Contract
- type Doc
- type NodeInfo
- type Op
- type Page
- type TokenPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeToken ¶
NormalizeToken converts a Ethereum token into the generic model
Types ¶
type Client ¶
func (*Client) GetBlockByNumber ¶
func (*Client) GetCurrentBlockNumber ¶
func (*Client) GetTokenList ¶
func (*Client) GetTokenTxs ¶
func (*Client) GetTransactions ¶
type Doc ¶
type Doc struct { Ops []Op `json:"operations"` Contract string `json:"contract"` ID string `json:"id"` BlockNumber uint64 `json:"blockNumber"` Timestamp int64 `json:"time"` Nonce uint64 `json:"nonce"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` GasUsed string `json:"gasUsed"` Input string `json:"input"` Error string `json:"error"` Coin uint `json:"coin"` }
Click to show internal directories.
Click to hide internal directories.