
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@lunarhq/rosetta-ts-client
Advanced tools
This package is for making queries to a Rosetta Node or a Rosetta-compliant service. Read more about Rosetta at [rosetta-api.org](https://www.rosetta-api.org/)
This package is for making queries to a Rosetta Node or a Rosetta-compliant service. Read more about Rosetta at rosetta-api.org
All testnet calls are free. To increase your rate limit or make mainnet queries, get a key at lunar.dev.
All endpoints are Rosetta compliant. Read more about Rosetta at rosetta-api.org
NPM
npm install @lunarhq/rosetta-ts-client
Yarn
yarn add @lunarhq/rosetta-ts-client
Create a new client. Both baseUrl
and headers
are optional. If no baseUrl
is provided, the client will default to lunar.dev.
import { RosettaClient } from '@lunarhq/rosetta-ts-client';
/**
* Initialize Client
* RosettaClient params are optional
*/
const baseUrl = 'https://api.lunar.dev/v1/';
const headers = {
'X-Api-Key': 'XXXXXXXXXX'
}
const client = new RosettaClient({baseUrl, headers});
/**
* Get list of available networks
*/
const metadata = {}
const networks = await client.networksList(metadata)
You can read more about the Rosetta Data API endpoints at rosetta-api.org/docs/data_api_introduction.html
networksList(req: MetadataRequest): Promise<NetworkListResponse>
networkOptions(req: NetworkRequest): Promise<NetworkOptionsResponse>
networkOptions(req: NetworkRequest): Promise<NetworkOptionsResponse>
accountBalance(req: AccountBalanceRequest): Promise<AccountBalanceResponse>
accountCoins(req: AccountCoinsRequest): Promise<AccountCoinsResponse>
block(req: BlockRequest): Promise<BlockResponse>
blockTransaction(req: BlockTransactionRequest): Promise<BlockTransactionResponse>
mempool(req: NetworkRequest): Promise<MempoolResponse>
mempoolTransaction(req: MempoolTransactionRequest): Promise<MempoolTransactionResponse>
Construction endpoints are used to write to a blockchain. You can read more about the Rosetta Construction API endpoints at rosetta-api.org/docs/construction_api_introduction.html
combine(req: ConstructionCombineRequest): Promise<ConstructionCombineResponse>
derive(req: ConstructionDeriveRequest): Promise<ConstructionDeriveResponse>
hash(req: ConstructionHashRequest): Promise<TransactionIdentifierResponse>
metadata(req: rosetta.ConstructionMetadataRequest): Promise<rosetta.ConstructionMetadataResponse>
parse(req: rosetta.ConstructionParseRequest): Promise<rosetta.ConstructionParseResponse>
payloads(req: rosetta.ConstructionPayloadsRequest): Promise<rosetta.ConstructionPayloadsResponse>
preprocess(req: rosetta.ConstructionPreprocessRequest): Promise<rosetta.ConstructionPreprocessResponse>
submit(req: rosetta.ConstructionSubmitRequest): Promise<rosetta.TransactionIdentifierResponse>
FAQs
This package is for making queries to a Rosetta Node or a Rosetta-compliant service. Read more about Rosetta at [rosetta-api.org](https://www.rosetta-api.org/)
We found that @lunarhq/rosetta-ts-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.