⚙️
API Docs
  • 👋WELCOME
    • About Daolity
    • Quick Start
  • Start Your Journey
    • Daolity registration & Account Setup
    • Obtaining API Keys & SDK Integration credentials
    • Prerequisites to use Daolity API & SDKs
    • Daolity SDK Installation
      • Basic Example 1
      • Basic Example 2
      • Basic Example 3
  • Daolity Setup
    • Daolity Setup
      • Overview
      • Mainnet Setup
        • Page 3
      • Testnet Setup
      • Using Windows
      • Using Mac
    • Daolity Dashboard
      • Overview
      • Creating & Managing Keys
      • Viewing, Editing & Revoking Keys
      • Team Access Management
      • Transaction Tracking
      • API Monitoring
  • Daolity SDKs
    • Overview
    • JavaScript SDK
    • TypeScript SDK
    • React SDK
    • Go SDK
  • NFT Collection Endpoints
    • NFT Total Supply
    • isWhitelisted
    • addUserAddressToWhitelist
    • SetPaused
    • RemoveNftFromCollection
    • WalletOfOwner
    • TokenURI
    • setCost
    • mint
    • mintForAddress
    • mintForFree
    • Withdraw
  • 💼Wallets
    • Overview
    • Getting Started
    • Wallet 1
      • Usage
      • Configuration
      • Methods
    • Wallet 2
    • Wallet 3
    • Setting Up Staking For Daolity Tools( For All Wallets)
  • Reference
    • Overview
    • API Reference
      • Supported HTTP Methods
      • Responses & Error Codes
      • DEMO
      • Data Formatting & Encoding Standards
  • Use Cases, Tutorials & Templates
    • Examples Use Cases
    • Step-by-Step Tutorials for Common Integration Scenarios
      • Simple DeFi Lending Dapp
      • NFT Marketplace
      • Minting NFT Collection
      • Token-gated Access Dapp
    • Templates
  • Pricing
    • Overview
    • Daolity Billing Model
    • Billing Case Study
  • Glossary
    • Key Terminologies
    • Definitions & Explanation Of Terms
  • Troubleshooting and FAQs
    • Common Integration Issues and Solutions
    • FAQs
    • Troubleshooting Guide
Powered by GitBook
On this page
  • Wallets
  • Get your API keys
  • Install the library
  • Make your first request
  • Create pet.
  1. WELCOME

Quick Start

Daolity is an all-encompassing development framework that gives you the capability to effortlessly create, launch, and oversee web3 applications on any blockchain compatible with the Ethereum Virtual Machine (EVM).

Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!

Wallets

Get your API keys

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.

You can generate an API key from your Dashboard at any time.

Install the library

The best way to interact with our API is to use one of our official libraries:

# Install via NPM
npm install --save my-api
# Install via pip
pip install --upgrade myapi

Good to know: Using tabs to separate out different languages is a great way to present technical examples or code documentation without cramming your docs with extra sections or pages per language.

Make your first request

To make your first request, send an authenticated request to the pets endpoint. This will create a pet, which is nice.

Create pet.

POST https://api.myapi.com/v1/pet

Creates a new pet.

Request Body

Name
Type
Description

name*

string

The name of the pet

owner_id

string

The id of the user who owns the pet

species

string

The species of the pet

breed

string

The breed of the pet

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

Good to know: You can use the API Method block to fully document an API method. You can also sync your API blocks with an OpenAPI file or URL to auto-populate them.

Take a look at how you might call this method using our official libraries, or via curl:

curl https://api.myapi.com/v1/pet  
    -u YOUR_API_KEY:  
    -d name='Wilson'  
    -d species='dog'  
    -d owner_id='sha7891bikojbkreuy'  
// require the myapi module and set it up with your API key
const myapi = require('myapi')(YOUR_API_KEY);

const newPet = away myapi.pet.create({
    name: 'Wilson',
    owner_id: 'sha7891bikojbkreuy',
    species: 'Dog',
    breed: 'Golden Retriever',
})
// Set your API key before making the request
myapi.api_key = YOUR_API_KEY

myapi.Pet.create(
    name='Wilson',
    owner_id='sha7891bikojbkreuy',
    species='Dog',
    breed='Golden Retriever',
)
PreviousAbout DaolityNextDaolity registration & Account Setup

Last updated 1 year ago

👋