FungibleToken

Sell a token to the Bid contract.

Changed on

Allows token owners to sell their tokens to the Bid contract.

post/token/bid/sell

Request

  • Base URL: https://minatokens.com/api/v1
  • URL: https://minatokens.com/api/v1/token/bid/sell
  • Auth: API key in header x-api-key

Request body

txType'token:bid:sell'

Must be "token:bid:sell"

tokenAddressstring required

The address of the token contract.

senderstring required

The address (public key) of the sender.

senderPrivateKeystring

The private key of the sender. It is NOT recommended to use this field. Please use the sender field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.

nonceinteger

Optional. The nonce for the transaction.

feeinteger

Optional. The fee for the transaction.

memostring

Optional. A memo for the transaction.

developerFeenumber double

Optional. The developer fee for the transaction.

bidAddressstring required

The address of the bid to sell to.

amountnumber double required

The amount of tokens to sell.

Response

Successfully built sell transaction.

senderstring required

The address initiating the transaction.

nonceinteger required

The nonce for the transaction.

memostring required

A memo for the transaction.

feenumber double required

The fee for the transaction.

proverPayloadstring required

The payload for the prover.

signedDatastring required

The signed data for the transaction.

transactionstring required

The raw transaction data.

sendTransactionboolean

Optional. Whether to broadcast the transaction after proving.

symbolstring required

The symbol of the token.

Changes

    • info

      added the new optional request property ////////

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • breaking

      the ///// response's property type changed from any to object for status

    • info

      api tag FungibleToken added

    • info

      api tag Fungible Token removed