Search
Preparing search index...
The search index is not available
@threefold/grid_client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@threefold/grid_client
tfchain
Class tfchain
Hierarchy
tfchain
Implements
blockchainInterface
Index
Constructors
constructor
Properties
activationURL
backend
Storage
config
file
Name
keypair
Type
mnemonic
network
store
Secret
substrateURL
tf
Client
Methods
_load
assets
balance
By
Address
create
create
Account
delete
exist
get
get
Mnemonics
get
Path
init
list
pay
save
save
IfKVStore
Backend
sign
update
Constructors
constructor
new tfchain
(
config
:
GridClientConfig
)
:
tfchain
Parameters
config:
GridClientConfig
Returns
tfchain
Properties
activationURL
activationURL
:
string
backend
Storage
backend
Storage
:
BackendStorage
config
config
:
GridClientConfig
file
Name
file
Name
:
string
= "tfchain.json"
keypair
Type
keypair
Type
:
KeypairType
mnemonic
mnemonic
:
string
network
network
:
string
store
Secret
store
Secret
:
string
substrateURL
substrateURL
:
string
tf
Client
tf
Client
:
TFClient
Methods
_load
_load
(
)
:
Promise
<
any
[]
>
Returns
Promise
<
any
[]
>
assets
assets
(
options
:
BlockchainGetModel
)
:
Promise
<
BlockchainAssetsModel
>
Parameters
options:
BlockchainGetModel
Returns
Promise
<
BlockchainAssetsModel
>
balance
By
Address
balance
By
Address
(
options
:
TfchainWalletBalanceByAddressModel
)
:
Promise
<
Balance
>
Parameters
options:
TfchainWalletBalanceByAddressModel
Returns
Promise
<
Balance
>
create
create
(
options
:
TfchainCreateModel
)
:
Promise
<
BlockchainCreateResultModel
>
Parameters
options:
TfchainCreateModel
Returns
Promise
<
BlockchainCreateResultModel
>
create
Account
create
Account
(
relay
:
string
, disconnect
?:
boolean
)
:
Promise
<
{
mnemonic
:
string
;
public_key
:
string
;
twinId
:
number
}
>
Parameters
relay:
string
disconnect:
boolean
= false
Returns
Promise
<
{
mnemonic
:
string
;
public_key
:
string
;
twinId
:
number
}
>
delete
delete
(
options
:
BlockchainDeleteModel
)
:
Promise
<
string
>
Parameters
options:
BlockchainDeleteModel
Returns
Promise
<
string
>
exist
exist
(
options
:
BlockchainGetModel
)
:
Promise
<
boolean
>
Parameters
options:
BlockchainGetModel
Returns
Promise
<
boolean
>
get
get
(
options
:
BlockchainGetModel
)
:
Promise
<
BlockchainGetResultModel
>
Parameters
options:
BlockchainGetModel
Returns
Promise
<
BlockchainGetResultModel
>
get
Mnemonics
get
Mnemonics
(
name
:
string
)
:
Promise
<
any
>
Parameters
name:
string
Returns
Promise
<
any
>
get
Path
get
Path
(
)
:
string
Returns
string
init
init
(
options
:
TfchainWalletInitModel
)
:
Promise
<
string
>
Parameters
options:
TfchainWalletInitModel
Returns
Promise
<
string
>
list
list
(
)
:
Promise
<
BlockchainListResultModel
[]
>
Returns
Promise
<
BlockchainListResultModel
[]
>
pay
pay
(
options
:
TfchainWalletTransferModel
)
:
Promise
<
void
>
Parameters
options:
TfchainWalletTransferModel
Returns
Promise
<
void
>
save
save
(
name
:
string
, mnemonic
:
string
)
:
Promise
<
void
>
Parameters
name:
string
mnemonic:
string
Returns
Promise
<
void
>
Private
save
IfKVStore
Backend
save
IfKVStore
Backend
(
extrinsics
:
any
)
:
Promise
<
void
>
Parameters
extrinsics:
any
Returns
Promise
<
void
>
sign
sign
(
options
:
BlockchainSignModel
)
:
Promise
<
string
>
Parameters
options:
BlockchainSignModel
Returns
Promise
<
string
>
update
update
(
options
:
TfchainWalletInitModel
)
:
Promise
<
string
>
Parameters
options:
TfchainWalletInitModel
Returns
Promise
<
string
>
Exports
tfchain
constructor
activationURL
backend
Storage
config
file
Name
keypair
Type
mnemonic
network
store
Secret
substrateURL
tf
Client
_load
assets
balance
By
Address
create
create
Account
delete
exist
get
get
Mnemonics
get
Path
init
list
pay
save
save
IfKVStore
Backend
sign
update
Generated using
TypeDoc