Preparing search index...
The search index is not available
Documentation
Documentation
@fadroma/scrt
SecretJS
Snip20Querier
Class Snip20Querier
Hierarchy (
view full
)
SecretJS
.
Query
.
ComputeQuerier
Snip20Querier
Index
Constructors
constructor
Methods
Get
Allowance
address
By
Label
code
code
Hash
By
Code
Id
code
Hash
By
Contract
Address
codes
contract
Info
contracts
By
Code
Id
get
Balance
get
Snip20
Params
get
Transaction
History
get
Transfer
History
label
By
Address
query
Contract
Constructors
constructor
new
Snip20
Querier
(
url
,
encryption
?
)
:
SecretJS
.
Snip20Querier
Parameters
url
:
string
Optional
encryption
:
SecretJS
.
EncryptionUtils
Returns
SecretJS
.
Snip20Querier
Methods
Get
Allowance
Get
Allowance
(
__namedParameters
)
:
Promise
<
GetAllowanceResponse
>
Parameters
__namedParameters
:
{
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
;
contract
:
SecretContract
;
owner
:
string
;
spender
:
string
;
}
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
Optional
key
?:
string
Optional
permit
?:
SecretJS
.
Permit
contract
:
SecretContract
owner
:
string
spender
:
string
Returns
Promise
<
GetAllowanceResponse
>
address
By
Label
address
By
Label
(
req
,
headers
?
)
:
Promise
<
QueryContractAddressResponse
>
Parameters
req
:
QueryByLabelRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryContractAddressResponse
>
code
code
(
req
,
headers
?
)
:
Promise
<
QueryCodeResponse
>
Parameters
req
:
QueryByCodeIdRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryCodeResponse
>
code
Hash
By
Code
Id
code
Hash
By
Code
Id
(
req
,
headers
?
)
:
Promise
<
QueryCodeHashResponse
>
Parameters
req
:
QueryByCodeIdRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryCodeHashResponse
>
code
Hash
By
Contract
Address
code
Hash
By
Contract
Address
(
req
,
headers
?
)
:
Promise
<
QueryCodeHashResponse
>
Parameters
req
:
QueryByContractAddressRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryCodeHashResponse
>
codes
codes
(
req
,
headers
?
)
:
Promise
<
QueryCodesResponse
>
Parameters
req
:
Empty
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryCodesResponse
>
contract
Info
contract
Info
(
req
,
headers
?
)
:
Promise
<
QueryContractInfoResponse
>
Parameters
req
:
QueryByContractAddressRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryContractInfoResponse
>
contracts
By
Code
Id
contracts
By
Code
Id
(
req
,
headers
?
)
:
Promise
<
QueryContractsByCodeIdResponse
>
Parameters
req
:
QueryByCodeIdRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryContractsByCodeIdResponse
>
get
Balance
get
Balance
(
__namedParameters
)
:
Promise
<
GetBalanceResponse
>
Parameters
__namedParameters
:
{
address
:
string
;
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
;
contract
:
SecretContract
;
}
address
:
string
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
Optional
key
?:
string
Optional
permit
?:
SecretJS
.
Permit
contract
:
SecretContract
Returns
Promise
<
GetBalanceResponse
>
get
Snip20
Params
get
Snip20
Params
(
__namedParameters
)
:
Promise
<
GetTokenParamsResponse
>
Parameters
__namedParameters
:
{
contract
:
SecretContract
;
}
contract
:
SecretContract
Returns
Promise
<
GetTokenParamsResponse
>
get
Transaction
History
get
Transaction
History
(
__namedParameters
)
:
Promise
<
TransactionHistoryResponse
>
Parameters
__namedParameters
:
{
address
:
string
;
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
;
contract
:
SecretContract
;
page
?:
number
;
page_size
:
number
;
should_filter_decoys
?:
boolean
;
}
address
:
string
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
Optional
key
?:
string
Optional
permit
?:
SecretJS
.
Permit
contract
:
SecretContract
Optional
page
?:
number
page_
size
:
number
Optional
should_
filter_
decoys
?:
boolean
Returns
Promise
<
TransactionHistoryResponse
>
get
Transfer
History
get
Transfer
History
(
__namedParameters
)
:
Promise
<
TransferHistoryResponse
>
Parameters
__namedParameters
:
{
address
:
string
;
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
;
contract
:
SecretContract
;
page
?:
number
;
page_size
:
number
;
should_filter_decoys
?:
boolean
;
}
address
:
string
auth
:
{
key
?:
string
;
permit
?:
SecretJS
.
Permit
;
}
Optional
key
?:
string
Optional
permit
?:
SecretJS
.
Permit
contract
:
SecretContract
Optional
page
?:
number
page_
size
:
number
Optional
should_
filter_
decoys
?:
boolean
Returns
Promise
<
TransferHistoryResponse
>
label
By
Address
label
By
Address
(
req
,
headers
?
)
:
Promise
<
QueryContractLabelResponse
>
Parameters
req
:
QueryByContractAddressRequest
Optional
headers
:
HeadersInit
Returns
Promise
<
QueryContractLabelResponse
>
query
Contract
query
Contract
<
T
,
R
>
(
__namedParameters
,
headers
?
)
:
Promise
<
R
>
Query a Secret Contract. May return a string on error.
Type Parameters
T
extends
object
R
extends
unknown
Parameters
__namedParameters
:
SecretJS
.
Query
.
QueryContractRequest
<
T
>
Optional
headers
:
HeadersInit
Returns
Promise
<
R
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
Get
Allowance
address
By
Label
code
code
Hash
By
Code
Id
code
Hash
By
Contract
Address
codes
contract
Info
contracts
By
Code
Id
get
Balance
get
Snip20
Params
get
Transaction
History
get
Transfer
History
label
By
Address
query
Contract
Documentation
@fadroma
agent
scrt
cw
oci
create
compile
devnet
@hackbg
ganesha
ensuite
cmds
conf
file
logs
oops
port
repo
CosmJS-ESM Documentation
SecretJS-ESM Docs
Loading...
Generated using
TypeDoc
Query a Secret Contract. May return a string on error.