omnicore-rpcclient: github.com/ququzone/omnicore-rpcclient Index | Files

package rpcclient

import "github.com/ququzone/omnicore-rpcclient"

Index

Package Files

client.go commands.go infrastructure.go

type Balance Uses

type Balance struct {
    Balance  string `json:"balance,omitempty"`
    Reserved string `json:"reserved,omitempty"`
    Frozen   string `json:"frozen,omitempty"`
}

Balance ...

type Client Uses

type Client struct {
    *rpcclient.Client

    User     string
    Password string
    URL      string
    // contains filtered or unexported fields
}

Client ...

func New Uses

func New(connect string, port int, user, password string) (*Client, error)

New return new rpc client

func (*Client) OmniGetBalance Uses

func (c *Client) OmniGetBalance(address string, propertyID int64) (*Balance, error)

OmniGetBalance ...

func (*Client) OmniGettransaction Uses

func (c *Client) OmniGettransaction(txHash string) (*Transaction, error)

OmniGettransaction ...

func (*Client) OmniListBlockTransactions Uses

func (c *Client) OmniListBlockTransactions(index int64) ([]string, error)

OmniListBlockTransactions ...

type GetBalanceCmd Uses

type GetBalanceCmd struct {
    Address    string
    PropertyID int64
}

GetBalanceCmd omni_getbalance

func NewGetBalanceCmd Uses

func NewGetBalanceCmd(address string, propertyID int64) *GetBalanceCmd

NewGetBalanceCmd ...

type GetTransactionCmd Uses

type GetTransactionCmd struct {
    Txid string
}

GetTransactionCmd omni_gettransaction

func NewGetTransactionCmd Uses

func NewGetTransactionCmd(txHash string) *GetTransactionCmd

NewGetTransactionCmd ...

type ListBlockTransactionsCmd Uses

type ListBlockTransactionsCmd struct {
    Index int64
}

ListBlockTransactionsCmd omni_listblocktransactions

func NewListBlockTransactionsCmd Uses

func NewListBlockTransactionsCmd(index int64) *ListBlockTransactionsCmd

NewListBlockTransactionsCmd ...

type Response Uses

type Response struct {
    ID     int32           `json:"id"`
    Result json.RawMessage `json:"result"`
    Error  struct {
        Code    int32  `json:"code"`
        Message string `json:"message"`
    }   `json:"error"`
}

Response ...

type Transaction Uses

type Transaction struct {
    TXID             string `json:"txid"`
    Fee              string `json:"fee"`
    SendingAddress   string `json:"sendingaddress"`
    ReferenceAddress string `json:"referenceaddress"`
    IsMine           bool   `json:"ismine"`
    Version          int32  `json:"version"`
    TypeInt          int32  `json:"type_int"`
    Type             string `json:"type"`
    PropertyID       int64  `json:"propertyid"`
    Divisible        bool   `json:"divisible"`
    Amount           string `json:"amount"`
    Valid            bool   `json:"valid"`
    BlockHash        string `json:"blockhash"`
    BlockTime        int64  `json:"blocktime"`
    PositionInBlock  int32  `json:"positioninblock"`
    Block            int64  `json:"block"`
    Confirmations    int64  `json:"confirmations"`
}

Transaction ...

Package rpcclient imports 8 packages (graph). Updated 2019-07-15. Refresh now. Tools for package owners.