Function: buyTokens()

function buyTokens<ThrowOnError>(options: OmitKeys<RequestOptions<ThrowOnError>, "body" | "url"> & BuyTokensData & Pick<RequestOptions<ThrowOnError>, "headers">): RequestResult<TokenTransaction, ErrorResponse, ThrowOnError>

Defined in: packages/api/src/client/sdk.gen.ts:187

Purchase tokens from an existing offer.
Allows users to purchase tokens from an existing offer on the Mina blockchain.
This endpoint facilitates the transaction where tokens are transferred from the offer address to the buyer's address in exchange for the specified price.

Type Parameters

ThrowOnError extends boolean = false

Parameters

options

OmitKeys<RequestOptions<ThrowOnError>, "body" | "url"> & BuyTokensData & Pick<RequestOptions<ThrowOnError>, "headers">

Returns

RequestResult<TokenTransaction, ErrorResponse, ThrowOnError>