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
| field | description | type | required | default |
|---|---|---|---|---|
| access_token | Embed page access token | String | Yes | |
| chain_id | Block chain id | Number | 1 | |
| detect_website | website url where the transaction occurred | String | ||
| method | Request method, for example: eth_sendTransaction | String | Yes | |
| params | Request params | String | Yes | |
| background_color | Background color, rgb format can be passed in, but hex color format cannot be passed in | String | ||
| selected_address | Current owner's wallet account address | String | ||
| language | For example: en, ja, zh, vi, id, bd | String | ||
| nft_valuation | Whether to display nft valuation | Boolean |
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¶ms=%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',
}}
/>
);
}

