TypeScript: Transactions SDK
Interact with the blockchain using Transactions SDK
Last updated
Interact with the blockchain using Transactions SDK
Last updated
DIMO Check-in
Transactions SDK is being utilized by Login with DIMO alongside Accounts API. If you are looking to build apps, we highly recommend using the Login with DIMO component instead and streamline that with the Data SDK.
The DIMO Transactions SDK is an open-source TypeScript SDK built to facilitate developers in creating transactions. The objective of the Transactions SDK is to allow developer interactions with the DIMO vehicles and permissions on behalf of an end-user.
To get started with the Transactions SDK, you should understand some of the terminologies.
Batch Operations
Batch is the term used when multiple operations are included in one function call.
Example: In the vehicle permission sharing function, use setVehiclePermissionsBatch
to send requests for different vehicles with different permissions in one operation.
Bulk Operations
Bulk is the term used when multiple operations of the same kind are included in one function call.
Example: In the vehicle permission sharing function, use setVehiclePermissionsBulk
to send requests for different vehicles with the same permissions in one operation.
Mint
Mint simply means to create and publish (vehicles) onto the network. Do note that minting a vehicle does not mean the vehicle is connected to a data feed or earning rewards. Minting is the first step before connecting and earning.
Example: In the mintVehicleWithDeviceDefinition
function, developers can create a vehicle on behalf of the user with a provided vehicle definition.
Permissions
The access control on data types that the end user grants to developers. For details on permissions, refer to SACD.
SACD
Refers to permissions contract SACD.
Stampers
A signature provided by the user, in the SDK, this is the passkey that the user provides (face ID, fingerprint, etc).
The user is in the driver's seat and full control over their own account but developers can perform actions when the user provides their passkey in an application.
(Contribution standards to be defined)
Used in Account Abstraction (AA) models in ERC-4337, DIMO Global Accounts removes the dependencies on private keys and gas fees and allow the developers to initiate functions. DIMO utilizes to facilitate signing transactions on behalf of an end-user.