Fetch a Sui object by its address with BCS-encoded contents.
Use this for low-level object access when you need raw BCS data. For JSON-decoded data, use getObjectWithJson instead.
The Sui object address (0x...)
Promise resolving to object with BCS contents
const result = await getObjectByAddress("0x123...");const bcsData = result.data?.object?.asMoveObject?.contents?.bcs; Copy
const result = await getObjectByAddress("0x123...");const bcsData = result.data?.object?.asMoveObject?.contents?.bcs;
Fetch a Sui object by its address with BCS-encoded contents.
Use this for low-level object access when you need raw BCS data. For JSON-decoded data, use getObjectWithJson instead.