package
1.5.6
Repository: https://github.com/okex/exchain-go-sdk.git
Documentation: pkg.go.dev

# Functions

AccAddrPrefixConvert converts the account address between two different prefixes.
BuildOrderItems returns the set of OrderItem params must be checked by function CheckNewOrderParams.
ConvertToDelegatorResponse builds DelegatorResponse with the info of Delegator and UndelegationInfo.
CreateAccount creates a random key info with the given name and password.
CreateAccountWithMnemo creates the key info with the given mnemonic, name and password.
CreateAccountWithPrivateKey creates the key info with the given privateKey string, name and password.
ErrClientQuery returns an error when client failed in query.
ErrFilterDataFromBaseResponse returns an error when it failed to filter data from backend base response.
ErrFilterDataFromListResponse returns an error when it failed to filter data from backend list response.
ErrMarshalJSON returns an error when it failed in marshaling JSON.
ErrUnmarshalJSON returns an error when it failed in unmarshaling JSON.
EthAddress gets the available arg for payload Build.
EthAddresses gets the available arg for payload Build.
FormatKeyToHash converts the key string to hash.
No description provided by the author
GenerateMnemonic creates a random mnemonic.
GeneratePrivateKeyFromMnemo converts mnemonic to private key.
GetDataFromBaseResponse gets the detail data from the base response bytes.
GetOrderIDsFromResponse filters the orderID from the tx response a useful tool.
NewPayloadBuilder creates a new instance of PayloadBuilder.
ParseTransfersStr parses the whole multi-send info string into TransferUnit Example: `addr1 1okt addr2 2okt`.
ParseValAddresses parses validator address string to types.ValAddress.
ToCosmosAddress converts string address of cosmos and ethereum style to cosmos address.
ToHexAddress converts string address of cosmos and ethereum style to ethereum address.
Uint256 gets the available arg for payload Build.
UnmarshalListResponse unmarshals the list response from data bytes.
ValAddrPrefixConvert converts the validator address between two different prefixes.

# Structs

PayloadBuilder - structure of a useful tool to build payload.