rpc

package
v0.18.24 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMixinRPC added in v0.18.16

func CallMixinRPC(node, method string, params []any) ([]byte, error)

func GetDepositTransaction added in v0.18.2

func GetDepositTransaction(rpc, chain, hash string, index uint64) (*common.VersionedTransaction, string, error)

func GetSnapshot added in v0.18.21

func GetSnapshot(rpc, hash string) (*common.SnapshotWithTopologicalOrder, error)

func GetTransaction added in v0.18.2

func GetTransaction(rpc, hash string) (*common.VersionedTransaction, string, error)

func GetUTXO added in v0.18.2

func GetUTXO(rpc, hash string, index uint64) (*common.UTXOWithLock, error)

func ListMintDistributions added in v0.18.2

func ListMintDistributions(rpc string, offset, count uint64) ([]*common.VersionedTransaction, error)

func NewServer added in v0.8.3

func NewServer(custom *config.Custom, store storage.Store, node *kernel.Node, port int) *http.Server

func NewUTXOKeysRPCReader added in v0.18.12

func NewUTXOKeysRPCReader(rpc string) *utxoKeysRPCReader

func SendRawTransaction added in v0.18.2

func SendRawTransaction(rpc, raw string) (crypto.Hash, error)

Types

type KernelInfo added in v0.18.21

type KernelInfo struct {
	Consensus crypto.Hash `json:"consensus"`
	Timestamp string      `json:"timestamp"`
	Mint      struct {
		PoolSize common.Integer `json:"pool"`
	} `json:"mint"`
}

func GetInfo added in v0.18.21

func GetInfo(rpc string) (*KernelInfo, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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