Documentation
¶
Index ¶
- Constants
- func NewTransactionFromHexString(raw string) (*core.Transaction, error)
- func TransactionToHexString(tx *core.Transaction) (string, error)
- type RemoteSignClient
- func (r *RemoteSignClient) Client() rpc.Client
- func (r *RemoteSignClient) SignCkbMessage(ckbSignerAddress, message string) ([]byte, error)
- func (r *RemoteSignClient) SignEvmTx(method, address string, tx *types.Transaction) (*types.Transaction, error)
- func (r *RemoteSignClient) SignTrxTx(address string, tx *api.TransactionExtention) (*api.TransactionExtention, error)
Constants ¶
View Source
const ( SignMethodEvm string = "wallet_eTHSignMsg" SignMethodTron string = "wallet_tronSignMsg" SignMethodCkb string = "wallet_cKBSignMsg" )
Variables ¶
This section is empty.
Functions ¶
func NewTransactionFromHexString ¶
func NewTransactionFromHexString(raw string) (*core.Transaction, error)
func TransactionToHexString ¶
func TransactionToHexString(tx *core.Transaction) (string, error)
Types ¶
type RemoteSignClient ¶
type RemoteSignClient struct {
// contains filtered or unexported fields
}
func NewRemoteSignClient ¶
func NewRemoteSignClient(ctx context.Context, apiUrl string) (*RemoteSignClient, error)
func (*RemoteSignClient) Client ¶
func (r *RemoteSignClient) Client() rpc.Client
func (*RemoteSignClient) SignCkbMessage ¶
func (r *RemoteSignClient) SignCkbMessage(ckbSignerAddress, message string) ([]byte, error)
func (*RemoteSignClient) SignEvmTx ¶
func (r *RemoteSignClient) SignEvmTx(method, address string, tx *types.Transaction) (*types.Transaction, error)
func (*RemoteSignClient) SignTrxTx ¶
func (r *RemoteSignClient) SignTrxTx(address string, tx *api.TransactionExtention) (*api.TransactionExtention, error)
Click to show internal directories.
Click to hide internal directories.