Documentation ¶
Index ¶
- func BeginTx(client *Client) (tx *sql.Tx, err error)
- func BlockCreateExec(stmt *sql.Stmt, item Block) (result sql.Result, err error)
- func BlockCreatePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func BlockDeleteExec(stmt *sql.Stmt, item Block) (result sql.Result, err error)
- func BlockDeletePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func ClearTables(db *sql.DB) (err error)
- func CommitTx(tx *sql.Tx) (err error)
- func ContractCreateExec(stmt *sql.Stmt, item Contract) (result sql.Result, err error)
- func ContractCreatePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func ContractDeleteExec(stmt *sql.Stmt, item Contract) (result sql.Result, err error)
- func ContractDeletePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func ExecPrepare(stmt *sql.Stmt, args ...interface{}) (result sql.Result, err error)
- func New(client *Client) (err error)
- func PrepareTx(tx *sql.Tx, sql string) (stmt *sql.Stmt, err error)
- func RollbackTx(tx *sql.Tx) (err error)
- func TxCreateExec(stmt *sql.Stmt, pre PreUtxo) (result sql.Result, err error)
- func TxCreatePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func TxDeleteExec(stmt *sql.Stmt, item PreUtxo) (result sql.Result, err error)
- func TxDeletePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func UtxoCreateExec(stmt *sql.Stmt, item Utxo) (result sql.Result, err error)
- func UtxoCreatePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func UtxoDeleteExec(stmt *sql.Stmt, item Utxo) (result sql.Result, err error)
- func UtxoDeletePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- func UtxoUpdateExec(stmt *sql.Stmt, item Utxo) (result sql.Result, err error)
- func UtxoUpdatePrepare(tx *sql.Tx) (stmt *sql.Stmt, err error)
- type Block
- type Client
- func (client *Client) Close() (err error)
- func (client *Client) Error() error
- func (client *Client) GetAddressUtxo(address string, maxHeight int) (*[]Utxo, error)
- func (client *Client) GetAllUtxo(maxHeight int) (*[]Utxo, error)
- func (client *Client) GetBlockHash(height uint64) (string, error)
- func (client *Client) GetBlockTxList(height uint64) (*[]string, error)
- func (client *Client) GetContractList(protocol string) (*[]Contract, error)
- func (client *Client) GetFirstBlockInfo() ([]Block, error)
- func (client *Client) GetPreUtxo(txid string) (*[]PreUtxo, error)
- func (client *Client) GetUtxoByHeight(height uint64) (*[]Utxo, error)
- type Contract
- type PreUtxo
- type Utxo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockCreateExec ¶
func BlockDeleteExec ¶
BlockDeleteExec only need item.Height now
func ClearTables ¶
func ContractCreateExec ¶
func ContractDeleteExec ¶
func ExecPrepare ¶
func RollbackTx ¶
func TxDeleteExec ¶
TxDeleteExec only need item.TxID now
func UtxoDeleteExec ¶
UtxoDeleteExec only need item.BlockHeight now
func UtxoUpdateExec ¶
UtxoUpdateExec only need item.IsSpent, ID, Vout now
Types ¶
type Client ¶
func (*Client) GetAddressUtxo ¶
func (*Client) GetBlockTxList ¶
func (*Client) GetContractList ¶
GetContractList get contract list by protocol, when protocol is "undefined" mean all contract do not have general interface
func (*Client) GetFirstBlockInfo ¶
type Contract ¶
type Contract struct { TxID string ContractAddress string ContractAction our_chain_rpc.ContractAction ContractProtocol string ContractVersion string }
Click to show internal directories.
Click to hide internal directories.