Search
Preparing search index...
The search index is not available
Secret.js Docs
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Secret.js Docs
ComputeQuerier
Class ComputeQuerier
Hierarchy
ComputeQuerier
Snip20Querier
Snip721Querier
Index
Constructors
constructor
Methods
address
By
Label
code
code
Hash
By
Code
Id
code
Hash
By
Contract
Address
codes
contract
Info
contracts
By
Code
Id
label
By
Address
query
Contract
Constructors
constructor
new
Compute
Querier
(
url
:
string
, encryption
?:
EncryptionUtils
)
:
ComputeQuerier
Parameters
url:
string
Optional
encryption:
EncryptionUtils
Returns
ComputeQuerier
Methods
address
By
Label
address
By
Label
(
req
:
QueryByLabelRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryContractAddressResponse
>
Parameters
req:
QueryByLabelRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryContractAddressResponse
>
code
code
(
req
:
QueryByCodeIdRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryCodeResponse
>
Parameters
req:
QueryByCodeIdRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryCodeResponse
>
code
Hash
By
Code
Id
code
Hash
By
Code
Id
(
req
:
QueryByCodeIdRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryCodeHashResponse
>
Parameters
req:
QueryByCodeIdRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryCodeHashResponse
>
code
Hash
By
Contract
Address
code
Hash
By
Contract
Address
(
req
:
QueryByContractAddressRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryCodeHashResponse
>
Parameters
req:
QueryByContractAddressRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryCodeHashResponse
>
codes
codes
(
req
:
Empty
, headers
?:
HeadersInit
)
:
Promise
<
QueryCodesResponse
>
Parameters
req:
Empty
Optional
headers:
HeadersInit
Returns
Promise
<
QueryCodesResponse
>
contract
Info
contract
Info
(
req
:
QueryByContractAddressRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryContractInfoResponse
>
Parameters
req:
QueryByContractAddressRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryContractInfoResponse
>
contracts
By
Code
Id
contracts
By
Code
Id
(
req
:
QueryByCodeIdRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryContractsByCodeIdResponse
>
Parameters
req:
QueryByCodeIdRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryContractsByCodeIdResponse
>
label
By
Address
label
By
Address
(
req
:
QueryByContractAddressRequest
, headers
?:
HeadersInit
)
:
Promise
<
QueryContractLabelResponse
>
Parameters
req:
QueryByContractAddressRequest
Optional
headers:
HeadersInit
Returns
Promise
<
QueryContractLabelResponse
>
query
Contract
query
Contract
<
T
,
R
>
(
__namedParameters
:
QueryContractRequest
<
T
>
, headers
?:
HeadersInit
)
:
Promise
<
R
>
Query a Secret Contract. May return a string on error.
Type parameters
T
:
object
R
:
unknown
Parameters
__namedParameters:
QueryContractRequest
<
T
>
Optional
headers:
HeadersInit
Returns
Promise
<
R
>
Exports
<internal>
Compute
Querier
constructor
address
By
Label
code
code
Hash
By
Code
Id
code
Hash
By
Contract
Address
codes
contract
Info
contracts
By
Code
Id
label
By
Address
query
Contract
Query a Secret Contract. May return a string on error.