Documentation ¶
Index ¶
- Constants
- func DecodeError(err error) error
- func NewHandler(services ...interface{ methods() jsonrpc2.MethodMap }) (http.Handler, error)
- type AccountServiceServer
- type AutoWalletTransport
- type Client
- func (c *Client) AddMemoToTransaction(ctx context.Context, req *api.AddMemoToTransactionRequest) (*api.TransactionResponse, error)
- func (c *Client) AddSendTokensOutput(ctx context.Context, req *api.AddSendTokensOutputRequest) (*api.TransactionResponse, error)
- func (c *Client) AdiList(ctx context.Context, req *api.AdiListRequest) (*api.AdiListResponse, error)
- func (c *Client) AdoptVault(ctx context.Context, req *api.AdoptVaultRequest) (*api.AdoptVaultResponse, error)
- func (c *Client) ConvertWallet(ctx context.Context, req *api.ConvertWalletRequest) (*api.ConvertWalletResponse, error)
- func (c *Client) CopyVaultSanitized(ctx context.Context, req *api.CopyVaultSanitizedRequest) (*api.CopyVaultSanitizedResponse, error)
- func (c *Client) CreateEnvelope(ctx context.Context, req *api.CreateEnvelopeRequest) (*api.CreateEnvelopeResponse, error)
- func (c *Client) CreateTransaction(ctx context.Context, req *api.CreateTransactionRequest) (*api.TransactionResponse, error)
- func (c *Client) CreateVault(ctx context.Context, req *api.CreateVaultRequest) (*api.CreateVaultResponse, error)
- func (c *Client) CreateWallet(ctx context.Context, req *api.CreateWalletRequest) (*api.CreateWalletResponse, error)
- func (c *Client) Decode(ctx context.Context, req *api.DecodeRequest) (*api.DecodeResponse, error)
- func (c *Client) DeleteTransaction(ctx context.Context, req *api.DeleteTransactionRequest) (*api.TransactionResponse, error)
- func (c *Client) Encode(ctx context.Context, req *api.EncodeRequest) (*api.EncodeResponse, error)
- func (c *Client) EncryptVault(ctx context.Context, req *api.EncryptVaultRequest) (*api.EncryptVaultResponse, error)
- func (c *Client) ExportVault(ctx context.Context, req *api.ExportVaultRequest) (*api.ExportVaultResponse, error)
- func (c *Client) FindSigner(ctx context.Context, req *api.FindSignerRequest) (*api.FindSignerResponse, error)
- func (c *Client) GenerateAddress(ctx context.Context, req *api.GenerateAddressRequest) (*api.GenerateAddressResponse, error)
- func (c *Client) GenerateMnemonic(ctx context.Context, req *api.GenerateMnemonicRequest) (*api.GenerateMnemonicResponse, error)
- func (c *Client) GetTransaction(ctx context.Context, req *api.GetTransactionRequest) (*api.TransactionResponse, error)
- func (c *Client) ImportKey(ctx context.Context, req *api.ImportKeyRequest) (*api.ResolveKeyResponse, error)
- func (c *Client) ImportMnemonic(ctx context.Context, req *api.ImportMnemonicRequest) (*api.ImportMnemonicResponse, error)
- func (c *Client) ImportVault(ctx context.Context, req *api.ImportVaultRequest) (*api.ImportVaultResponse, error)
- func (c *Client) KeyAssign(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
- func (c *Client) KeyList(ctx context.Context, req *api.KeyListRequest) (*api.KeyListResponse, error)
- func (c *Client) KeyRemove(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
- func (c *Client) KeyRename(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
- func (c *Client) LedgerGenerateKey(ctx context.Context, req *api.GenerateLedgerKeyRequest) (*api.Key, error)
- func (c *Client) LedgerQueryWallets(ctx context.Context) (*api.LedgerWalletResponse, error)
- func (c *Client) ListAccounts(ctx context.Context, req *api.ListAccountsRequest) (*api.ListAccountsResponse, error)
- func (c *Client) ListTransactions(ctx context.Context, req *api.ListTransactionsRequest) (*api.ListTransactionsResponse, error)
- func (c *Client) ListVaults(ctx context.Context, req *api.ListVaultsRequest) (*api.ListVaultsResponse, error)
- func (c *Client) LockVault(ctx context.Context, req *api.LockVaultRequest) (*api.LockVaultResponse, error)
- func (c *Client) OpenVault(ctx context.Context, req *api.OpenVaultRequest) (*api.OpenVaultResponse, error)
- func (c *Client) RefreshToken(ctx context.Context, req *api.RefreshTokenRequest) (*api.RefreshTokenResponse, error)
- func (c *Client) RegisterADI(ctx context.Context, req *api.RegisterADIRequest) (*api.RegisterADIResponse, error)
- func (c *Client) RegisterBook(ctx context.Context, req *api.RegisterBookRequest) (*api.RegisterBookResponse, error)
- func (c *Client) RegisterTokenAccount(ctx context.Context, req *api.RegisterTokenAccountRequest) (*api.RegisterTokenAccountResponse, error)
- func (c *Client) ResetLastUsedOn(ctx context.Context, req *api.ResetLastUsedOnRequest) (*api.ResetLastUsedOnResponse, error)
- func (c *Client) ResolveKey(ctx context.Context, req *api.ResolveKeyRequest) (*api.ResolveKeyResponse, error)
- func (c *Client) RestoreKeyCounters(ctx context.Context, req *api.RestoreKeyCountersRequest) (*api.RestoreKeyCountersResponse, error)
- func (c *Client) Set1PasswordRef(ctx context.Context, req *api.Set1PasswordRefRequest) (*api.Set1PasswordRefResponse, error)
- func (c *Client) Sign(ctx context.Context, req *api.SignRequest) (*api.SignResponse, error)
- func (c *Client) SignMessage(ctx context.Context, req *api.SignMessageRequest) (*api.SignResponse, error)
- func (c *Client) SignTransaction(ctx context.Context, req *api.SignTransactionRequest) (*api.SignResponse, error)
- func (c *Client) Status(ctx context.Context, req *api.StatusRequest) (*api.StatusResponse, error)
- func (c *Client) UnlockVault(ctx context.Context, req *api.UnlockVaultRequest) (*api.UnlockVaultResponse, error)
- func (c *Client) UnregisterBook(ctx context.Context, req *api.UnregisterBookRequest) (*api.UnregisterBookResponse, error)
- func (c *Client) UnregisterTokenAccount(ctx context.Context, req *api.UnregisterTokenAccountRequest) (*api.UnregisterTokenAccountResponse, error)
- func (c *Client) Version(ctx context.Context) (*api.VersionResponse, error)
- func (c *Client) WriteDataTransaction(ctx context.Context, req *api.WriteDataRequest) (*api.TransactionResponse, error)
- type DefaultTransport
- type GeneralServiceServer
- type InteractiveAuthnTransport
- type KeyServiceServer
- type LedgerServiceServer
- type SigningServiceServer
- type TransactionServiceServer
- type Transport
- type VaultServiceServer
Constants ¶
View Source
const ( ErrCodeInternal = -32800 - iota ErrCodeValidation ErrCodeGeneral )
General Errors
View Source
const (
ErrCodeProtocolBase = -33000 - iota
)
Custom errors
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶ added in v0.6.0
func NewHandler ¶
Types ¶
type AccountServiceServer ¶
type AccountServiceServer struct {
Service wallet.AccountService
}
type AutoWalletTransport ¶
type AutoWalletTransport struct { Transport SetWallet func(request any, field *string) SetVault func(request any, field *string) SetToken func(request any, field *[]byte) }
AutoWalletTransport populates wallet request fields automatically.
AutoWalletTransport does not automatically set fields for certain request types that probably should be populated manually.
type Client ¶
func (*Client) AddMemoToTransaction ¶
func (c *Client) AddMemoToTransaction(ctx context.Context, req *api.AddMemoToTransactionRequest) (*api.TransactionResponse, error)
func (*Client) AddSendTokensOutput ¶
func (c *Client) AddSendTokensOutput(ctx context.Context, req *api.AddSendTokensOutputRequest) (*api.TransactionResponse, error)
func (*Client) AdiList ¶
func (c *Client) AdiList(ctx context.Context, req *api.AdiListRequest) (*api.AdiListResponse, error)
func (*Client) AdoptVault ¶
func (c *Client) AdoptVault(ctx context.Context, req *api.AdoptVaultRequest) (*api.AdoptVaultResponse, error)
func (*Client) ConvertWallet ¶
func (c *Client) ConvertWallet(ctx context.Context, req *api.ConvertWalletRequest) (*api.ConvertWalletResponse, error)
func (*Client) CopyVaultSanitized ¶ added in v0.6.3
func (c *Client) CopyVaultSanitized(ctx context.Context, req *api.CopyVaultSanitizedRequest) (*api.CopyVaultSanitizedResponse, error)
func (*Client) CreateEnvelope ¶
func (c *Client) CreateEnvelope(ctx context.Context, req *api.CreateEnvelopeRequest) (*api.CreateEnvelopeResponse, error)
func (*Client) CreateTransaction ¶
func (c *Client) CreateTransaction(ctx context.Context, req *api.CreateTransactionRequest) (*api.TransactionResponse, error)
func (*Client) CreateVault ¶
func (c *Client) CreateVault(ctx context.Context, req *api.CreateVaultRequest) (*api.CreateVaultResponse, error)
func (*Client) CreateWallet ¶
func (c *Client) CreateWallet(ctx context.Context, req *api.CreateWalletRequest) (*api.CreateWalletResponse, error)
func (*Client) Decode ¶
func (c *Client) Decode(ctx context.Context, req *api.DecodeRequest) (*api.DecodeResponse, error)
func (*Client) DeleteTransaction ¶
func (c *Client) DeleteTransaction(ctx context.Context, req *api.DeleteTransactionRequest) (*api.TransactionResponse, error)
func (*Client) Encode ¶
func (c *Client) Encode(ctx context.Context, req *api.EncodeRequest) (*api.EncodeResponse, error)
func (*Client) EncryptVault ¶
func (c *Client) EncryptVault(ctx context.Context, req *api.EncryptVaultRequest) (*api.EncryptVaultResponse, error)
func (*Client) ExportVault ¶
func (c *Client) ExportVault(ctx context.Context, req *api.ExportVaultRequest) (*api.ExportVaultResponse, error)
func (*Client) FindSigner ¶
func (c *Client) FindSigner(ctx context.Context, req *api.FindSignerRequest) (*api.FindSignerResponse, error)
func (*Client) GenerateAddress ¶
func (c *Client) GenerateAddress(ctx context.Context, req *api.GenerateAddressRequest) (*api.GenerateAddressResponse, error)
func (*Client) GenerateMnemonic ¶
func (c *Client) GenerateMnemonic(ctx context.Context, req *api.GenerateMnemonicRequest) (*api.GenerateMnemonicResponse, error)
func (*Client) GetTransaction ¶
func (c *Client) GetTransaction(ctx context.Context, req *api.GetTransactionRequest) (*api.TransactionResponse, error)
func (*Client) ImportKey ¶
func (c *Client) ImportKey(ctx context.Context, req *api.ImportKeyRequest) (*api.ResolveKeyResponse, error)
func (*Client) ImportMnemonic ¶
func (c *Client) ImportMnemonic(ctx context.Context, req *api.ImportMnemonicRequest) (*api.ImportMnemonicResponse, error)
func (*Client) ImportVault ¶
func (c *Client) ImportVault(ctx context.Context, req *api.ImportVaultRequest) (*api.ImportVaultResponse, error)
func (*Client) KeyAssign ¶
func (c *Client) KeyAssign(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
func (*Client) KeyList ¶
func (c *Client) KeyList(ctx context.Context, req *api.KeyListRequest) (*api.KeyListResponse, error)
func (*Client) KeyRemove ¶
func (c *Client) KeyRemove(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
func (*Client) KeyRename ¶
func (c *Client) KeyRename(ctx context.Context, req *api.KeyRotateRequest) (*api.KeyRotateResponse, error)
func (*Client) LedgerGenerateKey ¶
func (*Client) LedgerQueryWallets ¶
func (*Client) ListAccounts ¶
func (c *Client) ListAccounts(ctx context.Context, req *api.ListAccountsRequest) (*api.ListAccountsResponse, error)
func (*Client) ListTransactions ¶
func (c *Client) ListTransactions(ctx context.Context, req *api.ListTransactionsRequest) (*api.ListTransactionsResponse, error)
func (*Client) ListVaults ¶
func (c *Client) ListVaults(ctx context.Context, req *api.ListVaultsRequest) (*api.ListVaultsResponse, error)
func (*Client) LockVault ¶
func (c *Client) LockVault(ctx context.Context, req *api.LockVaultRequest) (*api.LockVaultResponse, error)
func (*Client) OpenVault ¶
func (c *Client) OpenVault(ctx context.Context, req *api.OpenVaultRequest) (*api.OpenVaultResponse, error)
func (*Client) RefreshToken ¶ added in v0.6.0
func (c *Client) RefreshToken(ctx context.Context, req *api.RefreshTokenRequest) (*api.RefreshTokenResponse, error)
func (*Client) RegisterADI ¶
func (c *Client) RegisterADI(ctx context.Context, req *api.RegisterADIRequest) (*api.RegisterADIResponse, error)
func (*Client) RegisterBook ¶
func (c *Client) RegisterBook(ctx context.Context, req *api.RegisterBookRequest) (*api.RegisterBookResponse, error)
func (*Client) RegisterTokenAccount ¶
func (c *Client) RegisterTokenAccount(ctx context.Context, req *api.RegisterTokenAccountRequest) (*api.RegisterTokenAccountResponse, error)
func (*Client) ResetLastUsedOn ¶
func (c *Client) ResetLastUsedOn(ctx context.Context, req *api.ResetLastUsedOnRequest) (*api.ResetLastUsedOnResponse, error)
func (*Client) ResolveKey ¶
func (c *Client) ResolveKey(ctx context.Context, req *api.ResolveKeyRequest) (*api.ResolveKeyResponse, error)
func (*Client) RestoreKeyCounters ¶ added in v0.6.0
func (c *Client) RestoreKeyCounters(ctx context.Context, req *api.RestoreKeyCountersRequest) (*api.RestoreKeyCountersResponse, error)
func (*Client) Set1PasswordRef ¶
func (c *Client) Set1PasswordRef(ctx context.Context, req *api.Set1PasswordRefRequest) (*api.Set1PasswordRefResponse, error)
func (*Client) Sign ¶
func (c *Client) Sign(ctx context.Context, req *api.SignRequest) (*api.SignResponse, error)
func (*Client) SignMessage ¶
func (c *Client) SignMessage(ctx context.Context, req *api.SignMessageRequest) (*api.SignResponse, error)
func (*Client) SignTransaction ¶
func (c *Client) SignTransaction(ctx context.Context, req *api.SignTransactionRequest) (*api.SignResponse, error)
func (*Client) Status ¶
func (c *Client) Status(ctx context.Context, req *api.StatusRequest) (*api.StatusResponse, error)
func (*Client) UnlockVault ¶
func (c *Client) UnlockVault(ctx context.Context, req *api.UnlockVaultRequest) (*api.UnlockVaultResponse, error)
func (*Client) UnregisterBook ¶
func (c *Client) UnregisterBook(ctx context.Context, req *api.UnregisterBookRequest) (*api.UnregisterBookResponse, error)
func (*Client) UnregisterTokenAccount ¶
func (c *Client) UnregisterTokenAccount(ctx context.Context, req *api.UnregisterTokenAccountRequest) (*api.UnregisterTokenAccountResponse, error)
func (*Client) WriteDataTransaction ¶
func (c *Client) WriteDataTransaction(ctx context.Context, req *api.WriteDataRequest) (*api.TransactionResponse, error)
type DefaultTransport ¶
type DefaultTransport struct {
jsonrpc2.Client
}
func (*DefaultTransport) SetTimeout ¶
func (t *DefaultTransport) SetTimeout(timeout time.Duration)
type GeneralServiceServer ¶
type GeneralServiceServer struct {
Service wallet.GeneralService
}
type InteractiveAuthnTransport ¶
type KeyServiceServer ¶
type KeyServiceServer struct {
Service wallet.KeyService
}
type LedgerServiceServer ¶
type LedgerServiceServer struct {
Service wallet.LedgerService
}
type SigningServiceServer ¶
type SigningServiceServer struct {
Service wallet.SigningService
}
type TransactionServiceServer ¶
type TransactionServiceServer struct {
Service wallet.TransactionService
}
type Transport ¶
type Transport interface { Request(ctx context.Context, server, method string, params, result interface{}) error SetTimeout(time.Duration) }
func DialTransport ¶
DialTransport returns a Transport that uses the given function to dial connections.
func NetDialTransport ¶
NetDialTransport uses net.Dial to dial the given network address.
type VaultServiceServer ¶
type VaultServiceServer struct {
Service wallet.VaultService
}
Click to show internal directories.
Click to hide internal directories.