Newer
Older
// Used to send an address. The address should be hex and properly formatted.
// TODO enforce.
AddressParam struct {
Address []byte `json:"address"`
}
AccountsParam struct {
Filters []*pipe.FilterData `json:"filters"`
}
// Used to send an address
FilterListParam struct {
Filters []*pipe.FilterData `json:"filters"`
}
// StorageAt
StorageAtParam struct {
Address []byte `json:"address"`
Key []byte `json:"key"`
}
BlocksParam struct {
Filters []*pipe.FilterData `json:"filters"`
}
// Event Id
EventIdParam struct {
EventId string `json:"event_id"`
}
// Event Id
SubIdParam struct {
SubId string `json:"sub_id"`
}
// Used when doing calls
CallParam struct {
Address []byte `json:"address"`
// Used when signing a tx. Uses placeholders just like TxParam
SignTxParam struct {
// Used when sending a transaction to be created and signed on the server
// (using the private key). This only uses the standard key type for now.
TransactParam struct {
PrivKey []byte `json:"priv_key"`
Data []byte `json:"data"`
Address []byte `json:"address"`
Fee int64 `json:"fee"`
GasLimit int64 `json:"gas_limit"`
NameRegEntryParam struct {
Name string `json:"name"`
}
// Used when sending a namereg transaction to be created and signed on the server
// (using the private key). This only uses the standard key type for now.
TransactNameRegParam struct {
PrivKey []byte `json:"priv_key"`
Name string `json:"name"`
Data string `json:"data"`
Fee int64 `json:"fee"`
Amount int64 `json:"amount"`
}