W3Block Docs
  • ๐Ÿš€Start here
    • Welcome to the Docs
    • Integrated Blockchains
  • ๐Ÿ‘จโ€๐Ÿ’ปDev Docs
    • API
      • Getting Started
      • Authentication
      • Commerce API services
        • Company Administration
          • Companies (Admin)
          • Assets (Admin)
          • Tags (Admin)
          • Products (Admin)
            • Order Rules (Admin)
          • Orders (Admin)
          • Faq (Admin)
          • Webhooks (Admin)
        • Products
        • Orders
        • Webhooks
        • Faq
        • Globals
      • Key API Services
        • Authentication
        • Companies
        • Tokens
          • Contracts
            • External Contacts
            • Royalty Eligible
          • Categories
            • Subcategories
          • Token Collections
            • Token Editions
          • Metadata
        • Blockchain
        • Cloudinary
        • Integration
          • Ecommerce
            • Associate Tokens
            • Hooks
        • Users
        • Vouchers
  • ๐Ÿ“˜Knowledge Base
    • First Steps
    • FAQ
    • Glossary
Powered by GitBook
On this page
  1. Dev Docs
  2. API
  3. Key API Services

Blockchain

PreviousMetadataNextCloudinary

Last updated 2 years ago

๐Ÿ‘จโ€๐Ÿ’ป
get

Gets the wallet with given address balance

Authorizations
Path parameters
addressstringRequiredExample: 0xDAA50a02340cBcFA1a6F4c02765430Ffe411b188
chainIdstring ยท enumRequiredExample: 1Possible values:
Responses
401
Unauthorized - Integration API key or JWT required
get
GET /blockchain/balance/{address}/{chainId} HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Accept: */*
401

Unauthorized - Integration API key or JWT required

No content

Deprecated
get
Authorizations
Path parameters
companyIdstringRequired
Responses
401
Unauthorized - Integration API key or JWT required
get
GET /blockchain/gas-cost/{companyId} HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Accept: */*
401

Unauthorized - Integration API key or JWT required

No content

  • POST/blockchain/webhook/event/{companyId}
  • POST/blockchain/webhook/transaction/{companyId}
  • GET/blockchain/balance/{address}/{chainId}
  • GET/blockchain/gas-cost/{companyId}
post
Path parameters
companyIdstringRequired
Header parameters
x-pixchain-signaturestringRequired
Responses
401
Unauthorized - Invalid Pixchain signature
post
POST /blockchain/webhook/transaction/{companyId} HTTP/1.1
Host: 
x-pixchain-signature: text
Accept: */*
401

Unauthorized - Invalid Pixchain signature

No content

post
Path parameters
companyIdstringRequired
Header parameters
x-pixchain-signaturestringRequired
Body
blockNumbernumberRequiredExample: 256
blockHashstringRequiredExample: 0x75a3c22ef6e394a496fb7cdb16c9c5a975d6c4950f931a9df9bff38a2a9371a7
transactionHashstringRequiredExample: 0x9882f164a13ad7cfaeb682d36415f6bd8d0348f7f738b85c7668665fa00956c4
addressstringRequiredExample: 0x82dbB0A14F79f50c8f8e0D50FC9F1ef30Aeb6C79
topicsstring[]Required
datastringRequiredExample: 0x
logIndexnumberRequiredExample: 0
chainIdstring ยท enumRequiredDefault: 1Example: 1Possible values:
timestampnumberRequiredExample: 1653579785
namestringRequiredExample: Transfer
signaturestringRequiredExample: Transfer(address,address,uint256)
topicstringRequiredExample: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
transactionIndexnumberRequiredExample: 0
argsobjectRequiredExample: {"from":"0x0000000000000000000000000000000000000000","to":"0xe5dc6eb721b535ece3be1b3220be2ce41ac284fc","tokenId":{"_hex":"0x03","_isBigNumber":true}}
transactionIdstringOptional
senderstring | nullableOptionalExample: 0x82dbB0A14F79f50c8f8e0D50FC9F1ef30Aeb6C79
Responses
401
Unauthorized - Invalid Pixchain signature
post
POST /blockchain/webhook/event/{companyId} HTTP/1.1
Host: 
x-pixchain-signature: text
Content-Type: application/json
Accept: */*
Content-Length: 718

{
  "blockNumber": 256,
  "blockHash": "0x75a3c22ef6e394a496fb7cdb16c9c5a975d6c4950f931a9df9bff38a2a9371a7",
  "transactionHash": "0x9882f164a13ad7cfaeb682d36415f6bd8d0348f7f738b85c7668665fa00956c4",
  "address": "0x82dbB0A14F79f50c8f8e0D50FC9F1ef30Aeb6C79",
  "topics": [
    "text"
  ],
  "data": "0x",
  "logIndex": 0,
  "chainId": 1,
  "timestamp": 1653579785,
  "name": "Transfer",
  "signature": "Transfer(address,address,uint256)",
  "topic": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
  "transactionIndex": 0,
  "args": {
    "from": "0x0000000000000000000000000000000000000000",
    "to": "0xe5dc6eb721b535ece3be1b3220be2ce41ac284fc",
    "tokenId": {
      "_hex": "0x03",
      "_isBigNumber": true
    }
  },
  "transactionId": "text",
  "sender": "0x82dbB0A14F79f50c8f8e0D50FC9F1ef30Aeb6C79"
}
401

Unauthorized - Invalid Pixchain signature

No content