Skip to main content

Class: WalletExtService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WalletExtService(_debug, _trpc, _wallet)

Parameters

NameType
_debugDebugService
_trpcTrpcService
_walletWalletService

Properties

_debug

Private _debug: DebugService


_trpc

Private _trpc: TrpcService


_wallet

Private _wallet: WalletService

Methods

auth

auth(params): Promise<undefined | { app: string ; stake: string }>

Parameters

NameType
paramsObject
params.appstring

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

NameType
paramsObject
params.policiesstring[]

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

NameType
paramsObject
params.policiesstring[]

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

NameType
paramsObject
params.outputs{ address: string ; assets: { quantity: string | number ; unit: string }[] }[]

Returns

Promise<string>


signAndSubmit

signAndSubmit(params): Promise<string>

Parameters

NameType
paramsObject
params.partialSign?boolean
params.transactionstring

Returns

Promise<string>