UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

13 lines 356 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isContract = isContract; async function isContract(agent, address) { try { const code = await agent.publicClient.getCode({ address }); return code !== '0x'; } catch (error) { return false; } } //# sourceMappingURL=isContract.js.map