Run NodesReferenceutils

json

Package json

import "github.com/luxfi/node/utils/json"

Functions

NewCodec

func NewCodec() rpc.Codec

NewCodec returns a new json codec that will convert the first character of the method to uppercase

Types

Float32

func (f Float32) MarshalJSON() ([]byte, error)
func (f *Float32) UnmarshalJSON(b []byte) error

Float64

func (f Float64) MarshalJSON() ([]byte, error)
func (f *Float64) UnmarshalJSON(b []byte) error

Uint16

func (u Uint16) MarshalJSON() ([]byte, error)
func (u *Uint16) UnmarshalJSON(b []byte) error

Uint32

func (u Uint32) MarshalJSON() ([]byte, error)
func (u *Uint32) UnmarshalJSON(b []byte) error

Uint64

func (u Uint64) MarshalJSON() ([]byte, error)
func (u *Uint64) UnmarshalJSON(b []byte) error

Uint8

func (u Uint8) MarshalJSON() ([]byte, error)
func (u *Uint8) UnmarshalJSON(b []byte) error