Wallet Address Generation

getpresignedurl

Get the Signed URL to generate the wallet address.

Basic Information

PropertyDetail

URL

/api/v1/getpresignedurl

Method

POST

Request parameter

ParameterTypeRequiredDetail

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"
    }
}

Last updated