Create sponsored transaction

Creates sponsored transaction

post/v1/transaction-blocks/sponsor

Request

  • Base URL
    http://api.enoki.mystenlabs.com
  • Auth
    HTTP bearer

Headers

zklogin-jwtstring

The JWT of the user signed in with zkLogin.

Request body

network'testnet' | 'mainnet' | 'devnet'

The Sui network you wish to use. Defaults to mainnet.

transactionBlockKindBytesstring required

Bytes of the transaction with the onlyTransactionKind flag set to true.

senderstring

The address sending the transaction. Include this parameter if not including the zklogin-jwt header. This option is only supported when calling the API from a backend service using a private key.

allowedAddressesstring[]

List of Sui addresses that can be present in the transaction. These addresses are combined with the list configured in the Enoki Developer Portal. Transactions attempting to refer to or transfer assets outside of these addresses are rejected.

allowedMoveCallTargetsstring[]

List of permitted Move targets the sponsored user's transactions can call.

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.