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

algosdk

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algosdk - npm Package Compare versions

Comparing version 1.20.0 to 1.21.0

21

dist/cjs/src/client/algod.js
const { default: HTTPClient } = require('./client');
const { setSendTransactionHeaders } = require('./v2/algod/sendRawTransaction');
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 4180, headers = {}) {

@@ -15,2 +16,3 @@ // workaround to allow backwards compatibility for multiple headers

* @returns {*}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -28,2 +30,3 @@ function noteb64ToNote(o) {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -38,2 +41,3 @@ this.status = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -53,2 +57,3 @@ this.healthCheck = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -67,2 +72,3 @@ this.statusAfterBlock = async (roundNumber, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -85,2 +91,3 @@ this.pendingTransactions = async (maxTxns, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -95,2 +102,3 @@ this.versions = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -109,2 +117,3 @@ this.ledgerSupply = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -135,2 +144,3 @@ this.transactionByAddress = async (addr, first = null, last = null, maxTxns = null, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -152,2 +162,3 @@ this.transactionByAddressAndDate = async (addr, fromDate, toDate, maxTxns = null, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -167,2 +178,3 @@ this.transactionById = async (txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -181,2 +193,3 @@ this.transactionInformation = async (addr, txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -195,2 +208,3 @@ this.pendingTransactionInformation = async (txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -206,2 +220,3 @@ this.accountInformation = async (addr, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -216,2 +231,3 @@ this.assetInformation = async (index, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -227,2 +243,3 @@ this.suggestedFee = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -239,2 +256,3 @@ this.sendRawTransaction = async (txn, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -251,2 +269,3 @@ this.sendRawTransactions = async (txns, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -261,2 +280,3 @@ this.getTransactionParams = async (headerObj = {}) => {

* @returns {Object}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -279,2 +299,3 @@ this.suggestParams = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -281,0 +302,0 @@ this.block = async (roundNumber, headerObj = {}) => {

const { default: HTTPClient } = require('./client');
const { setSendTransactionHeaders } = require('./v2/algod/sendRawTransaction');
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
function Algod(token = '', baseServer = 'http://r2.algorand.network', port = 4180, headers = {}) {

@@ -15,2 +16,3 @@ // workaround to allow backwards compatibility for multiple headers

* @returns {*}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -28,2 +30,3 @@ function noteb64ToNote(o) {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -38,2 +41,3 @@ this.status = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -53,2 +57,3 @@ this.healthCheck = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -67,2 +72,3 @@ this.statusAfterBlock = async (roundNumber, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -85,2 +91,3 @@ this.pendingTransactions = async (maxTxns, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -95,2 +102,3 @@ this.versions = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -109,2 +117,3 @@ this.ledgerSupply = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -135,2 +144,3 @@ this.transactionByAddress = async (addr, first = null, last = null, maxTxns = null, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -152,2 +162,3 @@ this.transactionByAddressAndDate = async (addr, fromDate, toDate, maxTxns = null, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -167,2 +178,3 @@ this.transactionById = async (txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -181,2 +193,3 @@ this.transactionInformation = async (addr, txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -195,2 +208,3 @@ this.pendingTransactionInformation = async (txid, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -206,2 +220,3 @@ this.accountInformation = async (addr, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -216,2 +231,3 @@ this.assetInformation = async (index, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -227,2 +243,3 @@ this.suggestedFee = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -239,2 +256,3 @@ this.sendRawTransaction = async (txn, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -251,2 +269,3 @@ this.sendRawTransactions = async (txns, headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -261,2 +280,3 @@ this.getTransactionParams = async (headerObj = {}) => {

* @returns {Object}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -279,2 +299,3 @@ this.suggestParams = async (headerObj = {}) => {

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -281,0 +302,0 @@ this.block = async (roundNumber, headerObj = {}) => {

@@ -0,3 +1,5 @@

/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
export function Algod(token?: string, baseServer?: string, port?: number, headers?: {}): void;
export class Algod {
/** @deprecated v1 algod APIs are deprecated, please use the v2 client */
constructor(token?: string, baseServer?: string, port?: number, headers?: {});

@@ -8,2 +10,3 @@ /**

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -15,2 +18,3 @@ status: (headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -24,2 +28,3 @@ healthCheck: (headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -33,2 +38,3 @@ statusAfterBlock: (roundNumber: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -40,2 +46,3 @@ pendingTransactions: (maxTxns: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -47,2 +54,3 @@ versions: (headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -58,2 +66,3 @@ ledgerSupply: (headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -70,2 +79,3 @@ transactionByAddress: (addr: any, first?: any, last?: any, maxTxns?: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -79,2 +89,3 @@ transactionByAddressAndDate: (addr: any, fromDate: any, toDate: any, maxTxns?: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -88,2 +99,3 @@ transactionById: (txid: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -96,2 +108,3 @@ transactionInformation: (addr: any, txid: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -104,2 +117,3 @@ pendingTransactionInformation: (txid: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -112,2 +126,3 @@ accountInformation: (addr: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -119,2 +134,3 @@ assetInformation: (index: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -127,2 +143,3 @@ suggestedFee: (headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -135,2 +152,3 @@ sendRawTransaction: (txn: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -142,2 +160,3 @@ sendRawTransactions: (txns: any, headerObj?: {}) => Promise<any>;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -149,2 +168,3 @@ getTransactionParams: (headerObj?: {}) => Promise<any>;

* @returns {Object}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/

@@ -157,4 +177,5 @@ suggestParams: (headerObj?: {}) => any;

* @returns {Promise<*>}
* @deprecated v1 algod APIs are deprecated, please use the v2 client
*/
block: (roundNumber: any, headerObj?: {}) => Promise<any>;
}

2

package.json
{
"name": "algosdk",
"version": "1.20.0",
"version": "1.21.0",
"description": "The official JavaScript SDK for Algorand",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -25,3 +25,3 @@ # js-algorand-sdk

<script
src="https://unpkg.com/algosdk@v1.20.0/dist/browser/algosdk.min.js"
src="https://unpkg.com/algosdk@v1.21.0/dist/browser/algosdk.min.js"
integrity="sha384-MBUb3pc2VI86j87sLfTwm1kEs2PUDCOFXnXdgspn0lWSJOxr1gu4mZL6L7VE1ITH"

@@ -36,3 +36,3 @@ crossorigin="anonymous"

<script
src="https://cdn.jsdelivr.net/npm/algosdk@v1.20.0/dist/browser/algosdk.min.js"
src="https://cdn.jsdelivr.net/npm/algosdk@v1.21.0/dist/browser/algosdk.min.js"
integrity="sha384-MBUb3pc2VI86j87sLfTwm1kEs2PUDCOFXnXdgspn0lWSJOxr1gu4mZL6L7VE1ITH"

@@ -39,0 +39,0 @@ crossorigin="anonymous"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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