@turnkey/viem
Version:
Turnkey Helpers to work with Viem
1,191 lines (775 loc) • 31.7 kB
Markdown
# @turnkey/viem
## 0.14.26
### Patch Changes
- Updated dependencies [[`82dc76c`](https://github.com/tkhq/sdk/commit/82dc76c7ce51e5375570bbffab32eb739af90381), [`1d108d6`](https://github.com/tkhq/sdk/commit/1d108d6496ad8266db0e997a27aecc81e46008fb), [`dfdd864`](https://github.com/tkhq/sdk/commit/dfdd8647266fdd0297aaea32046ee815ae8fc27c)]:
- @turnkey/core@1.13.0
- @turnkey/sdk-browser@5.15.2
- @turnkey/api-key-stamper@0.6.3
- @turnkey/http@3.17.1
- @turnkey/sdk-server@5.1.1
## 0.14.25
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.15.1
## 0.14.24
### Patch Changes
- Updated dependencies [[`af6262f`](https://github.com/tkhq/sdk/commit/af6262f31e1abb3090fcda1eec5318056e6d51fe), [`1f6e240`](https://github.com/tkhq/sdk/commit/1f6e2403fca1fd9cbca646f88c88dbc49ddb0c34), [`58e04e5`](https://github.com/tkhq/sdk/commit/58e04e5856626d9d2593abb61d8ca32d8ccbb833), [`7458b7c`](https://github.com/tkhq/sdk/commit/7458b7cd6fc64796b376e3374b7c2ed79467459c)]:
- @turnkey/core@1.12.0
- @turnkey/sdk-browser@5.15.0
- @turnkey/sdk-server@5.1.0
- @turnkey/http@3.17.0
- @turnkey/api-key-stamper@0.6.2
## 0.14.23
### Patch Changes
- [#1182](https://github.com/tkhq/sdk/pull/1182) [`fb5a861`](https://github.com/tkhq/sdk/commit/fb5a86122c8afc51a7a2868fe01dc49dd0d4e076) Author [@andrewkmin](https://github.com/andrewkmin) - Add support for Tempo transaction signing
- Updated dependencies [[`d49ef7e`](https://github.com/tkhq/sdk/commit/d49ef7e9f0f78f16b1324a357f61cf0351198096), [`dced9db`](https://github.com/tkhq/sdk/commit/dced9dbbd8ea533442e19e45ce36e6a05a45a555), [`dced9db`](https://github.com/tkhq/sdk/commit/dced9dbbd8ea533442e19e45ce36e6a05a45a555)]:
- @turnkey/core@1.11.2
- @turnkey/sdk-browser@5.14.3
- @turnkey/sdk-server@5.0.3
- @turnkey/http@3.16.3
## 0.14.22
### Patch Changes
- Updated dependencies [[`2d19991`](https://github.com/tkhq/sdk/commit/2d19991bcf4e1c9704b73a48c54e870373b4bd95), [`89d4084`](https://github.com/tkhq/sdk/commit/89d40844d791b0bbb6d439da5e778b1fdeca4273), [`4742eaf`](https://github.com/tkhq/sdk/commit/4742eafbfdcc6fe6b6d3aab01569ad94a5198571), [`ba2521d`](https://github.com/tkhq/sdk/commit/ba2521d5d1c1f6baaa58ee65dce8cc4839f7dc7b), [`12ca083`](https://github.com/tkhq/sdk/commit/12ca083314310b05cf41ac29fa2d55eed627f229), [`a85153c`](https://github.com/tkhq/sdk/commit/a85153c8ccc7454cd5aca974bc463fb47c7f8cd4)]:
- @turnkey/core@1.11.1
- @turnkey/sdk-server@5.0.2
- @turnkey/sdk-browser@5.14.2
- @turnkey/api-key-stamper@0.6.1
- @turnkey/http@3.16.2
## 0.14.21
### Patch Changes
- Updated dependencies [[`91d6a9e`](https://github.com/tkhq/sdk/commit/91d6a9eb1b9ac9e21745749615ac7a7be66f5cf6), [`91d6a9e`](https://github.com/tkhq/sdk/commit/91d6a9eb1b9ac9e21745749615ac7a7be66f5cf6), [`699fbd7`](https://github.com/tkhq/sdk/commit/699fbd75ef3f44f768ae641ab4f652e966b8e289)]:
- @turnkey/core@1.11.0
- @turnkey/api-key-stamper@0.6.0
- @turnkey/sdk-browser@5.14.1
- @turnkey/http@3.16.1
- @turnkey/sdk-server@5.0.1
## 0.14.20
### Patch Changes
- Updated dependencies [[`6261eed`](https://github.com/tkhq/sdk/commit/6261eed95af8627bf1e95e7291b9760a2267e301), [`78ec1d9`](https://github.com/tkhq/sdk/commit/78ec1d9afcafde3ca7107fc720323d486d6afaea), [`dbd4d8e`](https://github.com/tkhq/sdk/commit/dbd4d8e4ea567240c4d287452dd0d8f53050beca), [`cfd34ab`](https://github.com/tkhq/sdk/commit/cfd34ab14ff2abed0e22dca9a802c58a96b9e8e1), [`78ec1d9`](https://github.com/tkhq/sdk/commit/78ec1d9afcafde3ca7107fc720323d486d6afaea)]:
- @turnkey/core@1.10.0
- @turnkey/sdk-server@5.0.0
- @turnkey/sdk-browser@5.14.0
- @turnkey/http@3.16.0
## 0.14.19
### Patch Changes
- Updated dependencies [[`29a42db`](https://github.com/tkhq/sdk/commit/29a42db8f5f3ef8b9c23c90cd00f4c21027aac2e)]:
- @turnkey/core@1.9.0
- @turnkey/sdk-browser@5.13.6
- @turnkey/sdk-server@4.12.2
## 0.14.18
### Patch Changes
- Updated dependencies [[`7185545`](https://github.com/tkhq/sdk/commit/7185545ea1fc05eb738af09de5a594455f2e08f3)]:
- @turnkey/core@1.8.3
- @turnkey/sdk-browser@5.13.5
## 0.14.17
### Patch Changes
- Updated dependencies [[`3c23fc2`](https://github.com/tkhq/sdk/commit/3c23fc27eda5325a90e79afff4cc3a16f682e1d9)]:
- @turnkey/core@1.8.2
## 0.14.16
### Patch Changes
- Updated dependencies [[`d4768c7`](https://github.com/tkhq/sdk/commit/d4768c71b6796532c9800d546154116e5d36b255)]:
- @turnkey/core@1.8.1
- @turnkey/sdk-browser@5.13.4
## 0.14.15
### Patch Changes
- Updated dependencies [[`fd2e031`](https://github.com/tkhq/sdk/commit/fd2e0318079de922512b1f5adb404b11921f77b7), [`e1bd68f`](https://github.com/tkhq/sdk/commit/e1bd68f963d6bbd9c797b1a8f077efadccdec421)]:
- @turnkey/core@1.8.0
- @turnkey/sdk-browser@5.13.3
- @turnkey/sdk-server@4.12.1
## 0.14.14
### Patch Changes
- Updated dependencies [[`4d29af2`](https://github.com/tkhq/sdk/commit/4d29af2dd7c735916c650d697f18f66dd76c1b79)]:
- @turnkey/sdk-browser@5.13.2
## 0.14.13
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.13.1
## 0.14.12
### Patch Changes
- Updated dependencies [[`beee465`](https://github.com/tkhq/sdk/commit/beee465a13f64abeb71c5c00519f7abab9942607), [`67b03a5`](https://github.com/tkhq/sdk/commit/67b03a5d9ab1b6eabfb0b41938ac91365b5dcd9b)]:
- @turnkey/core@1.7.0
- @turnkey/sdk-browser@5.13.0
- @turnkey/sdk-server@4.12.0
- @turnkey/http@3.15.0
## 0.14.11
### Patch Changes
- Updated dependencies [[`71cdca3`](https://github.com/tkhq/sdk/commit/71cdca3b97ba520dc5327410a1e82cf9ad85fb0e), [`9fbd5c4`](https://github.com/tkhq/sdk/commit/9fbd5c459782dc3721dd0935d0a4458babce258b)]:
- @turnkey/sdk-server@4.11.0
- @turnkey/sdk-browser@5.12.0
- @turnkey/core@1.6.0
- @turnkey/http@3.14.0
## 0.14.10
### Patch Changes
- [#1030](https://github.com/tkhq/sdk/pull/1030) [`a177cd5`](https://github.com/tkhq/sdk/commit/a177cd5ba4bcb52d7d2121871e50a21f75622667) Author [@Serdnad](https://github.com/Serdnad) - Fix object returned by signAuthorization to not include duplicate 0x prefixes.
- Updated dependencies []:
- @turnkey/core@1.5.2
- @turnkey/sdk-browser@5.11.6
- @turnkey/sdk-server@4.10.5
## 0.14.9
### Patch Changes
- Updated dependencies [[`886f319`](https://github.com/tkhq/sdk/commit/886f319fab8b0ba560d040e34598436f3beceff0)]:
- @turnkey/core@1.5.1
## 0.14.8
### Patch Changes
- Updated dependencies [[`5c4495b`](https://github.com/tkhq/sdk/commit/5c4495bff1b0abfe3c427ead1b8e1a8d510c8186), [`001d822`](https://github.com/tkhq/sdk/commit/001d8225202500e53aa399d6aee0c8f48f6060e0)]:
- @turnkey/core@1.5.0
- @turnkey/sdk-browser@5.11.5
- @turnkey/sdk-server@4.10.4
## 0.14.7
### Patch Changes
- Updated dependencies [[`9df42ad`](https://github.com/tkhq/sdk/commit/9df42adc02c7ff77afba3b938536e79b57882ef1)]:
- @turnkey/sdk-browser@5.11.4
- @turnkey/sdk-server@4.10.3
- @turnkey/core@1.4.2
- @turnkey/http@3.13.1
## 0.14.6
### Patch Changes
- Updated dependencies [[`e5b9c5c`](https://github.com/tkhq/sdk/commit/e5b9c5c5694b1f4d60c0b8606822bcd6d61da4a3)]:
- @turnkey/core@1.4.1
## 0.14.5
### Patch Changes
- [#995](https://github.com/tkhq/sdk/pull/995) [`9fbcbba`](https://github.com/tkhq/sdk/commit/9fbcbbafb824a24c4f99b54966920ba78e924025) Author [@ethankonk](https://github.com/ethankonk) - Fixed the signAuthorization return type to match viem's signAuthorization return
- Updated dependencies []:
- @turnkey/sdk-browser@5.11.3
## 0.14.4
### Patch Changes
- Updated dependencies [[`6ceb06e`](https://github.com/tkhq/sdk/commit/6ceb06ebdbb11b017ed97e81a7e0dcb862813bfa), [`68631c4`](https://github.com/tkhq/sdk/commit/68631c4008387f845dfe4f1a139981011727f6c9)]:
- @turnkey/core@1.4.0
- @turnkey/sdk-browser@5.11.2
- @turnkey/sdk-server@4.10.2
## 0.14.3
### Patch Changes
- Updated dependencies [[`4adbf9b`](https://github.com/tkhq/sdk/commit/4adbf9bbb6b93f84aa80e06a1eeabd61d1dbbb86), [`4ead6da`](https://github.com/tkhq/sdk/commit/4ead6da626468fde41daf85eae90faf18651d1c1), [`3997c0f`](https://github.com/tkhq/sdk/commit/3997c0fd08a8a85108acf904c0bf39d69f8dc79c)]:
- @turnkey/core@1.3.0
- @turnkey/sdk-browser@5.11.1
- @turnkey/sdk-server@4.10.1
## 0.14.2
### Patch Changes
- Updated dependencies [[`4567059`](https://github.com/tkhq/sdk/commit/45670598f102223925b87a5295edca15a6ce8241), [`010543c`](https://github.com/tkhq/sdk/commit/010543c3b1b56a18816ea92a1a1cbe028cf988e4)]:
- @turnkey/sdk-browser@5.11.0
- @turnkey/sdk-server@4.10.0
- @turnkey/core@1.2.0
- @turnkey/http@3.13.0
## 0.14.1
### Patch Changes
- Updated dependencies [[`0080c4d`](https://github.com/tkhq/sdk/commit/0080c4d011a7f8d04b41d89b31863b75d1a816ef), [`5a96fe8`](https://github.com/tkhq/sdk/commit/5a96fe80db4c4c45e09ad8c613695ee4c2b8e51f), [`c2a0bd7`](https://github.com/tkhq/sdk/commit/c2a0bd7ea8a53524cde16897f375f8a7088ba963), [`90841f9`](https://github.com/tkhq/sdk/commit/90841f95f3f738c47c04797096902d9d0a23afc7), [`e4bc82f`](https://github.com/tkhq/sdk/commit/e4bc82fc51c692d742923ccfff72c2c862ee71a4)]:
- @turnkey/core@1.1.0
- @turnkey/sdk-browser@5.10.1
- @turnkey/sdk-server@4.9.1
- @turnkey/http@3.12.1
## 0.14.0
### Minor Changes
- Updated dependencies [[`fc1d6e2`](https://github.com/tkhq/sdk/commit/fc1d6e2d26f4a53116633e9e8cccccd792267f4e), [`fc1d6e2`](https://github.com/tkhq/sdk/commit/fc1d6e2d26f4a53116633e9e8cccccd792267f4e), [`4880f26`](https://github.com/tkhq/sdk/commit/4880f26a4dd324c049bff7f35284098ccfc55823), [`c6ee323`](https://github.com/tkhq/sdk/commit/c6ee3239c389a7bbbbb23610c84b883ed298f95c), [`c6ee323`](https://github.com/tkhq/sdk/commit/c6ee3239c389a7bbbbb23610c84b883ed298f95c), [`c6ee323`](https://github.com/tkhq/sdk/commit/c6ee3239c389a7bbbbb23610c84b883ed298f95c), [`06347ad`](https://github.com/tkhq/sdk/commit/06347adfa08fb0867c350e43821d0fed06c49624)]:
- @turnkey/sdk-server@4.9.0
- @turnkey/core@1.0.0
- @turnkey/http@3.12.0
- @turnkey/api-key-stamper@0.5.0
- @turnkey/sdk-browser@5.10.0
## 0.14.0-beta.1
### Patch Changes
- Updated dependencies []:
- @turnkey/core@1.0.0-beta.6
- @turnkey/sdk-browser@5.9.0-beta.1
- @turnkey/api-key-stamper@0.5.0-beta.6
- @turnkey/http@3.11.1-beta.0
- @turnkey/sdk-server@4.8.1-beta.0
## 0.14.0-beta.0
### Minor Changes
- SDK beta release @turnkey/react-wallet-kit @turnkey/core
### Patch Changes
- Updated dependencies []:
- @turnkey/api-key-stamper@0.5.0-beta.5
- @turnkey/sdk-browser@5.9.0-beta.0
- @turnkey/sdk-server@4.7.0-beta.2
- @turnkey/core@1.0.0-beta.5
- @turnkey/http@3.10.0-beta.2
## 0.13.1
### Patch Changes
- Updated dependencies [[`026264c`](https://github.com/tkhq/sdk/commit/026264c55aa16342c8925af0bdcdf72dc00e5158)]:
- @turnkey/sdk-browser@5.9.0
- @turnkey/sdk-server@4.8.0
- @turnkey/http@3.11.0
## 0.13.0
### Minor Changes
- [#847](https://github.com/tkhq/sdk/pull/847) [`bc88e60`](https://github.com/tkhq/sdk/commit/bc88e60955883b13d93c04d5681f9b081cdaee92) Author [@andrewkmin](https://github.com/andrewkmin) - Support `signAuthorization` with bespoke, policy-engine compatible payload encoding type. This means you can now target an `address`, `nonce`, or `chainId` within policies. For more information, see an example in our docs [here](https://docs.turnkey.com/policies/examples/ethereum#allow-signing-of-eip-7702-authorizations).
### Patch Changes
- Updated dependencies [[`5d8be2d`](https://github.com/tkhq/sdk/commit/5d8be2d0329070c7aa025dddb1b28f04257ae4e6)]:
- @turnkey/sdk-browser@5.8.0
- @turnkey/sdk-server@4.7.0
- @turnkey/http@3.10.0
## 0.12.1
### Patch Changes
- [#848](https://github.com/tkhq/sdk/pull/848) [`8305dd2`](https://github.com/tkhq/sdk/commit/8305dd2cbfbb3cfc55ed37c9626198627c752fd9) Author [@andrewkmin](https://github.com/andrewkmin) - Fix: update serialization of typed data to conform to Viem's implementation
## 0.12.1-beta.1
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-server@4.7.0-beta.1
- @turnkey/http@3.10.0-beta.1
- @turnkey/sdk-browser@5.7.1-beta.1
- @turnkey/api-key-stamper@0.4.8-beta.4
## 0.12.1-beta.0
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-server@4.7.0-beta.0
- @turnkey/http@3.10.0-beta.0
- @turnkey/sdk-browser@5.7.1-beta.0
- @turnkey/api-key-stamper@0.4.8-beta.3
## 0.12.0
### Minor Changes
- [#642](https://github.com/tkhq/sdk/pull/642) [`7898dce`](https://github.com/tkhq/sdk/commit/7898dce1b71c1f956a588636a29c56e47b013426) Author [@andrewkmin](https://github.com/andrewkmin) - - Add implementation for `sign`. This is primarily applicable for account abstraction use cases.
- Enforce message hashing at an abstracted level.
- Minor bugfixes: pass through payload encoding; enforce default value for `to` parameter (abstracted away from user -- non-breaking)
### Patch Changes
- Updated dependencies [[`8b39dba`](https://github.com/tkhq/sdk/commit/8b39dbabf68d3e376b5b07f26960d5b61ae87fa9), [`1a549b7`](https://github.com/tkhq/sdk/commit/1a549b71f9a6e7ab59d52aaae7e58e34c8f2e8b5)]:
- @turnkey/sdk-browser@5.7.0
- @turnkey/sdk-server@4.6.0
- @turnkey/http@3.9.0
## 0.11.2-beta.2
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.6.1-beta.2
- @turnkey/api-key-stamper@0.4.8-beta.2
- @turnkey/http@3.8.1-beta.2
- @turnkey/sdk-server@4.5.1-beta.2
## 0.11.2-beta.1
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.6.1-beta.1
- @turnkey/api-key-stamper@0.4.8-beta.1
- @turnkey/http@3.8.1-beta.1
- @turnkey/sdk-server@4.5.1-beta.1
## 0.11.2-beta.0
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.6.1-beta.0
- @turnkey/api-key-stamper@0.4.8-beta.0
- @turnkey/http@3.8.1-beta.0
- @turnkey/sdk-server@4.5.1-beta.0
## 0.11.1
### Patch Changes
- Updated dependencies [[`f83f25b`](https://github.com/tkhq/sdk/commit/f83f25ba33ef15dbd66723531eebe2fd00f43ac0)]:
- @turnkey/sdk-browser@5.6.0
- @turnkey/sdk-server@4.5.0
- @turnkey/http@3.8.0
## 0.11.0
### Minor Changes
- [#651](https://github.com/tkhq/sdk/pull/651) [`81e355c`](https://github.com/tkhq/sdk/commit/81e355c9a8321feffcac056916b65139cf35eeed) Author [@turnekybc](https://github.com/turnekybc) - Add Coinbase & MoonPay Fiat Onramp. View the [Fiat Onramp feature docs](https://docs.turnkey.com/wallets/fiat-on-ramp).
### Patch Changes
- [#808](https://github.com/tkhq/sdk/pull/808) [`517d1d8`](https://github.com/tkhq/sdk/commit/517d1d83f7d4f9e000c7b47ff93e7a23daf4f6d2) Author [@moeodeh3](https://github.com/moeodeh3) - Fix serialization with BigInt values in `signTypedData()`
- Updated dependencies [[`81e355c`](https://github.com/tkhq/sdk/commit/81e355c9a8321feffcac056916b65139cf35eeed)]:
- @turnkey/http@3.7.0
- @turnkey/sdk-browser@5.5.0
- @turnkey/sdk-server@4.4.0
## 0.10.5
### Patch Changes
- Updated dependencies [[`0d1eb2c`](https://github.com/tkhq/sdk/commit/0d1eb2c464bac3cf6f4386f402604ecf8f373f15)]:
- @turnkey/sdk-browser@5.4.1
## 0.10.4
### Patch Changes
- Updated dependencies [[`e90a478`](https://github.com/tkhq/sdk/commit/e90a478c9208d858b1144df9b2c2c7ba956c406e)]:
- @turnkey/sdk-browser@5.4.0
- @turnkey/sdk-server@4.3.0
- @turnkey/http@3.6.0
## 0.10.3
### Patch Changes
- [#777](https://github.com/tkhq/sdk/pull/777) [`cbb0ba0`](https://github.com/tkhq/sdk/commit/cbb0ba0dc2ea960415e1e7f21c3621e85765b02a) Author [@turnekybc](https://github.com/turnekybc) - Publish latest version of @turnkey/viem
- Updated dependencies [[`2db00b0`](https://github.com/tkhq/sdk/commit/2db00b0a799d09ae33fa08a117e3b2f433f2b0b4)]:
- @turnkey/sdk-server@4.2.4
## 0.10.2
### Patch Changes
- Updated dependencies [[`cb13c26`](https://github.com/tkhq/sdk/commit/cb13c26edb79a01ab651e3b2897334fd154b436a)]:
- @turnkey/sdk-browser@5.3.4
- @turnkey/sdk-server@4.2.3
- @turnkey/http@3.5.1
## 0.10.1
### Patch Changes
- Updated dependencies [[`2c4f42c`](https://github.com/tkhq/sdk/commit/2c4f42c747ac8017cf17e86b0ca0c3fa6f593bbf)]:
- @turnkey/sdk-browser@5.3.3
## 0.10.0
### Minor Changes
- [#733](https://github.com/tkhq/sdk/pull/733) [`cc463d3`](https://github.com/tkhq/sdk/commit/cc463d3fde57f4d434fc41c5ed4ce42a0a506874) Author [@besler613](https://github.com/besler613) - Typed data hashing is now performed server-side using the new `PAYLOAD_ENCODING_EIP712` encoding, and EIP-712 Policies are supported via the `eth.eip_712` namespace.
## 0.9.12
### Patch Changes
- Updated dependencies []:
- @turnkey/sdk-browser@5.3.2
- @turnkey/sdk-server@4.2.2
## 0.9.11
### Patch Changes
- Updated dependencies [[`fa46701`](https://github.com/tkhq/sdk/commit/fa467019eef34b5199372248edff1e7a64934e79)]:
- @turnkey/sdk-browser@5.3.1
- @turnkey/sdk-server@4.2.1
## 0.9.10
### Patch Changes
- Updated dependencies [[`5f3dd98`](https://github.com/tkhq/sdk/commit/5f3dd9814650308b3bf3198168c453e7b1a98efd), [`5f3dd98`](https://github.com/tkhq/sdk/commit/5f3dd9814650308b3bf3198168c453e7b1a98efd), [`7625df0`](https://github.com/tkhq/sdk/commit/7625df0538002c3455bd5862211210e38472e164)]:
- @turnkey/http@3.5.0
- @turnkey/sdk-browser@5.3.0
- @turnkey/sdk-server@4.2.0
- @turnkey/api-key-stamper@0.4.7
## 0.9.9
### Patch Changes
- Updated dependencies:
- @turnkey/sdk-browser@5.2.3
## 0.9.8
### Patch Changes
- Updated dependencies:
- @turnkey/sdk-browser@5.2.2
## 0.9.7
### Patch Changes
- [#665](https://github.com/tkhq/sdk/pull/665) [`be0a621`](https://github.com/tkhq/sdk/commit/be0a621fb962bd51d2df1a1e79f5260d7c696772) Author [@amircheikh](https://github.com/amircheikh) - Fix for `no runner registered` error when using mismatched versions of turnkey/http
- Updated dependencies [[`be0a621`](https://github.com/tkhq/sdk/commit/be0a621fb962bd51d2df1a1e79f5260d7c696772)]:
- @turnkey/http@3.4.2
- @turnkey/sdk-browser@5.2.1
- @turnkey/sdk-server@4.1.1
## 0.9.6
### Patch Changes
- Updated dependencies [[`5afbe51`](https://github.com/tkhq/sdk/commit/5afbe51949bdd1997fad083a4c1e4272ff7409dc), [`a38a6e3`](https://github.com/tkhq/sdk/commit/a38a6e36dc2bf9abdea64bc817d1cad95b8a289a), [`40c4035`](https://github.com/tkhq/sdk/commit/40c40359ec7096d0bca39ffc93e89361b3b11a1a), [`593de2d`](https://github.com/tkhq/sdk/commit/593de2d9404ec8cf53426f9cf832c13eefa3fbf2)]:
- @turnkey/sdk-browser@5.2.0
- @turnkey/sdk-server@4.1.0
- @turnkey/http@3.4.1
- @turnkey/api-key-stamper@0.4.6
## 0.9.5
### Patch Changes
- Updated dependencies [[`27fe590`](https://github.com/tkhq/sdk/commit/27fe590cdc3eb6a8cde093eeefda2ee1cdc79412)]:
- @turnkey/sdk-browser@5.1.0
- @turnkey/sdk-server@4.0.1
## 0.9.4
### Patch Changes
- Updated dependencies [[`07dfd33`](https://github.com/tkhq/sdk/commit/07dfd3397472687092e1c73b1d68714f421b9ca0), [`e8a5f1b`](https://github.com/tkhq/sdk/commit/e8a5f1b431623c4ff1cb85c6039464b328cf0e6a)]:
- @turnkey/sdk-browser@5.0.0
- @turnkey/sdk-server@4.0.0
- @turnkey/http@3.4.0
## 0.9.3
### Patch Changes
- Updated dependencies [25ca339]
- @turnkey/sdk-browser@4.3.0
- @turnkey/sdk-server@3.3.0
- @turnkey/http@3.3.0
## 0.9.2
### Patch Changes
- d440e7b: Update `signAuthorization` implementation to explicitly include `yParity` in the response
## 0.9.1
### Patch Changes
- Updated dependencies [3f6e415]
- Updated dependencies [4d1d775]
- @turnkey/sdk-browser@4.2.0
- @turnkey/sdk-server@3.2.0
- @turnkey/http@3.2.0
- @turnkey/api-key-stamper@0.4.5
## 0.9.0
### Minor Changes
- 2f75cf1: Add support for signing Type 3 (EIP-4844) transactions
- Note the inline comments on the `signTransaction` [implementation](https://github.com/tkhq/sdk/blob/5e5666aba978f756e2021c261830effc5559811f/packages/viem/src/index.ts#L392): when signing Type 3 transactions, our Viem implementation will extract the transaction payload (not including blobs, commitments, or proofs), sign it, extract the signature, and then reassemble the entire transaction payload.
- See [with-viem](https://github.com/tkhq/sdk/tree/main/examples/with-viem/) for examples.
### Patch Changes
- Updated dependencies [3e4a482]
- @turnkey/sdk-browser@4.1.0
- @turnkey/sdk-server@3.1.0
- @turnkey/http@3.1.0
## 0.8.0
### Minor Changes
- 1d709ce: - Add support for EIP 7702 (Type 4) transactions by way of a new `signAuthorization` method
- Update upstream `viem` version to `^2.24.2` (required for 7702)
- Introduce new `to` parameter, used for indicating the result shape of `signMessage` (and related) requests
- Affects `signTypedData` as well
- Is used by `signAuthorization`
- As a result, `serializeSignature` is updated as well
## 0.7.2
### Patch Changes
- Updated dependencies [7b72769]
- @turnkey/sdk-server@3.0.1
## 0.7.1
### Patch Changes
- 123406b: The organizationId parameter is ignored when using a client other than TurnkeyClient (e.g., passkeyClient). Consequently, the SDK calls the client without the specified organizationId, which is unintended. This patch resolves the issue
- Updated dependencies [e501690]
- Updated dependencies [d1083bd]
- Updated dependencies [f94d36e]
- @turnkey/sdk-browser@4.0.0
- @turnkey/sdk-server@3.0.0
- @turnkey/http@3.0.0
## 0.7.0
### Minor Changes
- d99fe40: Upgrade upstream viem dependency
### Patch Changes
- Updated dependencies [bf87774]
- @turnkey/sdk-browser@3.1.0
## 0.6.18
### Patch Changes
- Updated dependencies [5ec5187]
- @turnkey/sdk-browser@3.0.1
- @turnkey/sdk-server@2.6.1
## 0.6.17
### Patch Changes
- Updated dependencies [0e4e959]
- Updated dependencies [856f449]
- Updated dependencies [c9ae537]
- Updated dependencies [d4ce5fa]
- Updated dependencies [ecdb29a]
- Updated dependencies [72890f5]
- @turnkey/sdk-browser@3.0.0
- @turnkey/sdk-server@2.6.0
- @turnkey/http@2.22.0
## 0.6.16
### Patch Changes
- Updated dependencies [93540e7]
- Updated dependencies [fdb8bf0]
- Updated dependencies [9147962]
- @turnkey/sdk-browser@2.0.0
- @turnkey/sdk-server@2.5.0
## 0.6.15
### Patch Changes
- Updated dependencies [233ae71]
- Updated dependencies [9317588]
- @turnkey/sdk-browser@1.16.0
- @turnkey/sdk-server@2.4.0
## 0.6.14
### Patch Changes
- Updated dependencies [56a307e]
- @turnkey/sdk-browser@1.15.0
- @turnkey/sdk-server@2.3.0
- @turnkey/http@2.21.0
## 0.6.13
### Patch Changes
- Updated dependencies [3c44c4a]
- Updated dependencies [bfc833f]
- @turnkey/sdk-browser@1.14.0
- @turnkey/sdk-server@2.2.0
- @turnkey/http@2.20.0
## 0.6.12
### Patch Changes
- Updated dependencies [69d2571]
- Updated dependencies [57f9cb0]
- @turnkey/sdk-browser@1.13.0
- @turnkey/sdk-server@2.1.0
- @turnkey/http@2.19.0
## 0.6.11
### Patch Changes
- Updated dependencies [755833b]
- @turnkey/sdk-browser@1.12.1
- @turnkey/sdk-server@2.0.1
## 0.6.10
### Patch Changes
- Updated dependencies [6695af2]
- Updated dependencies [1ebd4e2]
- @turnkey/sdk-browser@1.12.0
- @turnkey/sdk-server@2.0.0
- @turnkey/http@2.18.0
## 0.6.9
### Patch Changes
- Updated dependencies [053fbfb]
- @turnkey/sdk-browser@1.11.2
- @turnkey/sdk-server@1.7.3
- @turnkey/http@2.17.3
## 0.6.8
### Patch Changes
- Updated dependencies [328d6aa]
- Updated dependencies [b90947e]
- Updated dependencies [2d5977b]
- Updated dependencies [fad7c37]
- @turnkey/sdk-browser@1.11.1
- @turnkey/sdk-server@1.7.2
- @turnkey/api-key-stamper@0.4.4
- @turnkey/http@2.17.2
## 0.6.7
### Patch Changes
- Updated dependencies [7988bc1]
- Updated dependencies [538d4fc]
- Updated dependencies [12d5aaa]
- @turnkey/sdk-browser@1.11.0
- @turnkey/sdk-server@1.7.1
- @turnkey/http@2.17.1
## 0.6.6
### Patch Changes
- @turnkey/sdk-browser@1.10.2
## 0.6.5
### Patch Changes
- Updated dependencies [78bc39c]
- @turnkey/sdk-server@1.7.0
- @turnkey/http@2.17.0
- @turnkey/sdk-browser@1.10.1
## 0.6.4
### Patch Changes
- Updated dependencies [8bea78f]
- @turnkey/sdk-browser@1.10.0
## 0.6.3
### Patch Changes
- Updated dependencies [3dd74ac]
- Updated dependencies [1e36edf]
- Updated dependencies [4df8914]
- Updated dependencies [11a9e2f]
- @turnkey/sdk-browser@1.9.0
- @turnkey/sdk-server@1.6.0
- @turnkey/http@2.16.0
## 0.6.2
### Patch Changes
- Updated dependencies [9ebd062]
- @turnkey/sdk-browser@1.8.0
- @turnkey/sdk-server@1.5.0
- @turnkey/http@2.15.0
## 0.6.1
### Patch Changes
- Updated dependencies [abe7138]
- Updated dependencies [96d7f99]
- @turnkey/sdk-server@1.4.2
- @turnkey/sdk-browser@1.7.1
- @turnkey/http@2.14.2
- @turnkey/api-key-stamper@0.4.3
## 0.6.0
### Minor Changes
- 2bb9ea0: Add synchronous createAccount variant (thank you @mshrieve)
- Closes https://github.com/tkhq/sdk/issues/349
- Originally attributed to https://github.com/tkhq/sdk/pull/348
- Upshot: no change required if your setup was working. However, if you would like a synchronous option for creating a Viem account, now you may do so with `createAccountWithAddress`
### Patch Changes
- Updated dependencies [ff059d5]
- Updated dependencies [ff059d5]
- @turnkey/sdk-browser@1.7.0
- @turnkey/sdk-server@1.4.1
- @turnkey/http@2.14.1
- @turnkey/api-key-stamper@0.4.2
## 0.5.0
### Minor Changes
- 848f8d3: Support awaiting consensus and improve error handling
- Add new error types that extend `BaseError` (and thus implement `error.walk`)
- `TurnkeyConsensusNeededError` wraps consensus-related errors
- `TurnkeyActivityError` wraps base Turnkey errors
- Add a few new helper functions:
- `serializeSignature` serializes a raw signature
- `isTurnkeyActivityConsensusNeededError` and `isTurnkeyActivityError` use `error.walk` to check the type of a Viem error
### Patch Changes
- Updated dependencies [c988ed0]
- Updated dependencies [848f8d3]
- @turnkey/sdk-browser@1.6.0
- @turnkey/sdk-server@1.4.0
- @turnkey/http@2.14.0
## 0.4.31
### Patch Changes
- Updated dependencies [1813ed5]
- @turnkey/sdk-browser@1.5.0
## 0.4.30
### Patch Changes
- Updated dependencies [bab5393]
- Updated dependencies [a16073c]
- Updated dependencies [7e7d209]
- @turnkey/sdk-browser@1.4.0
## 0.4.29
### Patch Changes
- Updated dependencies [93dee46]
- @turnkey/http@2.13.0
- @turnkey/sdk-browser@1.3.0
- @turnkey/sdk-server@1.3.0
## 0.4.28
### Patch Changes
- Updated dependencies [e2f2e0b]
- @turnkey/sdk-browser@1.2.4
- @turnkey/sdk-server@1.2.4
- @turnkey/http@2.12.3
## 0.4.27
### Patch Changes
- Updated dependencies
- @turnkey/sdk-browser@1.2.3
- @turnkey/sdk-server@1.2.3
## 0.4.26
### Patch Changes
- Updated dependencies [2d7e5a9]
- Updated dependencies [f4b607f]
- @turnkey/api-key-stamper@0.4.1
- @turnkey/http@2.12.2
- @turnkey/sdk-browser@1.2.2
- @turnkey/sdk-server@1.2.2
## 0.4.25
### Patch Changes
- Updated dependencies [f17a229]
- @turnkey/http@2.12.1
- @turnkey/sdk-browser@1.2.1
- @turnkey/sdk-server@1.2.1
## 0.4.24
### Patch Changes
- Updated dependencies
- @turnkey/http@2.12.0
- @turnkey/sdk-browser@1.2.0
- @turnkey/sdk-server@1.2.0
## 0.4.23
### Patch Changes
- Updated dependencies
- @turnkey/http@2.11.0
- @turnkey/sdk-browser@1.1.0
- @turnkey/sdk-server@1.1.0
## 0.4.22
### Patch Changes
- Updated dependencies
- @turnkey/sdk-browser@1.0.0
- @turnkey/sdk-server@1.0.0
## 0.4.21
### Patch Changes
- @turnkey/sdk-browser@0.4.1
## 0.4.20
### Patch Changes
- d59e1b6: Add export of turnkey viem account functions
- Updated dependencies [e4b29da]
- @turnkey/sdk-browser@0.4.0
## 0.4.19
### Patch Changes
- Updated dependencies [d409d81]
- @turnkey/sdk-browser@0.3.0
## 0.4.18
### Patch Changes
- @turnkey/sdk-browser@0.2.1
## 0.4.17
### Patch Changes
- Updated dependencies
- Updated dependencies [e4d2a84]
- @turnkey/sdk-browser@0.2.0
- @turnkey/sdk-server@0.2.0
## 0.4.16
### Patch Changes
- Updated dependencies
- @turnkey/sdk-browser@0.1.0
- @turnkey/sdk-server@0.1.0
## 0.4.15
### Patch Changes
- a6502e6: Add support for new Turnkey Client types
## 0.4.14
### Patch Changes
- Updated dependencies [7a9ce7a]
- @turnkey/http@2.10.0
## 0.4.13
### Patch Changes
- Updated dependencies
- @turnkey/http@2.9.1
## 0.4.12
### Patch Changes
- Updated dependencies [83b62b5]
- @turnkey/http@2.9.0
## 0.4.11
### Patch Changes
- Updated dependencies [46a7d90]
- @turnkey/http@2.8.0
## 0.4.10
### Patch Changes
- Updated dependencies
- @turnkey/http@2.7.1
## 0.4.9
### Patch Changes
- Updated dependencies ([c3b423b], [d73725b])
- @turnkey/api-key-stamper@0.4.0
- @turnkey/http@2.7.0
## 0.4.8
### Patch Changes
- 4794c64: Updated dependencies
## 0.4.7
### Patch Changes
- Updated dependencies [f9d636c]
- @turnkey/http@2.6.2
## 0.4.6
### Patch Changes
- Updated dependencies [52e2389]
- @turnkey/http@2.6.1
## 0.4.5
### Patch Changes
- Updated dependencies [7a3c890]
- @turnkey/http@2.6.0
## 0.4.4
### Patch Changes
- Upgrade to Node v18 (#184)
- Updated dependencies
- @turnkey/api-key-stamper@0.3.1
- @turnkey/http@2.5.1
## 0.4.3
### Patch Changes
- Updated dependencies [464ac0e]
- @turnkey/http@2.5.0
## 0.4.2
### Patch Changes
- @turnkey/http@2.4.2
## 0.4.1
### Patch Changes
- Updated dependencies [f87ced8]
- @turnkey/http@2.4.1
## 0.4.0
### Minor Changes
- Use rollup to build ESM and CommonJS, fix ESM support (#174)
### Patch Changes
- Updated dependencies [fc5b291]
- @turnkey/api-key-stamper@0.3.0
- @turnkey/http@2.4.0
## 0.3.4
### Patch Changes
- Updated dependencies
- @turnkey/api-key-stamper@0.2.0
- @turnkey/http@2.3.1
## 0.3.3
### Patch Changes
- Updated dependencies [f1bd68a]
- @turnkey/http@2.3.0
## 0.3.2
### Patch Changes
- Updated dependencies [ed50a0f]
- Updated dependencies
- @turnkey/http@2.2.0
## 0.3.0
### Minor Changes
- cf8631a: Update interface to support `signWith`
This change supports signing with wallet account addresses, private key addresses, or private key IDs. See below for an example:
```js
const httpClient = new TurnkeyClient(
{
baseUrl: "https://api.turnkey.com",
},
// This uses API key credentials.
// If you're using passkeys, use `@turnkey/webauthn-stamper` to collect webauthn signatures:
// new WebauthnStamper({...options...})
new ApiKeyStamper({
apiPublicKey: "...",
apiPrivateKey: "...",
}),
);
// Create the Viem custom account
const turnkeyAccount = await createAccount({
client: httpClient,
organizationId: "...",
signWith: "...",
// optional; will be fetched from Turnkey if not provided
ethereumAddress: "...",
});
```
## 0.2.7
### Patch Changes
- Updated dependencies [bb6ea0b]
- @turnkey/http@2.1.0
## 0.2.6
### Patch Changes
- 59dcd2f: Unpin typescript
- da7c960: Bump Viem dependency to fix `getAddresses()` for LocalAccount
- Updated dependencies
- @turnkey/http@2.0.0
- Updated the shape of signing
## 0.2.5
### Patch Changes
- Updated dependencies
- @turnkey/http@1.3.0
## 0.2.4
### Patch Changes
- 0ec2d94: Addresses a bug when signing raw messages (see https://github.com/tkhq/sdk/issues/116)
## 0.2.3
### Patch Changes
- Updated dependencies
- @turnkey/http@1.2.0
## 0.2.2
### Patch Changes
- Updated dependencies
- @turnkey/api-key-stamper@0.1.1
- @turnkey/http@1.1.1
## 0.2.1
### Patch Changes
- Fix code sample in the README; add more details and links
## 0.2.0
### Minor Changes
- Add new `createAccount` method and deprecates the existing `createApiAccount`. `createAccount` offers a superset of functionality and works with stampers (`@turnkey/api-key-stamper` / `@turnkey/webauthn-stamper`) to integrate with API keys or passkeys.
### Patch Changes
- Updated dependencies: @turnkey/http@1.1.0
- New dependency: @turnkey/api-key-stamper@0.1.0
## 0.1.1
### Patch Changes
- README updates
## 0.1.0
Initial release!