mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-28 03:50:34 +00:00
* refactor: add custom token new backend * refactor: add transactions new backend * refactor: add collectible new backend * refactor: add accounts backend * refactor: add settings backend * refactor: Add eth call to fetch balance * refactor: add call to get eth block
14 lines
520 B
Nim
14 lines
520 B
Nim
import json
|
|
import ./core, ./response_type
|
|
|
|
export response_type
|
|
|
|
proc getOpenseaCollections*(chainId: int, address: string): RpcResponse[JsonNode] =
|
|
let payload = %* [chainId, address]
|
|
return callPrivateRPC("wallet_getOpenseaCollectionsByOwner", payload)
|
|
|
|
proc getOpenseaAssets*(
|
|
chainId: int, address: string, collectionSlug: string, limit: int
|
|
): RpcResponse[JsonNode] =
|
|
let payload = %* [chainId, address, collectionSlug, limit]
|
|
return callPrivateRPC("wallet_getOpenseaAssetsByOwnerAndCollection", payload) |