Xerial
  • Intro
    • ⚡Introduction
    • 🏁Getting Started
    • â„šī¸Before We Start: Important
  • 👷Build
    • Build Your Account
    • Create Your Assets
    • Inventory
    • Marketplace
    • User Flow
    • Best Practices
      • Attribute Guide
        • Attribute Use Cases
  • â˜„ī¸Xerial APIs
    • đŸ—ī¸API Authorization
    • 🛅Wallet API
      • Getting Started
      • Custodial Wallets
        • Create User
        • Create Wallet
        • Get Wallets
      • Wallet Management
        • Get Chain Native Currency Balance
        • Get Supported ERC20 Tokens Balances
        • Get Project Inventory
      • Transaction Proccessing
        • Transfer Xerial NFT
        • Transfer Chain Native Currency
        • Transfer ERC20 Token
        • Primary Purchase Xerial NFT
        • Secondary Purchase
        • List Xerial NFT
        • Delist Xerial NFT
        • Execute Custom Transaction
      • Errors Handling
        • Authentication Errors
        • Wallet Management Errors
        • Transaction Proccessing Errors
    • 🛒Marketplace API
      • Get Listed NFTs
      • Get Community Listed Items
      • Get Collections
      • Get Project Data
    • đŸ–ŧī¸NFT API
      • NFT Drop
    • 🌐Xerial Global Wallets
      • Get User Wallet Info
      • Get Global Inventory
      • User Authorization
      • Logout
  • đŸ› ī¸Xerial SDK
    • Wallet SDK
  • đŸŽī¸Gaming Toolkit
    • đŸ•šī¸Xerial Unity SDK Guide
      • âŦ‡ī¸Installation
      • âš™ī¸Configuration
      • Xerial Services
        • Set Up Xerial Services
        • Service Managers
          • Session Manager
          • Wallet Manager
            • UserData Class
              • Account Class
              • Wallet Class
              • Creating UserData Class
          • Inventory Manager
            • NFTs
              • Metadata
              • Attributes
            • NFTInventory Class
            • Creating NFT Inventory
          • MarketPlace Manager
    • Unreal Engine SDKs
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Request Body
  • Responses
  • Usage
  1. Xerial APIs
  2. Wallet API
  3. Transaction Proccessing

Execute Custom Transaction

Endpoint allows you to execute a custom transaction on the specified blockchain. Use this endpoint to initiate transactions with custom parameters.

Overview

Endpoint

  • Method: POST

  • URL: /wallet/{address}/{chain}/transaction

Parameters

  • address: (Path Parameter): Sender's wallet address (string).

  • chain: (Path Parameter): Blockchain (string). Available values: polygon.

Request Body

  • Media Type: application/json

  • Example Value:

{
        "type": "CONTRACT_EXECUTION",
        "to": "0xdc71b72db51e227e65a45004ab2798d31e8934c9",
        "functionName": "transfer",
        "value": 0,
        "inputs": [{
            "type": "address",
            "value": "0x80cbb6c4342948e5be81987dce8251dbedd69138"
        }, {
            "type": "uint256",
            "value": 73680000
        }],
}

Responses

Success (Code 200)

{
  "transactionHash": "0xe2e830fcc13af572c0cbe970e69c2ebd...b9984099a072709f1ee62305b"
}
  • Media Type: application/json

  • Example Value: An object containing the transaction hash for the successful custom transaction.

  • Media Type: application/json

  • Example Value: An error response indicating an internal server error.

Usage

  1. Send a POST request to the /api/wallet/{address}/{chain}/transaction endpoint to initiate a custom transaction.

  2. Include the required parameters and request body in the request.

  3. Handle the response accordingly based on success, unauthorized access, forbidden access, not found, method not allowed, or internal server error.

Note: Ensure the sender's wallet address and blockchain chain are valid. Verify the user's authentication status and permissions before initiating the custom transaction.

PreviousDelist Xerial NFTNextErrors Handling

Last updated 1 year ago

â˜„ī¸
đŸ›