Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Aug 20, 2024
1 parent 7cb6c7e commit 9a69863
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ 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`

### `payouts({ contractId, tokenId, rpcUrl? }): Promise<UiPayout>`

Calls a token contract in order to determine the percentage amounts paid out to royalty accounts.

### `getAccessKeys(accountId: string,rpcUrl?: string): Promise<AccessKey>`
### `getAccessKeys({accountId: string,rpcUrl?: string}): Promise<AccessKey>`

Gets all access keys (public key and permissions object) for a given account.

Expand Down

0 comments on commit 9a69863

Please sign in to comment.