@temple-wallet/dapp › TempleWallet
- TempleWallet
- WalletProvider
- broadcast
- connect
- formatParameters
- getPKH
- mapDelegateParamsToWalletParams
- mapOriginateParamsToWalletParams
- mapTransferParamsToWalletParams
- reconnect
- removeDefaultParams
- sendOperations
- sign
- toTezos
+ new TempleWallet(appName
: string, existingPermission?
: TempleDAppPermission): TempleWallet
Defined in taquito-wallet.ts:32
Parameters:
Name | Type |
---|---|
appName |
string |
existingPermission? |
TempleDAppPermission |
Returns: TempleWallet
• appName: string
Defined in taquito-wallet.ts:35
• permission: TempleDAppPermission = null
Defined in taquito-wallet.ts:32
▪ getCurrentPermission: getCurrentPermission = getCurrentPermission
Defined in taquito-wallet.ts:29
▪ isAvailable: isAvailable = isAvailable
Defined in taquito-wallet.ts:27
▪ onAvailabilityChange: onAvailabilityChange = onAvailabilityChange
Defined in taquito-wallet.ts:28
▪ onPermissionChange: onPermissionChange = onPermissionChange
Defined in taquito-wallet.ts:30
• get connected(): boolean
Defined in taquito-wallet.ts:43
Returns: boolean
▸ broadcast(signedOpBytes
: string): Promise‹string›
Defined in taquito-wallet.ts:112
Parameters:
Name | Type |
---|---|
signedOpBytes |
string |
Returns: Promise‹string›
▸ connect(network
: TempleDAppNetwork, opts
: object): Promise‹void›
Defined in taquito-wallet.ts:54
Parameters:
▪ network: TempleDAppNetwork
▪Default value
opts: object= { forcePermission: false }
Name | Type | Default |
---|---|---|
forcePermission |
boolean | false |
Returns: Promise‹void›
▸ formatParameters(params
: any): any
Defined in taquito-wallet.ts:117
Parameters:
Name | Type |
---|---|
params |
any |
Returns: any
▸ getPKH(): Promise‹string›
Defined in taquito-wallet.ts:67
Returns: Promise‹string›
▸ mapDelegateParamsToWalletParams(params
: function): Promise‹any›
Defined in taquito-wallet.ts:92
Parameters:
▪ params: function
▸ (): Promise‹WalletDelegateParams›
Returns: Promise‹any›
▸ mapOriginateParamsToWalletParams(params
: function): Promise‹any›
Defined in taquito-wallet.ts:82
Parameters:
▪ params: function
▸ (): Promise‹WalletOriginateParams›
Returns: Promise‹any›
▸ mapTransferParamsToWalletParams(params
: function): Promise‹any›
Defined in taquito-wallet.ts:72
Parameters:
▪ params: function
▸ (): Promise‹WalletTransferParams›
Returns: Promise‹any›
▸ reconnect(network
: TempleDAppNetwork): Promise‹void›
Defined in taquito-wallet.ts:63
Parameters:
Name | Type |
---|---|
network |
TempleDAppNetwork |
Returns: Promise‹void›
▸ removeDefaultParams(params
: WalletTransferParams | WalletOriginateParams | WalletDelegateParams, operatedParams
: any): any
Defined in taquito-wallet.ts:130
Parameters:
Name | Type |
---|---|
params |
WalletTransferParams | WalletOriginateParams | WalletDelegateParams |
operatedParams |
any |
Returns: any
▸ sendOperations(opParams
: any[]): Promise‹string›
Defined in taquito-wallet.ts:102
Parameters:
Name | Type |
---|---|
opParams |
any[] |
Returns: Promise‹string›
▸ sign(payload
: string): Promise‹string›
Defined in taquito-wallet.ts:107
Parameters:
Name | Type |
---|---|
payload |
string |
Returns: Promise‹string›
▸ toTezos(): TezosToolkit‹›
Defined in taquito-wallet.ts:47
Returns: TezosToolkit‹›