Preparing search index...
The search index is not available
SDK Core Documentation - v0.0.2-5
SDK Core Documentation
ChainAPI
Class ChainAPI
Index
Constructors
constructor
Methods
compute_
transaction
get_
abi
get_
account
get_
accounts_
by_
authorizers
get_
activated_
protocol_
features
get_
block
get_
block_
header_
state
get_
block_
info
get_
code
get_
currency_
balance
get_
currency_
stats
get_
info
get_
producer_
schedule
get_
raw_
abi
get_
table_
by_
scope
get_
table_
rows
get_
transaction_
status
push_
transaction
send_
read_
only_
transaction
send_
transaction
send_
transaction2
Constructors
constructor
new
ChainAPI
(
client
)
:
ChainAPI
Parameters
client
:
APIClient
Returns
ChainAPI
Methods
compute_
transaction
compute_
transaction
(
tx
)
:
Promise
<
SendTransactionResponse
>
Parameters
tx
:
SignedTransactionType
|
PackedTransaction
Returns
Promise
<
SendTransactionResponse
>
get_
abi
get_
abi
(
accountName
)
:
Promise
<
GetAbiResponse
>
Parameters
accountName
:
NameType
Returns
Promise
<
GetAbiResponse
>
get_
account
get_
account
(
accountName
,
responseType
?
)
:
Promise
<
AccountObject
>
Parameters
accountName
:
NameType
responseType
:
typeof
AccountObject
= AccountObject
Returns
Promise
<
AccountObject
>
get_
accounts_
by_
authorizers
get_
accounts_
by_
authorizers
(
params
)
:
Promise
<
AccountsByAuthorizers
>
Parameters
params
:
GetAccountsByAuthorizersParams
Returns
Promise
<
AccountsByAuthorizers
>
get_
activated_
protocol_
features
get_
activated_
protocol_
features
(
params
?
)
:
Promise
<
GetProtocolFeaturesResponse
>
Parameters
Optional
params
:
GetProtocolFeaturesParams
Returns
Promise
<
GetProtocolFeaturesResponse
>
get_
block
get_
block
(
block_num_or_id
)
:
Promise
<
GetBlockResponse
>
Parameters
block_num_or_id
:
string
|
number
|
ArrayBuffer
|
ArrayBufferView
|
ArrayLike
<
number
>
|
Bytes
|
UInt32
|
Int
|
BN
|
BlockId
|
{
blockNum
:
UInt32Type
;
checksum
:
Checksum256Type
;
}
Returns
Promise
<
GetBlockResponse
>
get_
block_
header_
state
get_
block_
header_
state
(
block_num_or_id
)
:
Promise
<
GetBlockHeaderStateResponse
>
Parameters
block_num_or_id
:
string
|
number
|
ArrayBuffer
|
ArrayBufferView
|
ArrayLike
<
number
>
|
Bytes
|
UInt32
|
Int
|
BN
|
BlockId
|
{
blockNum
:
UInt32Type
;
checksum
:
Checksum256Type
;
}
Returns
Promise
<
GetBlockHeaderStateResponse
>
get_
block_
info
get_
block_
info
(
block_num
)
:
Promise
<
GetBlockInfoResponse
>
Parameters
block_num
:
UInt32Type
Returns
Promise
<
GetBlockInfoResponse
>
get_
code
get_
code
(
accountName
)
:
Promise
<
GetCodeResponse
>
Parameters
accountName
:
NameType
Returns
Promise
<
GetCodeResponse
>
get_
currency_
balance
get_
currency_
balance
(
contract
,
accountName
,
symbol
?
)
:
Promise
<
Asset
[]
>
Parameters
contract
:
NameType
accountName
:
NameType
Optional
symbol
:
string
Returns
Promise
<
Asset
[]
>
get_
currency_
stats
get_
currency_
stats
(
contract
,
symbol
)
:
Promise
<
GetCurrencyStatsResponse
>
Parameters
contract
:
NameType
symbol
:
string
Returns
Promise
<
GetCurrencyStatsResponse
>
get_
info
get_
info
(
)
:
Promise
<
GetInfoResponse
>
Returns
Promise
<
GetInfoResponse
>
get_
producer_
schedule
get_
producer_
schedule
(
)
:
Promise
<
GetProducerScheduleResponse
>
Returns
Promise
<
GetProducerScheduleResponse
>
get_
raw_
abi
get_
raw_
abi
(
accountName
)
:
Promise
<
GetRawAbiResponse
>
Parameters
accountName
:
NameType
Returns
Promise
<
GetRawAbiResponse
>
get_
table_
by_
scope
get_
table_
by_
scope
(
params
)
:
Promise
<
GetTableByScopeResponse
>
Parameters
params
:
GetTableByScopeParams
Returns
Promise
<
GetTableByScopeResponse
>
get_
table_
rows
get_
table_
rows
<
Index
>
(
params
)
:
Promise
<
GetTableRowsResponse
<
Index
,
any
>
>
Type Parameters
Index
extends
TableIndexType
=
Name
Parameters
params
:
GetTableRowsParams
<
Index
>
Returns
Promise
<
GetTableRowsResponse
<
Index
,
any
>
>
get_
table_
rows
<
Key
>
(
params
)
:
Promise
<
GetTableRowsResponse
<
TableIndexTypes
[
Key
]
,
any
>
>
Type Parameters
Key
extends
keyof
TableIndexTypes
Parameters
params
:
GetTableRowsParamsKeyed
<
TableIndexTypes
[
Key
]
,
Key
>
Returns
Promise
<
GetTableRowsResponse
<
TableIndexTypes
[
Key
]
,
any
>
>
get_
table_
rows
<
Row
,
Index
>
(
params
)
:
Promise
<
GetTableRowsResponse
<
Index
,
InstanceType
<
Row
>
>
>
Type Parameters
Row
extends
ABISerializableConstructor
Index
extends
TableIndexType
=
Name
Parameters
params
:
GetTableRowsParamsTyped
<
Index
,
Row
>
Returns
Promise
<
GetTableRowsResponse
<
Index
,
InstanceType
<
Row
>
>
>
get_
table_
rows
<
Row
,
Key
>
(
params
)
:
Promise
<
GetTableRowsResponse
<
TableIndexTypes
[
Key
]
,
InstanceType
<
Row
>
>
>
Type Parameters
Row
extends
ABISerializableConstructor
Key
extends
keyof
TableIndexTypes
Parameters
params
:
GetTableRowsParamsTyped
<
TableIndexTypes
[
Key
]
,
Row
>
&
GetTableRowsParamsKeyed
<
TableIndexTypes
[
Key
]
,
Key
>
Returns
Promise
<
GetTableRowsResponse
<
TableIndexTypes
[
Key
]
,
InstanceType
<
Row
>
>
>
get_
transaction_
status
get_
transaction_
status
(
id
)
:
Promise
<
GetTransactionStatusResponse
>
Parameters
id
:
Checksum256Type
Returns
Promise
<
GetTransactionStatusResponse
>
push_
transaction
push_
transaction
(
tx
)
:
Promise
<
PushTransactionResponse
>
Parameters
tx
:
SignedTransactionType
|
PackedTransaction
Returns
Promise
<
PushTransactionResponse
>
send_
read_
only_
transaction
send_
read_
only_
transaction
(
tx
)
:
Promise
<
SendTransactionResponse
>
Parameters
tx
:
SignedTransactionType
|
PackedTransaction
Returns
Promise
<
SendTransactionResponse
>
send_
transaction
send_
transaction
(
tx
)
:
Promise
<
SendTransactionResponse
>
Parameters
tx
:
SignedTransactionType
|
PackedTransaction
Returns
Promise
<
SendTransactionResponse
>
send_
transaction2
send_
transaction2
(
tx
,
options
?
)
:
Promise
<
SendTransaction2Response
>
Parameters
tx
:
SignedTransactionType
|
PackedTransaction
Optional
options
:
SendTransaction2Options
Returns
Promise
<
SendTransaction2Response
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
compute_
transaction
get_
abi
get_
account
get_
accounts_
by_
authorizers
get_
activated_
protocol_
features
get_
block
get_
block_
header_
state
get_
block_
info
get_
code
get_
currency_
balance
get_
currency_
stats
get_
info
get_
producer_
schedule
get_
raw_
abi
get_
table_
by_
scope
get_
table_
rows
get_
transaction_
status
push_
transaction
send_
read_
only_
transaction
send_
transaction
send_
transaction2
SDK Core Documentation - v0.0.2-5
Loading...