package
1.51.1
Repository: https://github.com/injectivelabs/sdk-go.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GenerateRandomChainID returns a random chain-id in the valid format.
IsValidChainID returns false if the given chain identifier is incorrectly formatted.
MarshalBigInt marshals big int into text string for consistent encoding.
NewInjectiveCoin is a utility function that returns an "inj" coin with the given math.Int amount.
NewInjectiveCoinInt64 is a utility function that returns an "inj" coin with the given int64 amount.
NewThreadsafeInfiniteGasMeter returns a reference to a new thread-safe infiniteGasMeter.
ParseChainID parses a string chain identifier's epoch to an Ethereum-compatible chain-id in *big.Int format.
ProtoAccount defines the prototype function for BaseAccount used for an AccountKeeper.
RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.
SetBech32Prefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.
SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.
UnmarshalBigInt unmarshals string from *big.Int.

# Constants

BaseDenomUnit defines the base denomination unit for Photons.
Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address.
Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address.
Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key.
Bip44CoinType satisfies EIP84.
DefaultGasPrice is default gas price for evm transactions.
DefaultRPCGasLimit is default gas limit for RPC call operations.
InjectiveBech32Prefix defines the Bech32 prefix used for EthAccounts on the Injective Chain.
INJ defines the default coin denomination used in Ethermint in: - Staking parameters: denomination used as stake in the dPoS chain - Mint parameters: denomination minted due to fee distribution rewards - Governance parameters: denomination used for spam prevention in proposal deposits - Crisis parameters: constant fee denomination used for spam prevention to check broken invariant - EVM parameters: denomination used for running EVM state transitions in Ethermint.
RootCodespace is the codespace for all errors defined in this package.

# Variables

BIP44HDPath is the BIP44 HD path used on Ethereum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidChainID returns an error resulting from an invalid chain ID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

EthAccount implements the authtypes.AccountI interface and embeds an authtypes.BaseAccount type.
No description provided by the author
improvised message to unpack length prefixed messages in tx response data.
base header ak message type, we can cast the bytes into corresponding message response type.

# Type aliases

Code is account Code type alias.