Documentation ¶
Index ¶
- func PushActions(api *API, actions ...*eos.Action) (*eos.PushTransactionFullResp, error)
- func ToSHA256Bytes(in string) (eos.SHA256Bytes, error)
- type API
- func (api *API) Asset(a *types.Asset) interface{}
- func (api *API) GetBlockDataByID(id string) (*types.BlockGeneralInfo, error)
- func (api *API) GetBlockDataByNum(num uint32) (*types.BlockGeneralInfo, error)
- func (api *API) GetInfoData() (*types.InfoResp, error)
- func (api *API) Init(cfg *config.ConfigData) error
- func (api *API) Name(n string) interface{}
- func (api *API) PushActions(actions ...*types.Action) (*types.PushTransactionFullResp, error)
- func (api *API) Switcher() types.SwitcherInterface
- func (api *API) Type() types.ClientType
- type Config
- type ConfigSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PushActions ¶
PushActions push action to chain
func ToSHA256Bytes ¶
func ToSHA256Bytes(in string) (eos.SHA256Bytes, error)
ToSHA256Bytes from string to sha256
Types ¶
type API ¶
API client api to forceio chain
func (*API) GetBlockDataByID ¶
func (api *API) GetBlockDataByID(id string) (*types.BlockGeneralInfo, error)
func (*API) GetBlockDataByNum ¶
func (api *API) GetBlockDataByNum(num uint32) (*types.BlockGeneralInfo, error)
func (*API) PushActions ¶
func (*API) Switcher ¶
func (api *API) Switcher() types.SwitcherInterface
func (*API) Type ¶
func (api *API) Type() types.ClientType
type Config ¶
type Config struct { ChainID eos.SHA256Bytes URL string Keys map[string]accountKey Prikeys []ecc.PrivateKey IsDebug bool }
Config config to codex-go
type ConfigSigner ¶
type ConfigSigner struct { Keys []ecc.PrivateKey `json:"keys"` // contains filtered or unexported fields }
ConfigSigner singer with use config keys
func NewConfigSigner ¶
func NewConfigSigner(api *API) *ConfigSigner
NewConfigSigner create config signer with keys in config in api
func (*ConfigSigner) AvailableKeys ¶
func (c *ConfigSigner) AvailableKeys() (out []ecc.PublicKey, err error)
AvailableKeys imp Signer interface
func (*ConfigSigner) ImportPrivateKey ¶
func (c *ConfigSigner) ImportPrivateKey(wifPrivKey string) (err error)
ImportPrivateKey imp Signer interface
func (*ConfigSigner) Sign ¶
func (c *ConfigSigner) Sign(tx *eos.SignedTransaction, chainID []byte, requiredKeys ...ecc.PublicKey) (*eos.SignedTransaction, error)
Sign imp Signer interface
Click to show internal directories.
Click to hide internal directories.