Skip to content

SDK References ​

This section provides a complete reference for all functions available in the BRRR SDK. Functions are grouped into three categories. For step-by-step integration guidance, see the Deposit and Withdraw hubs.

Off-Ramp Functions ​

These functions facilitate crypto-to-fiat transactions, converting tokens held in a user's wallet into EUR credited to their Holyheld card.

FunctionDescription
convertTokenToEURConvert a token amount to its EUR equivalent at the current rate
convertEURToTokenConvert a EUR amount to the corresponding token amount at the current rate
topupExecute an off-ramp transaction, sending tokens to a specified Holyheld $holytag
topupSelfExecute an off-ramp to the Holyheld card of the connected wallet — no $holytag required

On-Ramp Functions ​

These functions facilitate fiat-to-crypto transactions, converting EUR from the user's Holyheld card into tokens delivered to a wallet address.

FunctionDescription
convertTokenToEUREstimate the EUR value of a token amount for on-ramp display
convertEURToTokenEstimate the token amount for a given EUR input
getOnRampEstimationGet a full on-ramp estimate including fees and expected token output
requestOnRampInitiate an on-ramp request, triggering the fiat-to-crypto conversion
watchRequestIdPoll an on-ramp request until it reaches a terminal status

Common Functions ​

These functions are not specific to either flow but are required for general SDK operation, address validation, and balance retrieval.

FunctionDescription
getServerSettingsFetch current service status and min/max EUR limits for on-ramp and off-ramp
getTagInfoLook up a Holyheld $holytag to verify it exists and retrieve recipient details
validateAddressValidate a wallet address and check whether it is eligible for off-ramp and on-ramp
getWalletBalancesRetrieve all supported token balances for a wallet address