Twetch Developer

Twetch Developer

    ›Protocol

    Protocol

    • Introduction
    • Posting
    • Likes
    • Follows
    • Votes
    • Purchases
    • Feature requests
    • Authentication
    • Twetch API

    twetch-js

    • Overview
    • Library
    • Storage
    • Wallet
    • CLI

    Twetch Pay

    • Overview

    Encryption

    • Overview
    • Create a conversation
    • Send a message
    • Read messages

    Votes

    Voting on Polls

    Action: twetch/poll-vote@0.0.1

    Voting on Twetch polls implement a custom Bitcom prefix address 1voteECpg4Ssh2i2GN6BL2ELETRDGCJAh

    PositionExample valueDescriptionNotes
    00OP_FALSE opcode
    1OP_RETURNOP_RETURN opcode
    21voteECpg4Ssh2i2GN6BL2ELETRDGCJAhTwetch Poll Vote protocol prefix
    331766f74654543706734537368326932474e36424c32454c4554524447434a4168Poll transaction ID being voted on
    40Vote selection (Integer)Index of poll array included in content of transaction ID in 3
    5twetchDefault null
    662637fa6-a2ca-476c-a778-fea28bfa027aInvoice
    7Pipe characterProtocol boundary
    815PciHG22SNLQJXMoSUaWVi7WSqc7hCfvaAIP protocol prefix
    9BITCOIN_ECDSABITCOIN_ECDSA
    1018owVREbz1jQb6by4h94mR6zJBGPaWzao4Signing address
    11H2B0QwW4Ovd01qX0ji5f4tIPZLL3I/XP1Qj9iH1jh5jJfJT fQ1NrGwLoVBbWpuMPLDdXROWK87WuBIbjpmRcxUw=Signature of SHA256 hash of an ArrayBuffer of fields 2-6**

    **The process outlining how to sign Twetch data is detailed here.

    ← FollowsPurchases →
    • Voting on Polls