GithubHelp home page GithubHelp logo

vladzr / beam-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from merit-circle/beam-docs

0.0 0.0 0.0 7.9 MB

Beam documentation

Home Page: https://docs.onbeam.com

License: GNU General Public License v3.0

JavaScript 0.41% TypeScript 14.73% CSS 0.76% MDX 84.11%

beam-docs's Introduction

Hello Beam

Beam is a sovereign network focused on gaming brought to you by the Merit Circle DAO. Powered by the established Avalanche network, Beam operates independently to cater towards gamers and game developers.

Contributions

If you would like to contribute to the documentation, please open a pull request.

TL;DR

If you would like to get your hands dirty without reading our documentation, we strongly advise you to get started with one of our implementations ready SDKs. We currently provide SDKs for Node.js and C#, but are happy to facilitate more. If you are interested in an SDK for your implementation language which we don't provide yet, please open an issue.

Getting started

import { Beam } from "@onbeam/node";

const beam = new Beam("x-api-key");

const profile = await beam.profiles.createProfile("profileID");
// {
//   "id": "string",
//   "gameId": "string",
//   "externalId": "string",
//   "wallets": [
//     {
//       "id": "string",
//       "externalId": "string",
//       "address": "string",
//       "chainId": 0,
//       ...
//     }
//   ]
// }

const profiles = await beam.profiles.getAllProfiles({
  offset: 0,
  limit: 10,
});

In this example, we initialize an instance of Beam by passing your api key. We then proceed to create a Profile. A Profile is the Beam entity you'll be mostly interacting with. Each profile automatically gets assigned a wallet on the Beam blockchain.


View full documentation and examples on docs.onbeam.com.

Managing assets

Profiles are managed by you, and through your api key you are able to transfer / trade and manage assets of the profiles of your users

import { Beam } from "@onbeam/node";

const beam = new Beam("x-api-key");

const transfer = await beam.assets.transfer({
  sender: "ProfileID-A",
  receiver: "ProfileID-B",
  assetAddress: "0x0",
  tokenId: 23,
});

View full documentation and examples on docs.onbeam.com.

beam-docs's People

Contributors

0x0sub avatar 0xsilkweave avatar lewinskimaciej avatar mc-ducky avatar monty123123 avatar robbyuitbeijerse avatar royscheepens avatar victorboucher avatar vladzr avatar wooglie avatar xtools-at avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.