Startrail APIs
  • 🛫Startrail PORT: All in one document for API/SDK
    • 🔀URL per environment
  • Issue transfer api
    • 📬Issue & Transfer SRR (NFT)
      • Request Signed URL for Upload/Download Files
      • File Information Metadata
      • Issue & Transfer
      • Webhook Setup
    • 📂Collection
      • Create Collection
      • Get Collection of LUW
    • 📢Change Logs
      • v1.2.0
      • v1.1.0
      • v1.0.1
  • Metadata Schema
    • 🪅Startrail Registry (SRR)
      • Version 2.2
      • Version 2.1
      • Version 2.0
    • 📤Transfer
      • Version 1.2
      • Version 1.1
      • Version 1.0
    • ☸️Custom History
      • Custom History of Exhibition
        • Version 1.2
      • Custom History of Auction
        • Version 1.3
      • Custom History of Appraisal
        • Version 1.1
      • Custom History of Restoration
        • Version 1.0
      • Custom History of Offchain
        • Version 1.1
  • Get SRR API
    • Get Owned SRRs
    • Get SRR by Collection contract address and Token Id
      • 🚫Get SRR by Token Id
    • Description Of SRR Data
  • Ethereum Signature Validator API
    • 🔏Ethereum Signature Validator API
      • Change Logs
  • Startrail SDK Js
    • 🔰Introduction
    • 🏃Getting Started
      • RPC endpoint and chainId
    • 💳Wallet Methods
    • 🔮Startrail API Methods
      • Add Custom Histories To SRRs
      • Approve SRR By Commitment
      • Bulk
      • Check ERC2981 Royalty
      • Create Collection
      • Convert Metadata
      • Create SRR
      • Transfer Collection Ownership
      • Transfer SRR To Ethereum Address
      • Transfer From With Provenance
      • Update Metadata
    • 📱Login Providers
      • Interface
      • Whitelabeling/Customizing
        • Email Password
      • Hints
      • Multi Factor Account Management
    • 🦊MetaMask
    • 🎎Authentication Integration
    • 👾Errors
    • 📢Change logs
      • v1.35.0
      • v1.34.0
      • v1.33.2
      • v1.33.1
      • v1.32.0
      • v1.31.1
      • v1.30.6
      • v1.30.5
      • v1.30.4
      • v1.30.3
      • v1.30.2
      • v1.30.1
      • v1.30.0
      • v1.29.1
      • v1.29.0
      • v1.28.2
      • v1.28.1
      • v1.28.0
      • v1.27.1
      • v1.27.0
      • v1.26.0
      • v1.25.2(Security Patch)
  • Startrail API
    • 💱Transfer SRR Ownership By RevealHash
    • Get Transaction Data
    • Get Metadata By tokenid
  • Subgraph
    • 📊A introduction of subgraph
    • How to retrieve SRR metadata
Powered by GitBook

©2023 Startbahn, Inc.

On this page
  • transferSRRToEthereumAddress()
  • Method parameters
  • TransferMetadata
  • Lang
  • Parameters Example
  • Returns
  • Response
  • Error
  • Response Example

Was this helpful?

  1. Startrail SDK Js
  2. Startrail API Methods

Transfer SRR To Ethereum Address

To know the methods calling to Startrail API from Startrail-Sdk-Js

transferSRRToEthereumAddress()

Transfer SRR to new owner directly designating etherem address.

Method parameters

Variable
Type
Description

startrailLUWContractAddress

string

The address of LicensedUserWallet(LUW) contract. Sets it when you want to execute transaction by the LUW contract address

contractAddress

string

The address of collection contract. Sets it when you want to associate collection contract address with the SRR.

to

string

Address to transfer for ownership to.

metadata

TransferMetadata

isIntermediary

boolean

Intermediary flag used by startbahn to trigger a transaction. - defaults to false

TransferMetadata

Variable
Type
Description

transferType

string

Select one of the followings "Primary sale", "Secondary sale", "Other transfer”

remarks

Lang

Write down whatever relevant to transfer ownership

customHistoryId

number

Custom History Id that is already registered in Startrail

Lang

Variable
Type
Description

ja

string

Japanse text

en

string

English text

Parameters Example

await sdk.transferSRRToEthereumAddress(
  {
    contractAddress: '0x0c050f805Aa1ee2D4f9393365C95E299F1716fb1',
    startrailLUWContractAddress: '0x113c6880fc4a2664E125973BC0Dfd37d62Ec7c3f',
    to: '0xF6B90C96D53058123C32C53A03b4420594714342',
    tokenId: '832736095995',
    metadata: {
      transferType: "Primary sale",
      remarks: {
        en: "Reason for the transfer",
        ja: "移転の理由:日本語"
      },
      customHistoryId: 1,
    },
    isIntermediary: false,
  }
)

Returns

Promise will be returned which resolves with a Response object upon a successful confirmation. false will be returned when user flow is cancelled in such a case that a user closes the popup modal.

If the confirmation fails, the Promise will resolve with an {error} object that describes the failure.

Promise<Response | false>

The use of "txReceiptId" will soon be deprecated and removed.

Response

Variable
Type
Description

txReceiptId

string

ID to identify transaction details in Startrail-API DB.

Error

Response Example

{
  txReceiptId: 0
}
PreviousTransfer Collection OwnershipNextTransfer From With Provenance

Last updated 1 year ago

Was this helpful?

SRR Transfer Metadata conforming to

Custom Error objects. Refer to the for possible data.

🔮
Error Catalogue
Transfer Data schema