Documentation ¶
Index ¶
- Variables
- func NewAccountAPIService(config *deso.Config, node *deso.Node) server.AccountAPIServicer
- func NewBlockAPIService(config *deso.Config, node *deso.Node) server.BlockAPIServicer
- func NewBlockchainRouter(config *deso.Config, node *deso.Node, asserter *asserter.Asserter) http.Handler
- func NewConstructionAPIService(config *deso.Config, node *deso.Node) server.ConstructionAPIServicer
- func NewMempoolAPIService(config *deso.Config, node *deso.Node) server.MempoolAPIServicer
- func NewNetworkAPIService(config *deso.Config, node *deso.Node) server.NetworkAPIServicer
- func ParseCoinIdentifier(coinIdentifier *types.CoinIdentifier) (*lib.BlockHash, uint32, error)
- type AccountAPIService
- type BlockAPIService
- type ConstructionAPIService
- func (s *ConstructionAPIService) ConstructionCombine(ctx context.Context, request *types.ConstructionCombineRequest) (*types.ConstructionCombineResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionDerive(ctx context.Context, request *types.ConstructionDeriveRequest) (*types.ConstructionDeriveResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionHash(ctx context.Context, request *types.ConstructionHashRequest) (*types.TransactionIdentifierResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionMetadata(ctx context.Context, request *types.ConstructionMetadataRequest) (*types.ConstructionMetadataResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionParse(ctx context.Context, request *types.ConstructionParseRequest) (*types.ConstructionParseResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionPayloads(ctx context.Context, request *types.ConstructionPayloadsRequest) (*types.ConstructionPayloadsResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionPreprocess(ctx context.Context, request *types.ConstructionPreprocessRequest) (*types.ConstructionPreprocessResponse, *types.Error)
- func (s *ConstructionAPIService) ConstructionSubmit(ctx context.Context, request *types.ConstructionSubmitRequest) (*types.TransactionIdentifierResponse, *types.Error)
- type MempoolAPIService
- type NetworkAPIService
- func (s *NetworkAPIService) NetworkList(ctx context.Context, request *types.MetadataRequest) (*types.NetworkListResponse, *types.Error)
- func (s *NetworkAPIService) NetworkOptions(ctx context.Context, request *types.NetworkRequest) (*types.NetworkOptionsResponse, *types.Error)
- func (s *NetworkAPIService) NetworkStatus(ctx context.Context, request *types.NetworkRequest) (*types.NetworkStatusResponse, *types.Error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Errors = []*types.Error{ ErrUnimplemented, ErrUnavailableOffline, ErrNotReady, ErrDeSo, ErrUnableToParseIntermediateResult, ErrUnableToGetCoins, ErrBlockNotFound, ErrMultipleSigners, ErrInvalidPublicKey, ErrInvalidCoin, ErrInvalidTransaction, ErrMultipleInputs, } ErrUnimplemented = &types.Error{ Code: 0, Message: "Endpoint not implemented", } Code: 1, Message: "Endpoint unavailable offline", } ErrNotReady = &types.Error{ Code: 2, Message: "DeSo node is not ready", Retriable: true, } ErrDeSo = &types.Error{ Code: 3, Message: "DeSo node error", } ErrUnableToParseIntermediateResult = &types.Error{ Code: 4, Message: "Unable to parse intermediate result", } ErrUnableToGetCoins = &types.Error{ Code: 5, Message: "Unable to get coins", } ErrBlockNotFound = &types.Error{ Code: 6, Message: "Block not found", } ErrMultipleSigners = &types.Error{ Code: 7, Message: "A transaction can only have one signer", } ErrInvalidPublicKey = &types.Error{ Code: 8, Message: "Unable to parse public key", } ErrInvalidCoin = &types.Error{ Code: 9, Message: "Unable to parse coin", } ErrInvalidTransaction = &types.Error{ Code: 10, Message: "Unable to parse transaction", } ErrMultipleInputs = &types.Error{ Code: 11, Message: "A transaction can only have one input", } )
Functions ¶
func NewAccountAPIService ¶
func NewBlockAPIService ¶
func NewBlockchainRouter ¶
func NewMempoolAPIService ¶
func NewNetworkAPIService ¶
func ParseCoinIdentifier ¶
Types ¶
type AccountAPIService ¶
type AccountAPIService struct {
// contains filtered or unexported fields
}
func (*AccountAPIService) AccountBalance ¶
func (s *AccountAPIService) AccountBalance( ctx context.Context, request *types.AccountBalanceRequest, ) (*types.AccountBalanceResponse, *types.Error)
func (*AccountAPIService) AccountCoins ¶
func (s *AccountAPIService) AccountCoins( ctx context.Context, request *types.AccountCoinsRequest, ) (*types.AccountCoinsResponse, *types.Error)
type BlockAPIService ¶
type BlockAPIService struct {
// contains filtered or unexported fields
}
func (*BlockAPIService) Block ¶
func (s *BlockAPIService) Block( ctx context.Context, request *types.BlockRequest, ) (*types.BlockResponse, *types.Error)
func (*BlockAPIService) BlockTransaction ¶
func (s *BlockAPIService) BlockTransaction( ctx context.Context, request *types.BlockTransactionRequest, ) (*types.BlockTransactionResponse, *types.Error)
type ConstructionAPIService ¶
type ConstructionAPIService struct {
// contains filtered or unexported fields
}
func (*ConstructionAPIService) ConstructionCombine ¶
func (s *ConstructionAPIService) ConstructionCombine(ctx context.Context, request *types.ConstructionCombineRequest) (*types.ConstructionCombineResponse, *types.Error)
func (*ConstructionAPIService) ConstructionDerive ¶
func (s *ConstructionAPIService) ConstructionDerive(ctx context.Context, request *types.ConstructionDeriveRequest) (*types.ConstructionDeriveResponse, *types.Error)
func (*ConstructionAPIService) ConstructionHash ¶
func (s *ConstructionAPIService) ConstructionHash(ctx context.Context, request *types.ConstructionHashRequest) (*types.TransactionIdentifierResponse, *types.Error)
func (*ConstructionAPIService) ConstructionMetadata ¶
func (s *ConstructionAPIService) ConstructionMetadata(ctx context.Context, request *types.ConstructionMetadataRequest) (*types.ConstructionMetadataResponse, *types.Error)
func (*ConstructionAPIService) ConstructionParse ¶
func (s *ConstructionAPIService) ConstructionParse(ctx context.Context, request *types.ConstructionParseRequest) (*types.ConstructionParseResponse, *types.Error)
func (*ConstructionAPIService) ConstructionPayloads ¶
func (s *ConstructionAPIService) ConstructionPayloads(ctx context.Context, request *types.ConstructionPayloadsRequest) (*types.ConstructionPayloadsResponse, *types.Error)
func (*ConstructionAPIService) ConstructionPreprocess ¶
func (s *ConstructionAPIService) ConstructionPreprocess(ctx context.Context, request *types.ConstructionPreprocessRequest) (*types.ConstructionPreprocessResponse, *types.Error)
func (*ConstructionAPIService) ConstructionSubmit ¶
func (s *ConstructionAPIService) ConstructionSubmit(ctx context.Context, request *types.ConstructionSubmitRequest) (*types.TransactionIdentifierResponse, *types.Error)
type MempoolAPIService ¶
type MempoolAPIService struct {
// contains filtered or unexported fields
}
func (*MempoolAPIService) Mempool ¶
func (s *MempoolAPIService) Mempool(ctx context.Context, request *types.NetworkRequest) (*types.MempoolResponse, *types.Error)
func (*MempoolAPIService) MempoolTransaction ¶
func (s *MempoolAPIService) MempoolTransaction(ctx context.Context, request *types.MempoolTransactionRequest) (*types.MempoolTransactionResponse, *types.Error)
type NetworkAPIService ¶
type NetworkAPIService struct {
// contains filtered or unexported fields
}
func (*NetworkAPIService) NetworkList ¶
func (s *NetworkAPIService) NetworkList(ctx context.Context, request *types.MetadataRequest) (*types.NetworkListResponse, *types.Error)
func (*NetworkAPIService) NetworkOptions ¶
func (s *NetworkAPIService) NetworkOptions(ctx context.Context, request *types.NetworkRequest) (*types.NetworkOptionsResponse, *types.Error)
TODO (go): Implement
func (*NetworkAPIService) NetworkStatus ¶
func (s *NetworkAPIService) NetworkStatus(ctx context.Context, request *types.NetworkRequest) (*types.NetworkStatusResponse, *types.Error)
Click to show internal directories.
Click to hide internal directories.