Place Offer on NFTs

Placing offers on NFTs on HashGuild is possible - the following endpoints show what data needs to be displayed to receive well-built transactions, confirm transactions and what to show endusers.


POST/v1/offer/hashpack

Retrieve NFT Offer Transaction - Hashpack

This endpoint allows you to post the HashGuild API and retrieve a Hashpack transaction string to direct to the Hashpack extension.

Required attributes

  • Name
    accountId
    Type
    string
    Description

    The account id of the user wishing to place a bid on the NFT.

  • Name
    tokenId
    Type
    string
    Description

    The token id of the NFT to be placed an offer on.

  • Name
    serialNo
    Type
    integer
    Description

    The serial number of the NFT to be placed an offer on.

  • Name
    offerAmount
    Type
    integer
    Description

    The amount to be offered for the NFT - in HBAR.

Request

POST
/v1/offer/hashpack
 curl -X https://hashguild.xyz/api/v1/offer/hashpack \
  -H "Authorization: Bearer {token}" 
   -d "{
        "accountId": "<accountId>",
        "tokenId": "<tokenId>",
        "serialNo": "<serialNumber>", 
        "offerAmount": "<offerAmount>"
   }" 

Response

{
    "byteArray": "CrkCKrYCCssBChsKDAitq9adBhC244DZARIJCAAQABiUmrAQGAASBggAEAAYAxiAwtcvIgIIeDJCUHVyY2hhc2luZyBORlQgd2l0aCAwLjAuNDkxMzk0OTggYW5kIFNlcmlhbCBOdW1iZXIgMSBmb3IgMjIyIEhCQVIuclcKLAoUCgkIABAAGKHnnBAQgPjIs6UBGAAKFAoJCAAQABiUmrAQEP/3yLOlARgAEicKCQgAEAAYqp63FxoaCgkIABAAGKHnnBASCQgAEAAYlJqwEBgBIAASZgpkCiBU2pWm+80uY3j0QRo5jGHMi0dC0CAdWflAzJ1kLKmbLhpAWN1ZRc6MRHhTwgCtA1VgIbZRAifO72cjuYgKDirVplUgeXwjVwF8OIJ0oPVdOuCxYkiQ0oYbzy0VKd6WiKVIDQ==",
    "metadata": {
        "accountToSign": "0.0.34344212",
        "returnTransaction": false
    }
}

Coming soon


POST/v1/comingsoon

Post Offer Success after Transaction was signed

Coming soon