Assetera Docs
Smart contracts

TypeScript SDK

Consume AsseteraECS with @asseteragmbh/evm-contracts: ABIs, per-chain addresses, a viem client, and wagmi hooks, all generated from the contract.

@asseteragmbh/evm-contracts is the one dependency you need to talk to AsseteraECS and to the primary-sale contracts. It ships the ABIs, the deployed addresses per chain, a viem client, and wagmi hooks, all generated from the Solidity source in the public Assetera-AG/AsseteraEvmContracts repo. Nothing is hand-copied, so it never drifts from what is on chain. The package source and its generator config live in packages/sdk.

npm i @asseteragmbh/evm-contracts viem
# for the React hooks also:
npm i wagmi @tanstack/react-query

Public package

The package is published public on npmjs: no auth token, no .npmrc entry, nothing to request. The source is public too, in the repo linked above.

Which contracts it carries

ContractABIAddress in the deployment record
AsseteraECSyesyes, per chain
AsseteraPrimarySalesyesyes, per chain
Forwarder (ERC-2771)yesyes, per chain
AsseteraIssuanceVenueyesno, and deliberately

An issuance venue is deployed one per offering, so it has no fixed address to publish. Its ABI ships so you can decode and read it; the address of a specific offering's venue reaches you through the catalog and through the signed settlement intent, never from the deployment record.

Check the package's own exports for symbol names

The generated symbol names follow the contract names, and the set grows with each release. Read them from the installed package rather than from this page, which lists the entry points but not every export.

Deployments

Every address here comes straight from the installed package, so it matches exactly what your app resolves. One tab per network the package carries; the SDK resolves all of them by chain id.

Addresses exactly as published in @asseteragmbh/evm-contracts, the version these docs are built against.

Chain ID 1 · CAIP-2 eip155:1 · deployed at block 25,795,740

ContractAddress (integrate against this)
AsseteraECS0xf045d3FE81C14d8c13DbaB0b03a4Ea1505e499ad
AsseteraPrimarySales0xF62757dd232DC7582A5d46F62aAcDb6B739223Dc
Forwarder0x2244B33a97f91284D53d0A12d42F237927C3DBf7
AttestationVerifier0xb0A8bcEbf4b28fae719a8c9feC0bCC19535c1245

Behind the proxy. The addresses above are the stable ones. The UUPS implementation below is what the proxy currently delegates to. It is useful for verifying the deployed bytecode, but it changes on every upgrade, so never hardcode it.

ContractImplementation (changes on every upgrade)
AsseteraECS0xF79D371958A6aC79123eF75B6eD879dAb9ceE82b
AsseteraPrimarySales0xf58cF2421e39a572F821cDDF08Bdf6dce673dc74

Quickstart

Pick the entry point for your app. The AsseteraECS address is resolved by chain id in every path, so you never hardcode it.

The generated hooks resolve the address from the connected chain, so you pass no address.

import { useReadAsseteraEcsTotalOrders } from '@asseteragmbh/evm-contracts/react';

function Orders() {
  const { data } = useReadAsseteraEcsTotalOrders(); // address auto-resolved per chain
  return <span>{data?.toString()}</span>;
}

Wrap the app in the usual wagmi WagmiProvider and QueryClientProvider, configured for the chain you deploy to.

Live state

These docs read the Polygon Amoy deployment live, using the same ABI and address the SDK hands your app. Swap the chain id for any other deployed network above:

Reading AsseteraECS live…

Entry points

ImportForRuntime deps
@asseteragmbh/evm-contractsservices: ABIs, addresses, createExchangeClientviem
@asseteragmbh/evm-contracts/contractsindexer / non-viem: ABIs plus address helpersnone
@asseteragmbh/evm-contracts/reactfront ends: wagmi hooks, address auto-resolvedwagmi, react

Next

On this page