@terminal3/t3n-sdk 0.14.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -745,6 +745,24 @@ declare class T3nClient {
745
745
  * @throws {ContractResponseError} when the response is not valid JSON
746
746
  */
747
747
  executeAndDecode<T = unknown>(payload: unknown, schema?: ContractResponseSchema<T>): Promise<T>;
748
+ /**
749
+ * Return the authenticated user's Ethereum address from their
750
+ * T3N-hosted per-user wallet, as a 0x-prefixed lowercase hex string.
751
+ * Returns `null` if the user has no wallet yet (pre-backfill edge
752
+ * case — `tee:user` has not yet been migrated for this DID).
753
+ *
754
+ * Backed by the `tee:user/get-self-eth-address` contract function,
755
+ * which delegates to the signing host's `get-user-eth-address`
756
+ * primitive (T3-TS-027 §7.1). The request carries no body; the
757
+ * authenticated user's DID is read from session context by the host.
758
+ *
759
+ * Requires the session to be Authenticated (same precondition as
760
+ * {@link execute}).
761
+ *
762
+ * @throws if unauthenticated, if the node rejects the action, or if
763
+ * the response is not a JSON string / `null`.
764
+ */
765
+ getSelfEthAddress(): Promise<string | null>;
748
766
  /**
749
767
  * The server-minted session ID once handshake has completed, or
750
768
  * `null` beforehand (pentest M-1 / MAT-983).