youchain-core-method
v1.0.4-alpha.3
Published
Handles the JSON-RPC methods. This package is internally used by youchain.
Downloads
39
Readme
youchain-core-method
This is a sub package of youchain.js
The Method module abstracts the JSON-RPC method and is used within most youchain.js packages.
Installation
npm install youchain-core-method
Exported classes
MethodModuleFactory;
AbstractMethod;
AbstractMethodFactory;
/**
* Methods
*/
// Network
GetProtocolVersionMethod;
VersionMethod;
ListeningMethod;
PeerCountMethod;
// Node
GetNodeInfoMethod;
GetCoinbaseMethod;
IsMiningMethod;
IsSyncingMethod;
GetGasPriceMethod;
GetNetworkIdMethod;
// Account
GetAccountsMethod;
GetBalanceMethod;
GetTransactionCountMethod;
RequestAccountsMethod;
// Block
GetBlockNumberMethod;
GetBlockMethod;
GetBlockTransactionCountMethod;
// Transaction
GetTransactionMethod;
GetTransactionFromBlockMethod;
GetTransactionReceipt;
SendRawTransactionMethod;
SignTransactionMethod;
SendTransactionMethod;
// Global
GetCodeMethod;
SignMethod;
CallMethod;
GetStorageAtMethod;
EstimateGasMethod;
GetPastLogsMethod;
GetSha3Method;
// Personal
EcRecoverMethod;
ImportRawKeyMethod;
ListAccountsMethod;
LockAccountMethod;
NewAccountMethod;
PersonalSendTransactionMethod;
PersonalSignMethod;
PersonalSignTransactionMethod;
UnlockAccountMethod;
NewValKeyMethod;
ExportValKeyMethod;
ImportValKeyMethod;
DelValKeyMethod;
UseValKeyMethod;
LockValKeyMethod;
// TxPool
ContentMethod;
InspectMethod;
StatusMethod
// Pool
GetPoolNonceMethod;
GetPoolTransactionMethod;
// Staking
CreateValidator
UpdateValidator
GetValidatorByMainAddress
GetValidators
GetValidatorsStat
GetWithdrawRecords
WithdrawValidator
DepositValidator
SettleValidator
ChangeStatusValidator
GetValidatorRewardsInfo
GetDelegationAddData
GetDelegationSubData
GetDelegationSettleData
GetDelegationsFrom
GetStakingEndBlockReceipt
GetStakingRecord
Types
All the typescript typings are placed in the types folder.