🌊
Urchin Web3 CMS
  • 🌊What is Urchin?
  • 🛠️How it works
  • 🏎️Getting started
  • 🧱API Reference
    • Core
      • urchin()
      • .preflight()
      • .process()
    • Template
      • .template.create()
      • .template.update()
      • .template.get()
      • .template.getAll()
    • Taxonomy
      • .taxonomy.create()
      • .taxonomy.update()
      • .taxonomy.get()
      • .taxonomy.getAll()
    • Asset
      • .asset.create()
      • .asset.update()
      • .asset.get()
      • .asset.getAll()
    • Entry
      • .entry.create()
      • .entry.update()
      • .entry.get()
      • .entry.getAll()
  • 🤔FAQs
Powered by GitBook
On this page
  • Init Example
  • Parameters
  1. API Reference
  2. Core

urchin()

The entry point to the Urchin SDK is by creating an instance that will give you access to its API.

It accepts a Connection instance from @solana/web3.jsthat will be used to communicate with the cluster.

Init Example

import {Keypair, Signer} from "@solana/web3.js";
import bs58 from ‘bs58’;

const payerKeypair = Keypair.fromSecretKey(
  bs58.decode("<wallet secret key as string>")
 );
const connection = urchin(
    {
        payer: payerKeypair,
         ...parameters // see below for required and optional parameters
    });

Parameters

label (* required)
description
type
default
valid values

payer*

public and private key of payer

Keypair

owner

author if different then payer

Keypair

cluster

Solana/Arweave environment

string

"devnet"

"devnet","mainnet"

rpc

Custom Solana RPC

string

default solana routes

PreviousCoreNext.preflight()

Last updated 1 year ago

🧱