Skip to main content
POST
Create VEM Request

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string<uuid>
required

Arbitrary UUID. You can later use that UUID to check the status of the VEM request.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

type
enum<string>
default:off_chain
required

Type of the VEM request:

  • `off_chain` — off-chain signature.
  • `on_chain` — on-chain signature.
Available options:
off_chain,
on_chain
Example:

"off_chain"

vemRequest
string

Prepared VEM request. Required if the type is off_chain.

Example:

"{\"action\": \"vem_request\",\"pubkeys\": [\"0x867a9f95287decd74e076b8fefca3022fcb2c3c37de246e950ade0cc3609c74d4badda62657a64c2c4009f1b6625c647\", \"0x93e298f6ac5fb8f262a23450d1638aec1c45f77fd1ac86beb19b696b3b84fef3694e9b2166b337783911a3d7df13fbf1\"],\"ecdh_client_pubkey\": \"0xa16c2f1354a7a58abbf78172730595c4de8277962ebe92100793f99ea80f66abe5e75a14a52e86ce1c086c1ca2e1662b3900510346d848b425d34279ceea92661fb1166b9438589c0b57eb4ebb69e0c3844ebe5ad4c0e316b637d47148d69dc2387c2968c82d198114a6c0f14a605a9e85110d24a9db4f11963b9b13dc788c0538096cadffd258364c63621f6bb1a3e515d3741af4619e62452a394fab9d84be7cee255fdd7216401cafee6471b4adbb77e93f878f1bb4df633e0632522b51fe70fc154e7d3e60a69f815a4e2a84506f05b1ccfce01e873cd7dc51fba0b6eac66af1c0a7500f71af405a6c34ffd27a1239180c22fbddf8dc15d30c821c57307d\"}"

vemRequestSignature
string

Signature of vem_request by either withdrawalAddress or controllerAddress. Required if the type is off_chain.

Example:

"0x5d64827430e3d2fc1f4C9293709B13fc2af45c8eed295f96a4195d2c9224b5e344a969279ff437139868fc7e534191217ef3fe4d9c9b71d1bfeeDASbfb26d118243"

vemRequestSignedBy
string

withdrawalAddress or controllerAddress that signed the request. Required if the type is off_chain.

Example:

"0x78ADAeE48151b2E42de20f42b1a1980871314Ef5"

vemRequestTxId
string

Hash of the successful vem_request transaction. Required if the type is on_chain.

Example:

null

vemRequestProof
string

Hash of the signed vemRequestTxId transaction. Required if the type is on_chain.

Example:

null

Response

OK

The response is of type any.