mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-25 06:35:48 +00:00
add userAgent and usageContext to faucet transactions (#2309)
This commit is contained in:
@@ -5,7 +5,9 @@ const client = new Client('wss://s.altnet.rippletest.net:51233')
|
||||
async function createTxWithPaths(): Promise<void> {
|
||||
await client.connect()
|
||||
|
||||
const { wallet } = await client.fundWallet()
|
||||
const { wallet } = await client.fundWallet(null, {
|
||||
usageContext: 'code snippets',
|
||||
})
|
||||
const destination_account = 'rKT4JX4cCof6LcDYRz8o3rGRu7qxzZ2Zwj'
|
||||
const destination_amount = {
|
||||
value: '0.001',
|
||||
|
||||
Reference in New Issue
Block a user