Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@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
*/
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/)
The npm package @lunarhq/rosetta-ts-client receives a total of 2 weekly downloads. As such, @lunarhq/rosetta-ts-client popularity was classified as not popular.
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.