Preparing search index...
The search index is not available
@threefold/tfchain_client
@threefold/tfchain_client
Contracts
Class Contracts
Hierarchy
QueryContracts
Contracts
Index
Constructors
constructor
Properties
client
Methods
approve
Service
bill
Service
cancel
cancel
Service
contract
Lock
create
Name
create
Node
create
Rent
create
Service
get
get
Contract
Id
By
Active
Rent
For
Node
get
Contract
Id
By
Name
get
Contract
Id
By
Node
Id
And
Hash
get
Dedicated
Node
Extra
Fee
get
Deletion
Time
get
Service
set
Dedicated
Node
Extra
Fee
set
Service
Fees
set
Service
Metadata
update
Node
Constructors
constructor
new
Contracts
(
client
:
Client
)
:
Contracts
Parameters
client:
Client
Returns
Contracts
Properties
client
client
:
Client
Methods
approve
Service
approve
Service
(
options
:
ApproveServiceOptions
)
:
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
Parameters
options:
ApproveServiceOptions
Returns
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
bill
Service
bill
Service
(
options
:
BillServiceOptions
)
:
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
Parameters
options:
BillServiceOptions
Returns
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
cancel
cancel
(
options
:
CancelOptions
)
:
Promise
<
ExtrinsicResult
<
number
>
>
Parameters
options:
CancelOptions
Returns
Promise
<
ExtrinsicResult
<
number
>
>
cancel
Service
cancel
Service
(
options
:
CancelServiceOptions
)
:
Promise
<
ExtrinsicResult
<
number
>
>
Parameters
options:
CancelServiceOptions
Returns
Promise
<
ExtrinsicResult
<
number
>
>
contract
Lock
contract
Lock
(
options
:
ContractLockOptions
)
:
Promise
<
ContractLock
>
Parameters
options:
ContractLockOptions
Returns
Promise
<
ContractLock
>
create
Name
create
Name
(
options
:
CreateNameOptions
)
:
Promise
<
ExtrinsicResult
<
Contract
>
>
Parameters
options:
CreateNameOptions
Returns
Promise
<
ExtrinsicResult
<
Contract
>
>
create
Node
create
Node
(
options
:
CreateNodeOptions
)
:
Promise
<
ExtrinsicResult
<
Contract
>
>
Parameters
options:
CreateNodeOptions
Returns
Promise
<
ExtrinsicResult
<
Contract
>
>
create
Rent
create
Rent
(
options
:
CreateRentOptions
)
:
Promise
<
ExtrinsicResult
<
Contract
>
>
Parameters
options:
CreateRentOptions
Returns
Promise
<
ExtrinsicResult
<
Contract
>
>
create
Service
create
Service
(
options
:
CreateServiceOptions
)
:
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
Parameters
options:
CreateServiceOptions
Returns
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
get
get
(
options
:
QueryContractsGetOptions
)
:
Promise
<
Contract
>
Parameters
options:
QueryContractsGetOptions
Returns
Promise
<
Contract
>
get
Contract
Id
By
Active
Rent
For
Node
get
Contract
Id
By
Active
Rent
For
Node
(
options
:
QueryContractsGetContractByActiveRentOptions
)
:
Promise
<
number
>
Parameters
options:
QueryContractsGetContractByActiveRentOptions
Returns
Promise
<
number
>
get
Contract
Id
By
Name
get
Contract
Id
By
Name
(
options
:
QueryContractGetContractByNameOptions
)
:
Promise
<
number
>
Parameters
options:
QueryContractGetContractByNameOptions
Returns
Promise
<
number
>
get
Contract
Id
By
Node
Id
And
Hash
get
Contract
Id
By
Node
Id
And
Hash
(
options
:
QueryContractGetContractByIdAndHashOptions
)
:
Promise
<
number
>
Parameters
options:
QueryContractGetContractByIdAndHashOptions
Returns
Promise
<
number
>
get
Dedicated
Node
Extra
Fee
get
Dedicated
Node
Extra
Fee
(
options
:
GetDedicatedNodePriceOptions
)
:
Promise
<
number
>
Parameters
options:
GetDedicatedNodePriceOptions
Returns
Promise
<
number
>
get
Deletion
Time
get
Deletion
Time
(
options
:
QueryContractsGetOptions
)
:
Promise
<
number
>
Parameters
options:
QueryContractsGetOptions
Returns
Promise
<
number
>
get
Service
get
Service
(
options
:
QueryContractGetServiceOptions
)
:
Promise
<
ServiceContract
>
Parameters
options:
QueryContractGetServiceOptions
Returns
Promise
<
ServiceContract
>
set
Dedicated
Node
Extra
Fee
set
Dedicated
Node
Extra
Fee
(
options
:
SetDedicatedNodeExtraFeesOptions
)
:
Promise
<
ExtrinsicResult
<
unknown
>
>
Parameters
options:
SetDedicatedNodeExtraFeesOptions
Returns
Promise
<
ExtrinsicResult
<
unknown
>
>
set
Service
Fees
set
Service
Fees
(
options
:
SetServiceFeesOptions
)
:
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
Parameters
options:
SetServiceFeesOptions
Returns
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
set
Service
Metadata
set
Service
Metadata
(
options
:
SetServiceMetadataOptions
)
:
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
Parameters
options:
SetServiceMetadataOptions
Returns
Promise
<
ExtrinsicResult
<
ServiceContract
>
>
update
Node
update
Node
(
options
:
UpdateNodeOptions
)
:
Promise
<
ExtrinsicResult
<
Contract
>
>
Parameters
options:
UpdateNodeOptions
Returns
Promise
<
ExtrinsicResult
<
Contract
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@threefold/tfchain_
client
Contracts
constructor
client
approve
Service
bill
Service
cancel
cancel
Service
contract
Lock
create
Name
create
Node
create
Rent
create
Service
get
get
Contract
Id
By
Active
Rent
For
Node
get
Contract
Id
By
Name
get
Contract
Id
By
Node
Id
And
Hash
get
Dedicated
Node
Extra
Fee
get
Deletion
Time
get
Service
set
Dedicated
Node
Extra
Fee
set
Service
Fees
set
Service
Metadata
update
Node
Generated using
TypeDoc