@mintbase-js/sdk
Advanced tools
Comparing version 0.0.4-publish-on-push.5 to 0.0.4-publish-on-push.6
{ | ||
"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. |
113
43584