Documentation ¶
Index ¶
Constants ¶
View Source
const (
// GrinAPIVersion .
GrinAPIVersion = "/v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestBlockNumber ¶
type BestBlockNumber struct { Status bool `json:"status"` Message string `json:"message"` Height uint32 `json:"height"` }
BestBlockNumber .
type Client ¶
type Client interface { // GetAccount(address string) (*Account, error) // GetBalance(addr string, symbol string) (uint64, error) // CreateTransaction(from, to string, amount uint32) (*CreateTransactionResponse, error) // Transfer(keyManager KeyManager, transfers []Transfer) (*TxCommitResult, error) // GetTokens() ([]Token, error) // GetTransactionReceipt(txid string) (*TransactionReceipt, error) // GetTransactionFee(txid string) (*Fee, error) // GetBlockByNumber(height uint32) (*Block, error) BestBlockNumber() (uint32, error) }
Client .
Click to show internal directories.
Click to hide internal directories.