Documentation
¶
Index ¶
- Constants
- Variables
- func GetTransaction(rawTx string) (*types.Transaction, error)
- func HandleError(id json.RawMessage, err error) *rpc.JsonrpcMessage
- func Hash(from string, to *common.Address, encodedFunction []byte, ...) []byte
- func Sign(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SignPayload(_privateKey, signingAddr string, destinationAddress *common.Address, ...) ([]byte, error)
- type RelaySignerService
- func (service *RelaySignerService) DecreaseGasUsed(id json.RawMessage) bool
- func (service *RelaySignerService) GetTransactionCount(id json.RawMessage, from string) *rpc.JsonrpcMessage
- func (service *RelaySignerService) GetTransactionReceipt(id json.RawMessage, transactionID string) *rpc.JsonrpcMessage
- func (service *RelaySignerService) Init(_config *model.Config) error
- func (service *RelaySignerService) ProcessNewBlocks(done <-chan interface{})
- func (service *RelaySignerService) SendMetatransaction(id json.RawMessage, to *common.Address, gasLimit uint64, signingData []byte, ...) *rpc.JsonrpcMessage
- func (service *RelaySignerService) VerifyGasLimit(gasLimit uint64, id json.RawMessage) (bool, error)
- func (service *RelaySignerService) VerifySender(sender common.Address, id json.RawMessage) (bool, error)
Constants ¶
View Source
const ENVIRONMENT_KEY_NAME = "WRITER_KEY"
View Source
const RelayABI = "" /* 12212-byte string literal not displayed */
Variables ¶
View Source
var GAS_LIMIT uint64 = 0
Functions ¶
func GetTransaction ¶
func GetTransaction(rawTx string) (*types.Transaction, error)
GetTransaction ...
Types ¶
type RelaySignerService ¶
RelaySignerService is the main service
func (*RelaySignerService) DecreaseGasUsed ¶
func (service *RelaySignerService) DecreaseGasUsed(id json.RawMessage) bool
DecreaseGasUsed by node
func (*RelaySignerService) GetTransactionCount ¶
func (service *RelaySignerService) GetTransactionCount(id json.RawMessage, from string) *rpc.JsonrpcMessage
GetTransactionCount of account
func (*RelaySignerService) GetTransactionReceipt ¶
func (service *RelaySignerService) GetTransactionReceipt(id json.RawMessage, transactionID string) *rpc.JsonrpcMessage
GetTransactionReceipt from blockchain
func (*RelaySignerService) Init ¶
func (service *RelaySignerService) Init(_config *model.Config) error
Init configuration parameters
func (*RelaySignerService) ProcessNewBlocks ¶
func (service *RelaySignerService) ProcessNewBlocks(done <-chan interface{})
func (*RelaySignerService) SendMetatransaction ¶
func (service *RelaySignerService) SendMetatransaction(id json.RawMessage, to *common.Address, gasLimit uint64, signingData []byte, v uint8, r, s [32]byte) *rpc.JsonrpcMessage
SendMetatransaction to blockchain
func (*RelaySignerService) VerifyGasLimit ¶
func (service *RelaySignerService) VerifyGasLimit(gasLimit uint64, id json.RawMessage) (bool, error)
VerifyGasLimit sent a transaction
func (*RelaySignerService) VerifySender ¶
func (service *RelaySignerService) VerifySender(sender common.Address, id json.RawMessage) (bool, error)
VerifySender sent a transaction
Click to show internal directories.
Click to hide internal directories.