Update the bid whitelist
POSThttps://minatokens.com/api/v1//token/bid/whitelist
Allows administrators to update the whitelist of addresses permitted to interact with the Bid contract. This is essential for managing participation in bidding processes, especially for controlled or private auctions.
Request
- application/json
Bodyrequired
Must be "token:bid:whitelist"
Possible values: [token:bid:whitelist
]
The address of the token contract.
The address (public key) of the sender.
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.
Optional. The nonce for the transaction.
Optional. A memo for the transaction.
Optional. The developer fee for the transaction.
The address of the bid to update whitelist for.
whitelist objectrequired
Responses
- 200
- 400
- 401
- 403
- 429
- 500
- 503
Successfully built update bid whitelist transaction.
- application/json
- Schema
- Example (auto)
Schema
The address initiating the transaction.
The nonce for the transaction.
A memo for the transaction.
The fee for the transaction.
walletPayload objectrequired
minaSignerPayload objectrequired
The payload for the prover.
The signed data for the transaction.
The raw transaction data.
Optional. Whether to broadcast the transaction after proving.
The symbol of the token.
request objectrequired
{
"sender": "string",
"nonce": 0,
"memo": "string",
"fee": 0,
"walletPayload": {
"nonce": 0,
"transaction": "string",
"onlySign": true,
"feePayer": {
"fee": 0,
"memo": "string"
}
},
"minaSignerPayload": {
"zkappCommand": {},
"feePayer": {
"feePayer": "string",
"fee": 0,
"nonce": 0,
"memo": "string"
}
},
"proverPayload": "string",
"signedData": "string",
"transaction": "string",
"sendTransaction": true,
"symbol": "string",
"request": {
"txType": "token:launch",
"tokenAddress": "string",
"sender": "string",
"senderPrivateKey": "string",
"nonce": 0,
"memo": "string",
"developerFee": 0,
"adminContract": "standard",
"symbol": "string",
"decimals": 0,
"uri": "string",
"adminContractAddress": "string",
"tokenContractPrivateKey": "string",
"adminContractPrivateKey": "string"
}
}
Bad request - invalid input parameters.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Unauthorized - user not authenticated.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Forbidden - user doesn't have permission.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Too many requests.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Internal server error - something went wrong during the request.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Service unavailable - blockchain or other external service is down.
- application/json
- Schema
- Example (auto)
Schema
Error message detailing the issue.
{
"error": "string"
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: headerdescription: API key for authorization. Get your API key at https://minatokens.com/api
- curl
- javascript
- nodejs
- python
- rust
- ocaml
- go
- java
- powershell
- CURL
curl -L 'https://minatokens.com/api/v1/token/bid/whitelist' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: <x-api-key>' \
-d '{
"txType": "token:bid:whitelist",
"tokenAddress": "string",
"sender": "string",
"senderPrivateKey": "string",
"nonce": 0,
"memo": "string",
"developerFee": 0,
"bidAddress": "string",
"whitelist": [
{
"address": "string",
"amount": 0
}
]
}'