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

@mintbase-js/sdk

Package Overview
Dependencies
Maintainers
2
Versions
1314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintbase-js/sdk - npm Package Compare versions

Comparing version 0.0.4-publish-on-push.5 to 0.0.4-publish-on-push.6

4

package.json
{
"name": "@mintbase-js/sdk",
"version": "0.0.4-publish-on-push.5",
"version": "0.0.4-publish-on-push.6",
"description": "Core functions for Mintbase JS SDK",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

},
"gitHead": "2e1b5656a4d29c153a92fa10078013efa0c3e04e"
"gitHead": "c36170ec01c20935b3fea9bba7660d5ed73d3c9b"
}

@@ -29,8 +29,10 @@ [//]: # `{ "title": "@mintbase-js/sdk", "order": 0 }`

## Using `execute` <div name="execute"></div>
<div name="execute"></div>
You are always free to use the core execute method without the API methods, which will allow you to specify all options of the contract call.
## Using `execute`
The method will accept a single `NearContractCall` object or an array of calls and determine how batch based on `NearCallSigningOptions` (browser wallet, or near-api-js Account).
The `excecute` method can be used without apis helpers, however you will need to specify all `NearContractCall` properties.
The method accepts a single "call" object or an array, in which case it will determine the best way to batch process each one *(see [batching](#batching) below)*.
```

@@ -42,8 +44,7 @@ execute(

```
Here is an example using the execute function call:
## NearContractCall
Here is an example using the raw function call
# NearContractCall
This type specifies properties of a contract calls:
The `NearContractCall` type specifies the properties that our contract calls must specify:
{% code title="executeContractMethod.ts" overflow="wrap" lineNumbers="true" %}

@@ -103,3 +104,3 @@ ```typescript

## Batching Transactions
## Batching Transactions <div name="batching"></div>

@@ -106,0 +107,0 @@ The reason for the optional `Promise<void>` return type in the execute method, is that batch methods in some [near/wallet-selector] implementations do not return transactions execution outcomes.

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