Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Address string `json:"address"`
Nonce uint64 `json:"nonce"`
Balance string `json:"balance"`
CodeHash []byte `json:"codeHash"`
RootHash []byte `json:"rootHash"`
}
Account defines the data structure for an account
type ResponseAccount ¶
type ResponseAccount struct {
AccountData Account `json:"account"`
}
ResponseAccount defines a wrapped account that the node respond with
type ResponseTransaction ¶
type ResponseTransaction struct {
TxHash string `json:"txHash"`
}
ResponseTransaction defines a response tx holding the resulting hash
type Transaction ¶
type Transaction struct {
Nonce uint64 `form:"nonce" json:"nonce"`
Value *big.Int `form:"value" json:"value"`
Receiver string `form:"receiver" json:"receiver"`
Sender string `form:"sender" json:"sender"`
GasPrice *big.Int `form:"gasPrice" json:"gasPrice,omitempty"`
GasLimit *big.Int `form:"gasLimit" json:"gasLimit,omitempty"`
Data string `form:"data" json:"data,omitempty"`
Signature string `form:"signature" json:"signature,omitempty"`
Challenge string `form:"challenge" json:"challenge,omitempty"`
}
Transaction represents the structure that maps and validates user input for publishing a new transaction
Click to show internal directories.
Click to hide internal directories.