Class: WalletExtService
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new WalletExtService(_debug, _trpc, _wallet)
Parameters
| Name | Type |
|---|---|
_debug | DebugService |
_trpc | TrpcService |
_wallet | WalletService |
Properties
_debug
• Private _debug: DebugService
_trpc
• Private _trpc: TrpcService
_wallet
• Private _wallet: WalletService
Methods
auth
▸ auth(params): Promise<undefined | { app: string ; stake: string }>
Parameters
| Name | Type |
|---|---|
params | Object |
params.app | string |
Returns
Promise<undefined | { app: string ; stake: string }>
getAccountAssets
▸ getAccountAssets(params): Promise<({ assetName: string ; available?: null | boolean ; policyId: string ; quantity?: number ; rarity?: null | number ; unit: string } | { assetName: string ; available: null | boolean ; id: number ; metadata: null | {} ; policyId: string ; rarity: null | number ; unit: string })[]>
Parameters
| Name | Type |
|---|---|
params | Object |
params.policies | string[] |
Returns
Promise<({ assetName: string ; available?: null | boolean ; policyId: string ; quantity?: number ; rarity?: null | number ; unit: string } | { assetName: string ; available: null | boolean ; id: number ; metadata: null | {} ; policyId: string ; rarity: null | number ; unit: string })[]>
getAccountBalanceByPolicies
▸ getAccountBalanceByPolicies(): Promise<{}>
Returns
Promise<{}>
getAssets
▸ getAssets(params): Promise<never[] | ({ assetName: string ; available?: null | boolean ; policyId: string ; quantity?: number ; rarity?: null | number ; unit: string } | { assetName: string ; available: null | boolean ; id: number ; metadata: null | {} ; policyId: string ; rarity: null | number ; unit: string })[]>
Parameters
| Name | Type |
|---|---|
params | Object |
params.policies | string[] |
Returns
Promise<never[] | ({ assetName: string ; available?: null | boolean ; policyId: string ; quantity?: number ; rarity?: null | number ; unit: string } | { assetName: string ; available: null | boolean ; id: number ; metadata: null | {} ; policyId: string ; rarity: null | number ; unit: string })[]>
getBalanceByPolicies
▸ getBalanceByPolicies(): Promise<BalanceByPolicies>
Returns
Promise<BalanceByPolicies>
sendAssets
▸ sendAssets(params): Promise<string>
Parameters
| Name | Type |
|---|---|
params | Object |
params.outputs | { address: string ; assets: { quantity: string | number ; unit: string }[] }[] |
Returns
Promise<string>
signAndSubmit
▸ signAndSubmit(params): Promise<string>
Parameters
| Name | Type |
|---|---|
params | Object |
params.partialSign? | boolean |
params.transaction | string |
Returns
Promise<string>