Documentation ¶
Index ¶
- Constants
- func ClientCall(path string, req ...interface{}) (interface{}, int)
- func Execute()
- func MustRPCClient() *rpc.Client
- func RestoreStruct(data interface{}, out interface{})
- func SendReq(method string, args []string) (interface{}, bool)
- func Sendbulktx(threadTxNum int, txBtmNum string, sendAcct string, sendasset string, ...)
- type Reveive
Constants ¶
View Source
const ( CreateKey = "create_key" ListKeys = "list_keys" CreateAccount = "create_account" CreateAsset = "create_asset" CreateReceiver = "CreateReceiver" BuildTx = "build_tx" BuildMulTx = "build_mul_tx" BuildSpend = "spend" BuildIssue = "issue" BuildCtlAddr = "address" SignTx = "Sign_tx" SubmitTx = "submit_tx" GetTransaction = "get_transaction" )
View Source
const ( // Success indicates the rpc calling is successful. Success = iota // ErrLocalExe indicates error occurs before the rpc calling. ErrLocalExe // ErrConnect indicates error occurs connecting to the bytomd, e.g., // bytomd can't parse the received arguments. ErrConnect // ErrLocalParse indicates error occurs locally when parsing the response. ErrLocalParse // ErrRemote indicates error occurs in bytomd. ErrRemote )
Variables ¶
This section is empty.
Functions ¶
func ClientCall ¶ added in v0.5.1
Wrapper rpc call api.
func RestoreStruct ¶
func RestoreStruct(data interface{}, out interface{})
RestoreStruct Restore data
Types ¶
Click to show internal directories.
Click to hide internal directories.