mallow docs

Send signed jellybean draws

POST
/v1/sendDrawJellybeanTxs/{jellybeanKey}

The second half of a draw. Sign the transactions from /v1/getDrawJellybeanTxs/{jellybeanKey} with the buyer's wallet and post them here — do not send them yourself: they need mallow's co-signature, which is only ever added here. Mallow co-signs each transaction, after a short random delay, sends it and rebroadcasts it until it confirms or expires. The delay keeps the buyer from choosing the slot a draw lands in, which decides the item drawn. Mallow never returns a co-signed transaction, so the buyer cannot send a draw on its own. Each transaction is sent at most once and must still have a live blockhash. A draw mallow pays for answers with a pendingId instead of a txId: poll /v1/sendDrawJellybeanTxs/{jellybeanKey}/status for its outcome.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

jellybeanKey*string

Address of the jellybean machine (base58).

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/sendDrawJellybeanTxs/string" \  -H "Content-Type: application/json" \  -d '{    "txs": [      "string"    ]  }'
{  "result": {    "results": [      {        "txId": "string",        "pendingId": "string",        "error": {          "message": "string",          "logs": [            "string"          ]        }      }    ]  }}