Blaze
  • Overview
    • Overview of workflows
  • Fundamentals
    • Getting set up
      • Access controls
      • Invite your team
      • Integrations
      • Custom Bot
    • Team and workspace settings
      • For workspace owners
      • For collaborators
    • FAQ
      • Subscription & Pricing
      • Workspace Settings
      • Lead Generation
      • Campaigns and Outreach
      • Forms and Rewards
  • Product Guides
    • Lead Gen and Segments
      • Segment Types
        • Saved segments
        • Curated segments
        • Community Segments
        • Uploaded Segments
      • How to filter segments
        • Twitter Audience filters
        • LinkedIn Audience filters
        • Telegram Audience filters
        • Wallet Audience filters
      • How to upload segments
        • Upload CSV
        • Paste URLs
      • How to create a lead list using Find Leads feature
      • Use Social Search to find leads or trending content
        • Twitter Social Search
          • X Post Search
          • X Account Followers
          • X Spaces Listeners
        • LinkedIn Social Search
          • LinkedIn Post Authors
          • LinkedIn Post Reactor/Commentor
      • How to use Segment Wizard to build lead lists instantly
      • How to generate a lead list or segment of wallets using Wallet CRM
        • How to refine & create a segment of wallets
        • Reach out to Wallet CRM leads
      • How to split a segment into multiple subsegments for A/B testing
      • Capture leads and sign ups with Forms
        • Create and share a form
        • View form responses
        • Embed a form on your website
        • Auto-send forms to new Discord users
    • DM Campaigns and Marketing Automation
      • Run multi-step DM campaigns
      • AI Personalization
      • AI Replies (Coming Soon)
      • Start Ad Campaigns using Blaze
      • Unified Inbox
      • Manage Discord Campaigns and DMs
        • Discord DM Users
      • Rewards, Social Referrals and Quests
        • Create a Rewards Campaign
          • Available Actions
          • Edit campaign
        • Share quest page and track performance
        • Distribute Rewards
      • Run campaigns via XMTP Wallet Messaging
      • Distribute Airdrops to on-chain leads
      • Distribute NFTs to your users
    • Social Media Management - Twitter
      • Post and Schedule Tweets
      • Post and Schedule Farcaster Casts
      • Post Library
      • Top Performing Tweets
      • Twitter Analytics
        • Understand Twitter growth and engagement
    • Discord Analytics
      • Comprehensive Overview of your Discord Community
      • Create Discord Custom Report of your community
      • Find Sentiment of Discord Community
      • Analyze Engagement rate of your Discord Members
      • Find Topics discussed by your Discord Community
      • Product Feedback + User Insights
        • Messages
        • Message Explorer
        • Trend Explorer
        • Collect feedback with forms
        • Invite Attribution
      • Measure cross-platform marketing campaigns
    • Wallet metrics glossary
    • KOL Index
    • Cross Platform Analytics
      • Create and analyze a Twitter campaign
  • Blaze API
    • Getting started
      • Set up the Zapier integration
      • Set up API access
    • Data API
      • Active Users
      • Price
      • New users
      • Transaction Count
      • Market Cap
      • Transaction Fees
      • Official Account Metrics
      • Community Mentions Metrics
      • Retention Metrics
    • Community API
      • Ping
      • Member Details
      • Member Activity
      • Members Activity By Id
      • Discord Messages
      • Invite Attributions
    • CRM and Rewards API
      • Overview
        • Schema
        • Transaction Operations
      • Create User
      • Update User
      • Delete User
      • Create Transaction
      • Retrieve Transactions
      • Update Transaction
      • Delete Transaction
      • Leaderboard
      • Tasks and User Completion
    • Wallet Intelligence and Identity API
      • Wallet Holdings
      • Smart Contract Interactions
      • Average Token Hold Time
      • Wallet Traits
      • Wallet Scores
      • Wallet Socials
      • Token Holders
  • Get in touch
    • Support
    • Feedback
Powered by GitBook
On this page

Was this helpful?

  1. Blaze API
  2. CRM and Rewards API

Create Transaction

GraphQL endpoint to add a transaction corresponding to an existing wallet address

PreviousDelete UserNextRetrieve Transactions

Last updated 1 year ago

Was this helpful?

  • Mutation:

    mutation CreateCustomUserTransaction(
            $primaryWalletAddress: String, 
            $walletAddress: String, 
            $transactionType: CustomCRMTransactionTypeEnum!, 
            $amount: Float!, 
            $amountType: String, 
            $currencyValue: Float!, 
            $currencyType: CustomCRMTransactionCurrencyTypeEnum!, 
            $timestamp: String!, 
            $details: String,
            $transactionHash: String,
            $chainId: Int
        ) {
        createCustomUserTransaction(
            primaryWalletAddress: $primaryWalletAddress
            walletAddress: $walletAddress
            transactionType: $transactionType
            amount: $amount
            amountType: $amountType
            currencyValue: $currencyValue
            currencyType: $currencyType
            timestamp: $timestamp
            details: $details
            transactionHash: $transactionHash
            chainId: $chainId
        ) {
            status
            transactionId
            errors{
                message
                code
            }
        }
    }
  • Variables:

    • **primaryWalletAddress** (required)

    • transaction (required)

    • Enum for transaction type: BUY, SEND, MOBILE_APP_SWAP, WEB_APP_SWAP, PRESALE_BUY

    • Enum for Amount Type : ETH, BNB (optional and default null)

      • (This is being changed to String/Null)

    • Enum for Currency Type: USD, EUR (optional and default USD)

  • Example json payload:

    {
        "primaryWalletAddress": "14324", 
        "walletAddress": "14324", 
        "transactionType": "BUY", 
        "amount": 10.0, 
        "amountType": "ETH", 
        "currencyValue": 10000, 
        "currencyType": "USD", 
        "timestamp": "01-01-2024",
        "transactionHash": "tx_id_here",
        "chainId": 2
    
    }
  • Errors:

    • Code: 404 (User for wallet address not found)

    • Code: 400 (Testnet transactions not allowed)

    • Code: 409 (Transaction hash, chain id combination already exists)

CreateCustomUserTransaction | Blaze AIPostman
Logo