Transaction Preview

In order to facilitate platform integration and reduce development costs, KEKKAI provides a complete set of transaction preview embed page, which includes risk detection features.

Platform only needs to pass the transaction to KEKKAI through query parameter.

How to integrate

The embed page can be accessed through webview or iframe in the platform client.

Embed url

https://embed.kekkai.io/transaction-preview

Query parameter

fielddescriptiontyperequireddefault
access_tokenEmbed page access tokenStringYes
chain_idBlock chain idNumber1
detect_websitewebsite url where the transaction occurredString
methodRequest method, for example: eth_sendTransactionStringYes
paramsRequest paramsStringYes
background_colorBackground color, rgb format can be passed in, but hex color format cannot be passed inString
selected_addressCurrent owner's wallet account addressString
languageFor example: en, ja, zh, vi, id, bdString
nft_valuationWhether to display nft valuationBoolean

Demo experience

You can interact with the embed accessed by the iframe below:

Sample

ReactNative

import WebView from 'react-native-webview';

function Kekkai() {
  return (
    <WebView
      source={{
        uri: 'https://embed.kekkai.io/transaction-preview?chain_id=1&detect_website=https%3A%2F%2Fapp.uniswap.org&method=eth_sendTransaction&params=%5B%7B%22gas%22%3A%220x6d22%22%2C%22value%22%3A%220x2386f26fc10000%22%2C%22from%22%3A%220x4a1ee7f44c87158a0403975c1407a840d7f88888%22%2C%22to%22%3A%220xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2%22%2C%22data%22%3A%220xd0e30db0%22%7D%5D&background_color=white&selected_address=0x4A1Ee7F44c87158a0403975c1407A840D7F88888&language=en&nft_valuation=true',
      }}
    />
  );
}