package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Functions
DoEVMCall executes an EVM call.
No description provided by the author
No description provided by the author
No description provided by the author
EstimateGas - estimate gas cost for a given operation.
NewHeaderInformation returns the header information that will serialize to the RPC representation.
NewPrivateDebugAPI creates a new API for the RPC interface TODO(dm): expose public via config.
NewPublicAstraAPI creates a new API for the RPC interface.
NewPublicBlockchainAPI creates a new API for the RPC interface.
NewPublicContractAPI creates a new API for the RPC interface.
NewPublicDebugAPI creates a new API for the RPC interface.
NewPublicNetAPI creates a new net API instance.
NewPublicPoolAPI creates a new API for the RPC interface.
NewPublicStakingAPI creates a new API for the RPC interface.
NewPublicTraceAPI creates a new API for the RPC interface.
NewPublicTransactionAPI creates a new API for the RPC interface.
NewPublicWeb3API creates a new web3 API instance.
NewStructuredResponse creates a structured response from the given input.
StartServers starts the http & ws servers.
StopServers stops the http & ws servers.
# Constants
APIVersion used for DApp's, bumped after RPC refactor (7/2020).
rpc name const.
tracer parity.
rpc name const.
CallTimeout is the timeout given to all contract calls.
Web3.
Version enum.
No description provided by the author
rpc name const.
rpc name const.
Version enum.
info type const.
transaction.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
blockchain.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
contract.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
staking.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
HTTPPortOffset ..
rpc name const.
rpc name const.
rpc name const.
LatestBlockNumber is the alias to rpc latest block number.
rpc name const.
rpc name const.
LogTag is the tag found in the log for all RPC logs.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
filters.
rpc name const.
net.
PendingBlockNumber is the alias to rpc pending block number.
rpc name const.
rpc name const.
info type const.
info type const.
rpc name const.
rpc name const.
rpc name const.
pool.
rpc name const.
Version enum.
rpc name const.
rpc name const.
rpc name const.
rpc name const.
tracer.
rpc name const.
rpc name const.
rpc name const.
Version enum.
Version enum.
WSPortOffset ..
# Variables
ErrIncorrectChainID when ChainID does not match running node.
ErrInvalidChainID when ChainID of signer does not match that of running node.
ErrInvalidLogLevel when invalid log level is provided.
ErrNotAvailable to indicate the RPC is not ready for public use.
ErrNotBeaconShard when rpc is called on not beacon chain node.
ErrRequestedBlockTooHigh when given block is greater than latest block number.
ErrTransactionNotFound when attempting to get a transaction that does not exist or has not been finalized.
ErrUnknownRPCVersion when rpc method has an unknown or unhandled version.
HTTPModules ..
WSModules ..
# Structs
Result structs for GetProof.
AddressOrList represents an address or a list of addresses.
CallArgs represents the arguments for a call.
Delegation represents a particular delegation to a validator.
HeaderInformation represents the latest consensus information.
PrivateDebugService Internal JSON RPC for debugging purpose.
PublicAstraService provides an API to access Astra related information.
PublicBlockchainService provides an API to access the Astra blockchain.
PublicContractService provides an API to access Astra's contract services.
PublicDebugService Internal JSON RPC for debugging purpose.
PublicNetService offers network related RPC methods.
No description provided by the author
PublicPoolService provides an API to access the Astra node's transaction pool.
PublicStakingService provides an API to access Astra's staking services.
PublicTracerService provides an API to access Astra's staking services.
PublicTransactionService provides an API to access Astra's transaction service.
PublicWeb3Service offers web3 related RPC methods.
StakingNetworkInfo returns global staking info.
No description provided by the author
TxHistoryArgs is struct to include optional transaction formatting params.
Undelegation represents one undelegation entry.
# Type aliases
BlockNumber ..
StructuredResponse type of RPCs.
TransactionIndex ..
Version of the RPC.