{"repo":"pokt-network/pocket-js","free":true,"listed":false,"github":"https://github.com/pokt-network/pocket-js","clone":"git clone https://github.com/pokt-network/pocket-js.git","description":"Complete Pocket Protocol library and implementation in Javascript.","language":"TypeScript","stars":11,"topics":["blockchain","pocket-network","javascript","infrastructure","web3"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"PocketJS A complete, fast and slim SDK to interact with the Pocket Network. Installation You can install the packages using your favorite package manager like yarn, npm, or pnpm. See the usages below to know which package needs to be installed in your project. Usage Send a read-only query This example queries the latest height, a wallet's balance, and the list of jailed nodes in the network specified by PoktEndpoint . PoktEndpoint is a string representing an endpoint URL to any Pocket-based network, POKT Mainnet, Testnet or your own devnet. It may or may not contain basic authentication credentials like \"https://scott:tiger@example.pokt.network\". You can get an endpoint to POKT Mainnet from one of Pocket's Gateways. See https://docs.pokt.network/developers/use-a-gateway for details. For example, Grove's endpoint is like https://mainnet.rpc.grove.city/v1/ . Output: Send POKT This example sends 1 POKT from a wallet associated with SIGNER PRIVATE KEY to the address fc1c79e7efecf89f071ebb2ba7c6f5a98dcdfc3c in POKT Testnet and prints the transaction hash. To send tokens, a send message must be signed by a sender account's private key. There are two ways to import a private key into TransactionBuilder . 1. KeyManager.fromPrivateKey takes a private key in a raw format. You can get it from \"pocket accounts export-raw\" command. This example demonstrates this usecase. 2. KeyManager.fromPPK takes the content of an armored keypair file and its passphrade. A keypair file can be exported b","default_branch":null,"files":null,"tree":[],"storefront":"/r/pokt-network","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pokt-network/pocket-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}