Difference between revisions of "Installing the run sdk"

From RunWiki
Jump to: navigation, search
Line 3: Line 3:
 
Another solution is to download the SDK as a zip file from [https://run.network/ https://run.network/]. When writing this the latest version is [https://github.com/runonbitcoin/sdk/archive/refs/tags/v0.6.37.zip version 0.6.37].
 
Another solution is to download the SDK as a zip file from [https://run.network/ https://run.network/]. When writing this the latest version is [https://github.com/runonbitcoin/sdk/archive/refs/tags/v0.6.37.zip version 0.6.37].
 
= Getting Started =
 
= Getting Started =
(note the following section was originally a simple copy/paster from [https://run.network/docs/#getting-started the official doc])
+
(note the following section was originally a simple copy/paste from [https://run.network/docs/#getting-started the official doc])
 +
 
 +
'''TODO we must add the piece of JS code, but the formatter is broken for now'''
  
TODO we must add the piece of JS code, but the formatter is broken for now
 
 
== Installation ==
 
== Installation ==
<p>If you're new to Run, let the [https://run.network/lessons tutorial series] guide your journey to get acquainted. You can write code without installing anything. The web browser Console will be your playground.</p><p>The details written here in the Docs have example code in the sidebar on the right-hand side. Anything you read in paragraphs, you can preview in-action over there.</p><p>Run works everywhere including all major browsers, on desktop and mobile, as well as Node.js 10+ on servers. The Run SDK is written in JavaScript ES6 and uses the [https://github.com/moneybutton/bsv bsv&nbsp;library] to build and sign transactions. To get started:</p>
 
  
*For a webpage: Add ;<code>bsv.browser.min.js</code> and <code>run.browser.min.js</code> to the <code>&lt;head&gt;</code> tag.
+
If you're new to Run, let the [https://run.network/lessons tutorial series] guide your journey to get acquainted. You can write code without installing anything. The web browser Console will be your playground.
*For Node.js: Run <code>npm install run-sdk</code> to install both the run and bsv libraries<p>And that's it. All your code and jigs will be saved on-chain and Run will use public APIs to interact with the Bitcoin network. You don't need to deploy any servers to use Run. All the logic works client-side.</p>
+
 
 +
The details written here in the Docs have example code in the sidebar on the right-hand side. Anything you read in paragraphs, you can preview in-action over there.
 +
 
 +
Run works everywhere including all major browsers, on desktop and mobile, as well as Node.js 10+ on servers. The Run SDK is written in JavaScript ES6 and uses the [https://github.com/moneybutton/bsv bsv&nbsp;library] to build and sign transactions. To get started:
 +
 
 +
*For a webpage: Add ;bsv.browser.min.js and <code>run.browser.min.js</code> to the head tag.
 +
*For Node.js: Run npm install run-sdk to install both the run and bsv libraries
 +
 
 +
And that's it. All your code and jigs will be saved on-chain and Run will use public APIs to interact with the Bitcoin network. You don't need to deploy any servers to use Run. All the logic works client-side.

Revision as of 00:30, 14 December 2022

The easiest way to get the latest version is to run npm install run-sdk

Another solution is to download the SDK as a zip file from https://run.network/. When writing this the latest version is version 0.6.37.

Getting Started

(note the following section was originally a simple copy/paste from the official doc)

TODO we must add the piece of JS code, but the formatter is broken for now

Installation

If you're new to Run, let the tutorial series guide your journey to get acquainted. You can write code without installing anything. The web browser Console will be your playground.

The details written here in the Docs have example code in the sidebar on the right-hand side. Anything you read in paragraphs, you can preview in-action over there.

Run works everywhere including all major browsers, on desktop and mobile, as well as Node.js 10+ on servers. The Run SDK is written in JavaScript ES6 and uses the bsv library to build and sign transactions. To get started:

  • For a webpage: Add ;bsv.browser.min.js and run.browser.min.js to the head tag.
  • For Node.js: Run npm install run-sdk to install both the run and bsv libraries

And that's it. All your code and jigs will be saved on-chain and Run will use public APIs to interact with the Bitcoin network. You don't need to deploy any servers to use Run. All the logic works client-side.