NFT Garden Docs
HomepageGitHubLanguageSign up for free
  • Welcome to NFT Garden Docs
  • Getting started
  • Web release note
  • API release note
    • Ver 1.2
    • Ver 1.1
    • Ver 1.0
  • Supported Blockchains
  • Pricing
  • EUs consumption
  • Web platform
    • Dashboard
    • Contract
      • Contract list screen
      • Create contract screen
    • NFT
      • NFT list screen
      • NFT minting screen
      • NFT transfer screen
    • API key
      • API keys
      • Generate API key
    • Webhook
      • Webhook settings
    • Account
      • Account
  • API Minting
    • NFT API
      • Ver 1.2.2
        • Auth
        • Resources
        • NFT minting
        • NFT transfer
        • NFT granted(mint + transfer)
        • Get the NFT list
        • Get NFT details
        • NFT Garden NFT determination
        • Create contract
        • Get Contract details
        • Wallet Address Generation
        • API rate limit
  • Tutorial
    • Connect wallet
    • Create contract
    • Mint NFT
    • Check NFT
    • Transfer NFT
  • Links
    • NFT Garden
    • GitHub
    • Blog
    • Contact
Powered by GitBook
On this page
  • getpresignedurl
  • Basic Information
  • Request parameter
  • Sample requests
  • Example of successful response
  • Example of response in case of failure(status code 400)
  • Wallet address generation using signed URL
  • Sample requests
  • Example of successful response
  1. API Minting
  2. NFT API
  3. Ver 1.2.2

Wallet Address Generation

getpresignedurl

Get the Signed URL to generate the wallet address.

Basic Information

Property
Detail

URL

/api/v1/getpresignedurl

Method

POST

Request parameter

Parameter
Type
Required
Detail

email

str

yes

E-mail address of the account registered with NFT Garden

timeout

number

no

Validity period of Signed URL (minutes), positive integer, 1~10080

Sample requests

{
  "email": "example@gmail.com",
  "timeout": 60
}

Example of successful response

{
  "request": {
      "email": "example@gmail.com",
      "timeout": 60
  },
  "response": {
      "url": "https://wallet.nftgarden.app/v1/wallet/create?expiry=139...&issued_at=178...&action=generate_wallet&issuer=example%40gmail.com&signature=lOl..."
  }
}

Example of response in case of failure(status code 400)

{
  "errorCode": "VALIDATION_ERROR",
  "message": "入力値が不正です",
  "detail": [
      {
          "loc": [
              "body",
              "timeout"
          ],
          "msg": "ensure this value is less than or equal to 10080",
          "type": "value_error.number.not_le",
          "ctx": {
              "limit_value": 10080
          }
      }
  ]
}

Wallet address generation using signed URL

POST to the url of response.

Sample requests


curl -X POST "https://wallet.nftgarden.app/v1/wallet/create?expiry=1390715135..."

Example of successful response

{
    "request": {
        "expiry": 1715073373,
        "issued_at": 1715069773,
        "action": "generate_wallet",
        "issuer": "example@gmail.com",
        "signature": "omit"
    },
    "wallet": {
        "address": "0x0000000000000000000000000000000000000000",
        "private_key": "0x0000000000000000000000000000000000000000000000000000000000000000"
    }
}

PreviousGet Contract detailsNextAPI rate limit

Last updated 1 year ago