Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@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 0 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.