Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cosmos-rest

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmos-rest

A js sdk for cosmos blockchain

  • 0.1.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cosmos-rest

JavaScript client for the Cosmos SDK API

Useage

npm i cosmos-rest -s

import Client from 'cosmos-rest';
//init cosmos server provider
const cosmosClient = new Client("http://192.168.16.11:1314");
/**
* @address  The address you should  query
*/
cosmosClient.query_account(address[, callback])
//Join Game
cosmosClient.join_game(signMsg[,callback])
//获取gsid
cosmosClient.get_gc(json[,callback])
//游戏行为
cosmosClient.player_action(gsid,json[,callback])
//退出游戏
cosmosClient.end_game(gsid,json[,callback])
//查询游戏筹码
cosmosClient.query_amount(gsid,json[,callback])
//状态迁移
cosmosClient.game_relay(json[,callback])
//交易查询
cosmosClient.query_tx(txhash[,callback])
//结束游戏并进行结算
cosmosClient.end_game_session(gsid[,callback])

Keywords

FAQs

Package last updated on 20 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc