Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosmosChain ¶
type CosmosChain struct {
// contains filtered or unexported fields
}
CosmosChain is a struct for identifier blockchains and their forks
func (*CosmosChain) NewRequest ¶
func (ec *CosmosChain) NewRequest(rpcURL string, txHex string) (PostRequest, error)
NewRequest takes an RPC URL and a hexadecimal transaction. Returns PostRequest for cosmos nodes
type ETHChain ¶
type ETHChain struct {
// contains filtered or unexported fields
}
ETHChain is a struct for identifier blockchains and their forks
func (*ETHChain) NewRequest ¶
func (ec *ETHChain) NewRequest(rpcURL string, txHex string) (PostRequest, error)
NewRequest takes an RPC URL and a hexadecimal transaction. Returns PostRequest for ethereum nodes
type IChain ¶
type IChain interface { // NewRequest takes an RPC URL and a hexadecimal transaction. // Returns PostRequest with the with values depending on the chain type NewRequest(rpcURL string, txHex string) (PostRequest, error) }
IChain is an abstraction for a cryptocurrency It only enables creating raw transactions requests
type PostRequest ¶
PostRequest is the common struct containing the body and url
Click to show internal directories.
Click to hide internal directories.