From b74e187b101e145b36629489ed991a0ea84dd4e3 Mon Sep 17 00:00:00 2001 From: "Justin (HoangVD2)" Date: Mon, 6 May 2024 15:46:51 +0700 Subject: [PATCH] docs: update docs for base transfers --- developers/_xfi.md | 12 ++++++++++-- developers/other-blockchains.md | 13 +++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/developers/_xfi.md b/developers/_xfi.md index 9bec7b1f5..e1f35d7ac 100644 --- a/developers/_xfi.md +++ b/developers/_xfi.md @@ -62,11 +62,19 @@ window.xfi[chainId].request( method: "transfer", params: [ { - asset: "string", - from: "string", + asset: { + chain: "string", + symbol: "string", + ticker: "string", + } + from: { + amount: number, + decimals: number, + }, recipient: "string", amount: "string", memo: "string", + gasLimit: number, // Optional }, ], }, diff --git a/developers/other-blockchains.md b/developers/other-blockchains.md index bcafac1e0..e28fcf6fe 100644 --- a/developers/other-blockchains.md +++ b/developers/other-blockchains.md @@ -79,16 +79,25 @@ Above code will return `Promise` #### Transfer ```javascript + window.xfi[chainId].request( { method: "transfer", params: [ { - asset: "string", - from: "string", + asset: { + chain: "string", + symbol: "string", + ticker: "string", + } + from: { + amount: number, + decimals: number, + }, recipient: "string", amount: "string", memo: "string", + gasLimit: number, // Optional }, ], },