A super simple web3 API to allow crypto interactions with the Solana Network πŸ”‘πŸŒ

Overview

orca.js

A JavaScript API for web3 Transaction and Authenticating


PLEASE NOTE: orca.js is still in development! And comming soon in 2022. Stay tuned on our Discord Server

Discord Server


Contents

Overview

Compatible wallets (latest Version)

  • Phantom
  • (Soon get Matamask Wallet added!)

Use cases

First of all, require the library using CommonJS syntax. For the import use require

const orca = require("orca.js"); // CommonJS

orcaJS Documentation

Written by OctoDino for Statch

Get Started

Cloning the Project from GitHub

Git:

$ git clone https://github.com/statch/orca.js

GitHub CLI:

$ gh repo clone statch/orca.js

Initialize orca.js

orca.init([debugMode?])  //Load this first for the orca.js API
  • debugMode? is a Boolean where you can set if orcaJS can use console.log! (Still in development)

Make a Transaction

How to make a Transaction between two Wallets? Here you have the chainJS Solution for it!

What do we use?

orca.transaction([order])
  • order is a const we write it like in the following example!

Code example

// Simple ETH payment
const orca = require('orcajs')
    
const transaction  = {
  currency:  'sol', //The Currency to use (at the time only solona aviable!)
  amount:  1.1234133, //Transaction amount in SOL
  test:  false, //Test switch the clusterApiUrl to 'devnet'
  wallet:  'enter wallet here', //Ge the transaction
  clusterApiUrl: '' //Leave blank for devnet   
} 
      
orca.transaction(transaction)

In our const transaction = {...} we can define whith what currency our transaction is, and many more things. Let's take a look

  • With the String Parameter currency we can declare the currency we want to use. But at the time we only Support sol!
  • In the amount Float Parameter we can add the amount of the currency that will be transferred. Here we write only the amount in SOL
  • The test Boolean Parameter toogle the Test Mode and switch the clusterApiUrl when true to devnet
  • The wallet String Parameter is to declerate the Wallet of the reciver of the transaction
  • With the String Parameter clusterApiUrl you can retrieves the RPC API URL for the specified cluster. Leave blank to set to devnet

Support

How you can Support the project? Support Statch by writing to us on our Discord Server or committing to this Repository! Thanks :)

Credits

Contributors

Suporters

No one :,) ...maybe you'll be the first Supporter

You might also like...

Music World is web3 app built over Solana where anyone can add their favourite songs and see the other songs that are added by different people from around the globe.

πŸ’₯ Introduction Music World is web3 app built over Solana where anyone can add their favourite songs and see the other songs that are added by differe

Jun 10, 2022

Simple but Complete & Fast network monitor for your home network

netmon Netmon is an opensource project for protecting and monitoring your home network. Netmon is written to run on a Raspberry PI and is optimized to

Jul 6, 2022

Awesome critique of crypto / web3. Curated list of high quality critique plus background. Seek to be as constructive as possible.

Awesome critique of crypto/web3 Awesome critique of crypto/web3, etc. Contributions are welcome. Critique General Stephen Diehl series - https://www.s

Jan 1, 2023

Web3-citizens-app - React application based on smart contract using web3 and MetaMask extention.

Web3-citizens-app - React application based on smart contract using web3 and MetaMask extention.

Citizens App (web3-react-redux) React application based on smart contract using web3 and MetaMask extention. Start the applicarion Recomend to install

Aug 25, 2022

A web3 starter project using Typescript, Hardhat, ethers.js and @web3-react

A web3 starter project using Typescript, Hardhat, ethers.js and @web3-react

Starter React Typescript Ethers.js Hardhat Project This repo contains a Hardhat and React Dapp starter project. The React Dapp in the frontend dir of

Dec 31, 2022

(πŸ”—, 🌲) Web3 Link Tree is a free & open-source alternative to Linktree built with React.js, Next.js, Tailwind and Web3-React

Getting Started Read the detailed guide here Customize Add your name, wallet address, social media links and more in config.ts Images Save images to t

Sep 20, 2022

A social network to connect web3 users and their communities.

Introduction This project is built using react, tailwindcss and Moralis (documentation) for our backend. We are also heavily using the built-in Morali

Jan 5, 2023

This is a fully functional DAO, a Web3 project made using Solidity, Hardhat, JS, Next.js, Openzeppelin, CSS, HTML, using the Rinkerby network!

My First DAO! This is made for a DAO-Tutorial via learnweb3.io This is a DAO, a decentralised autonomous organisation, essentially a more collective a

Jun 20, 2022

Utilities for meta-level interactions with the Prisma toolkit in Node.js.

@prisma-spectrum/reflector Utilities for meta-level interactions with the Prisma toolkit in Node.js. ⚠️ Warning: This is not a formal Prisma product l

Dec 16, 2022
Owner
A group of young developers that love to create unique and exciting software.
null
πŸ›  Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

?? Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

Holaplex 30 May 21, 2022
A super simple and lightweight API to get crypto token live information.

TokenStats ?? ?? A super simple and lightweight API to get crypto token live information. APP URL https://tokenstats.herokuapp.com/ Quick Start To get

Abdulfatai Suleiman 21 Jun 28, 2022
solana-base-app is a base level, including most of the common features and wallet connectivity, try using `npx solana-base-app react my-app`

solana-base-app solana-base-app is for Solana beginners to get them up and running fast. To start run : run npx solana-base-app react my-app change th

UjjwalGupta49 33 Dec 27, 2022
A Multichain crypto wallet library that supports Ethereum, Solana and other EVM compatible blockchains.

Multichain Crypto Wallet A Multichain crypto wallet library that supports Ethereum, Solana and other EVM compatible blockchains. Installation npm inst

Abdulfatai Suleiman 117 Jan 2, 2023
Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

null 2 Jan 5, 2022
Crypto-tracker - Get crypto currency data in one click. Followed by a few more clicks.

https://crypto-tracker-ayaanzaveri08.vercel.app/ Crypto Tracker Crypto Tracker tracks crypto with the CoinGecko API. This app uses the React framework

Ayaan Zaveri 0 Apr 30, 2022
🌈 Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage

crypif Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage Figma I still ha

Eliaz Bobadilla 8 Apr 4, 2022
Kyrillos Hany 14 Aug 10, 2022
NFT stacking frontend completion using web3 on solana for client Nelson project.

NFT stacking frontend completion using web3 on solana for client Nelson project.

Kapollo 12 Dec 16, 2022
A tool for generating solana web3 clients from anchor IDLs.

anchor-client-gen Generate typescript solana web3 clients from anchor IDLs. Installation # npm $ npm install --global anchor-client-gen # yarn $ yarn

KreΕ‘imir Klas 97 Dec 17, 2022