Documentation
¶
Index ¶
- type ApiService
- func (s *ApiService) EstimateTransactionGas(ctx context.Context, req *rpcpb.EstimateTransactionGasRequest) (*rpcpb.EstimateTransactionGasResponse, error)
- func (s *ApiService) GetState(ctx context.Context, req *rpcpb.NonParamsRequest) (*rpcpb.GetStateResponse, error)
- func (s *ApiService) ListAssets(ctx context.Context, req *rpcpb.ListAssetsRequest) (*rpcpb.ListAssetsResponse, error)
- func (s *ApiService) ListTransactions(ctx context.Context, req *rpcpb.ListTransactionsRequest) (*rpcpb.ListTransactionsResponse, error)
- func (s *ApiService) SubmitTransaction(ctx context.Context, req *rpcpb.SubmitTransactionRequest) (*rpcpb.SubmitTransactionResponse, error)
- type EstimateTxGasResp
- type Rpc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func (*ApiService) EstimateTransactionGas ¶
func (s *ApiService) EstimateTransactionGas(ctx context.Context, req *rpcpb.EstimateTransactionGasRequest) (*rpcpb.EstimateTransactionGasResponse, error)
EstimateTransactionGas estimate transaction gas
func (*ApiService) GetState ¶
func (s *ApiService) GetState(ctx context.Context, req *rpcpb.NonParamsRequest) (*rpcpb.GetStateResponse, error)
func (*ApiService) ListAssets ¶
func (s *ApiService) ListAssets(ctx context.Context, req *rpcpb.ListAssetsRequest) (*rpcpb.ListAssetsResponse, error)
func (*ApiService) ListTransactions ¶
func (s *ApiService) ListTransactions(ctx context.Context, req *rpcpb.ListTransactionsRequest) (*rpcpb.ListTransactionsResponse, error)
func (*ApiService) SubmitTransaction ¶
func (s *ApiService) SubmitTransaction(ctx context.Context, req *rpcpb.SubmitTransactionRequest) (*rpcpb.SubmitTransactionResponse, error)
SubmitTransaction submit transaction
type EstimateTxGasResp ¶
type EstimateTxGasResp struct {
TotalNeu int64 `json:"total_neu"`
StorageNeu int64 `json:"storage_neu"`
VMNeu int64 `json:"vm_neu"`
}
EstimateTxGasResp estimate transaction consumed gas
func EstimateTxGas ¶
func EstimateTxGas(template txbuilder.Template) (*EstimateTxGasResp, error)
EstimateTxGas estimate consumed neu for transaction
Click to show internal directories.
Click to hide internal directories.