Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- type Jrpc
- func (c *Jrpc) CreateRawTokenFinishTx(param *tokenty.TokenFinishCreate, result *interface{}) error
- func (c *Jrpc) CreateRawTokenPreCreateTx(param *tokenty.TokenPreCreate, result *interface{}) error
- func (c *Jrpc) CreateRawTokenRevokeTx(param *tokenty.TokenRevokeCreate, result *interface{}) error
- func (c *Jrpc) GetTokenBalance(in tokenty.ReqTokenBalance, result *interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc grpc struct
func (Grpc) GetTokenBalance ¶
func (c Grpc) GetTokenBalance(ctx context.Context, in *tokenty.ReqTokenBalance) (*types.Accounts, error)
GetTokenBalance 获取token金额(channelClient)
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc json rpc struct
func (*Jrpc) CreateRawTokenFinishTx ¶
func (c *Jrpc) CreateRawTokenFinishTx(param *tokenty.TokenFinishCreate, result *interface{}) error
CreateRawTokenFinishTx 创建未签名的结束Token交易
func (*Jrpc) CreateRawTokenPreCreateTx ¶
func (c *Jrpc) CreateRawTokenPreCreateTx(param *tokenty.TokenPreCreate, result *interface{}) error
CreateRawTokenPreCreateTx 创建未签名的创建Token交易
func (*Jrpc) CreateRawTokenRevokeTx ¶
func (c *Jrpc) CreateRawTokenRevokeTx(param *tokenty.TokenRevokeCreate, result *interface{}) error
CreateRawTokenRevokeTx 创建未签名的撤销Token交易
func (*Jrpc) GetTokenBalance ¶
func (c *Jrpc) GetTokenBalance(in tokenty.ReqTokenBalance, result *interface{}) error
GetTokenBalance 获取token金额 (Jrpc)
Click to show internal directories.
Click to hide internal directories.