TypeScript: Transactions SDK
Interact with the blockchain using Transactions SDK
Last updated
Interact with the blockchain using Transactions SDK
Last updated
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.
Terms | What we mean |
---|---|
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. There are policies on the account that governs how the account works.
In Layman's term, 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.
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).