add userAgent and usageContext to faucet transactions (#2309)

This commit is contained in:
jonathanlei
2023-06-13 10:56:40 -07:00
committed by GitHub
parent 695c89eda4
commit 5726a6251d
9 changed files with 56 additions and 16 deletions

View File

@@ -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',