diff --git a/packages/rpc/README.md b/packages/rpc/README.md index eeccaa1e..affcfe9f 100644 --- a/packages/rpc/README.md +++ b/packages/rpc/README.md @@ -15,15 +15,15 @@ We now accepts rpcUrl on each method, so you can pass your own RPC regarding one https://docs.near.org/api/rpc/providers -### `getBalance(account: string, rpcUrl?: string): BN` +### `getBalance({account: string, rpcUrl?: string}): BN` Fetches the balance of a NEAR account (in yocto) by address. -### `getBlockHeight(rpcUrl?: string): number` +### `getBlockHeight({rpcUrl?: string}): number` Returns the current block height for the configured network. -### `getTxnStatus(txnHash: string, senderId: string,rpcUrl?: string): TxnStatus` +### `getTxnStatus({txnHash: string, senderId: string,rpcUrl?: string}): TxnStatus` For a transaction hash, determine the status of a transaction on the configured network: `pending`, `success`, or `failure` @@ -31,7 +31,7 @@ For a transaction hash, determine the status of a transaction on the configured Calls a token contract in order to determine the percentage amounts paid out to royalty accounts. -### `getAccessKeys(accountId: string,rpcUrl?: string): Promise` +### `getAccessKeys({accountId: string,rpcUrl?: string}): Promise` Gets all access keys (public key and permissions object) for a given account.