chaindispatcher

package
v0.0.0-...-8c09bb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainDispatcher

type ChainDispatcher struct {
	// contains filtered or unexported fields
}

func New

func New(conf *config.Config) (*ChainDispatcher, error)

func (*ChainDispatcher) BuildSignedTransaction

func (d *ChainDispatcher) BuildSignedTransaction(ctx context.Context, request *utxo.SignedTransactionRequest) (*utxo.SignedTransactionResponse, error)

func (*ChainDispatcher) ConvertAddress

func (*ChainDispatcher) CreateUnSignTransaction

func (d *ChainDispatcher) CreateUnSignTransaction(ctx context.Context, request *utxo.UnSignTransactionRequest) (*utxo.UnSignTransactionResponse, error)

func (*ChainDispatcher) DecodeTransaction

func (*ChainDispatcher) GetAccount

func (d *ChainDispatcher) GetAccount(ctx context.Context, request *utxo.AccountRequest) (*utxo.AccountResponse, error)

func (*ChainDispatcher) GetBlockByHash

func (d *ChainDispatcher) GetBlockByHash(ctx context.Context, request *utxo.BlockHashRequest) (*utxo.BlockResponse, error)

func (*ChainDispatcher) GetBlockByNumber

func (d *ChainDispatcher) GetBlockByNumber(ctx context.Context, request *utxo.BlockNumberRequest) (*utxo.BlockResponse, error)

func (*ChainDispatcher) GetBlockHeaderByHash

func (d *ChainDispatcher) GetBlockHeaderByHash(ctx context.Context, request *utxo.BlockHeaderHashRequest) (*utxo.BlockHeaderResponse, error)

func (*ChainDispatcher) GetBlockHeaderByNumber

func (d *ChainDispatcher) GetBlockHeaderByNumber(ctx context.Context, request *utxo.BlockHeaderNumberRequest) (*utxo.BlockHeaderResponse, error)

func (*ChainDispatcher) GetFee

func (d *ChainDispatcher) GetFee(ctx context.Context, request *utxo.FeeRequest) (*utxo.FeeResponse, error)

func (*ChainDispatcher) GetSupportChains

func (*ChainDispatcher) GetTxByAddress

func (d *ChainDispatcher) GetTxByAddress(ctx context.Context, request *utxo.TxAddressRequest) (*utxo.TxAddressResponse, error)

func (*ChainDispatcher) GetTxByHash

func (d *ChainDispatcher) GetTxByHash(ctx context.Context, request *utxo.TxHashRequest) (*utxo.TxHashResponse, error)

func (*ChainDispatcher) GetUnspentOutputs

func (*ChainDispatcher) Interceptor

func (d *ChainDispatcher) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

func (*ChainDispatcher) SendTx

func (*ChainDispatcher) ValidAddress

func (*ChainDispatcher) VerifySignedTransaction

func (d *ChainDispatcher) VerifySignedTransaction(ctx context.Context, request *utxo.VerifyTransactionRequest) (*utxo.VerifyTransactionResponse, error)

type ChainType

type ChainType = string

type CommonReply

type CommonReply = utxo.SupportChainsResponse

type CommonRequest

type CommonRequest interface {
	GetChain() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL