| Source | Destination | Time (ms) | Value per second |
|---|---|---|---|
| ETH | XRP | 150.1 | 266x trust limit |
| XRP | ETH | 196.4 | 203x trust limit |
| XRP | BTC | 3119.6 | 13x trust limit |
| ETH | BTC | 3048.0 | 13x trust limit |
| BTC | ETH | 3822.9 | 10x trust limit |
| BTC | XRP | 3962.2 | 10x trust limit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { neonConfig, Pool } from '@neondatabase/serverless' | |
| import { PrismaNeon } from '@prisma/adapter-neon' | |
| import { PrismaClient } from '@prisma/client' | |
| import { WebSocket } from 'ws' | |
| // Example Supabase pooled connection string (must use Supavisor) | |
| const connectionString = | |
| 'postgres://[username].[id]:[password]@aws-0-us-east-1.pooler.supabase.com:5432/[db]' | |
| const url = new URL(connectionString) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { connect } = require('@kava-labs/switch-api') | |
| const BigNumber = require('bignumber.js') | |
| async function run() { | |
| // Connect the API, which uses testnet by default | |
| const api = await connect() | |
| // Add new uplink with an account on the Kovan Ethereum testnet | |
| const ethUplink = await api.add({ | |
| settlerType: 'machinomy', |