Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@eosio-toppings/api-rpc
Advanced tools
RESTful API service making use of the nodeos RPC API wrapper `eosjs` to obtain data from nodeos
RESTful API service making use of the nodeos RPC API wrapper eosjs
to obtain data from nodeos.
Install TypeScript and tsc
(TypeScript Compiler) globally with
yarn global add typescript
Compile the source into js
and watch for changes into ./dist
with the following command:
rm -rf dist && tsc -w
The following API functions all accept a single parameter, a query which is basically an object containing several keys composed of the necessary values to make the RPC API call.
buy_ram
Given a connected endpoint
with private_key, actor, permission, quantity
details, buys ram for the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numbercreate_account
Given a connected endpoint
with private_key, actor, permission
credentials, make an account consisting of new_account_name
with the public new_account_owner_key
and public new_account_active_key
.
If you want to stake cpu, stake net and buy ram, pass the required parameters.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringnew_account_name
- stringnew_account_owner_key
- stringnew_account_active_key
- stringdelagate
- boolean (If the delagate is true then buy ram, stake cpu, and stake net actions are executed)ram_bytes_buy_quantity
- number (default to 8192)stake_net_quantity
- string (default to '1.0000 SYS')stake_cpu_quantity
- string (default to '1.0000 SYS')deploy_contract
Given a connected endpoint
with private_key, account_name, permission, payload
details, deploys contract to the account_name
endpoint
- stringprivate_key
- stringaccount_name
- stringpermission
- stringpayload
- {
abi
: '<abi_file_content>',
wasm
: '<wasm_file_content>'
}get_abi
Given a connected endpoint
, try to get the abi details of account_name
directly from the RPC API
endpoint
- stringaccount_name
- stringget_account_details
Given a connected endpoint
, try to get the account details of account_name
directly with the RPC API
endpoint
- stringaccount_name
- stringget_block
Given a connected endpoint
, try to get the block details of id_or_num
directly from the RPC API
endpoint
- stringid_or_num
- string (it can accept either block ID or block number)get_info
Given a connected endpoint
, try to get basic information about the blockchain at endpoint
endpoint
- stringget_producer_schedule
Given a connected endpoint
, try to get producer schedule in the blockchain at endpoint
endpoint
- stringget_producers
Given a connected endpoint
, try to get producers details in the blockchain at endpoint
endpoint
- stringget_table_rows
Given a connected endpoint
, try to get the rows of multi-index table table_name
of contract_name
, if present
endpoint
- stringcontract_name
- stringtable_name
- stringpush_action
Given a connected endpoint
with private_key, actor, permission
credentials, push an action of action_name
of the account_name
smart contract with parameters contained in payload
endpoint
- stringaccount_name
- stringprivate_key
- stringactor
- stringpermission
- stringaction_name
- stringpayload
- objectsell_ram
Given a connected endpoint
with private_key, actor, permission, quantity
details, sell ram from the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numberGiven a connected endpoint
with private_key, actor, permission, quantity
details, stake cpu for the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numberGiven a connected endpoint
with private_key, actor, permission, quantity
details, stake net for the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numberGiven a connected endpoint
with private_key, actor, permission, quantity
details, unstake cpu for the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numberGiven a connected endpoint
with private_key, actor, permission, quantity
details, unstake net for the account actor
.
endpoint
- stringprivate_key
- stringactor
- stringpermission
- stringquantity
- numberupdate_auth
Given a connected endpoint
with private_key, account_name
credentials, push one or two updateauth
actions in a single transaction in order to update the public key(s) of account_name
The new_active_key
and new_owner_key
denote public keys, and can either be passed at the same time or passed one at a time.
endpoint
- stringaccount_name
- stringprivate_key
- stringnew_active_key
- stringnew_owner_key
- stringFAQs
RESTful API service making use of the nodeos RPC API wrapper `eosjs` to obtain data from nodeos
The npm package @eosio-toppings/api-rpc receives a total of 1 weekly downloads. As such, @eosio-toppings/api-rpc popularity was classified as not popular.
We found that @eosio-toppings/api-rpc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.