diff --git a/app/modules/bma/lib/dtos.ts b/app/modules/bma/lib/dtos.ts
index 6a17335d51e3a70bfb6505b43bcd7bbe32da4ce4..1ba54fe4ad868ed08f51831de5fe06adcaaef113 100644
--- a/app/modules/bma/lib/dtos.ts
+++ b/app/modules/bma/lib/dtos.ts
@@ -14,6 +14,7 @@
 import { BlockDTO } from "../../../lib/dto/BlockDTO";
 import { WS2PHead } from "../../ws2p/lib/WS2PCluster";
 import { JSONDBPeer } from "../../../lib/db/DBPeer";
+import { TransactionDTO } from "../../../lib/dto/TransactionDTO";
 
 export const Summary = {
   duniter: {
@@ -292,7 +293,7 @@ export function block2HttpBlock(blockDTO: BlockDTO): HttpBlock {
     revoked: blockDTO.revoked,
     excluded: blockDTO.excluded,
     transactions: blockDTO.transactions.map(
-      (tx): HttpTransactionOfBlock => {
+      (tx: TransactionDTO): HttpTransactionOfBlock => {
         return {
           version: tx.version,
           currency: tx.currency,
diff --git a/app/modules/bma/lib/tojson.ts b/app/modules/bma/lib/tojson.ts
index 8330c2cf3cd4d72c61e88798cb135ffb25055106..2fc834f5d2defcc91fd233d9844702f4dbef2699 100644
--- a/app/modules/bma/lib/tojson.ts
+++ b/app/modules/bma/lib/tojson.ts
@@ -13,12 +13,13 @@
 
 import { BlockDTO } from "../../../lib/dto/BlockDTO";
 import { Underscore } from "../../../lib/common-libs/underscore";
+import { HttpBlock } from "./dtos";
 
 export const stat = (stat: number[]) => {
   return { blocks: stat };
 };
 
-export const block = (block: any) => {
+export const block = (block: any): HttpBlock => {
   const json: any = {};
   json.version = parseInt(block.version);
   json.nonce = parseInt(block.nonce);