Admin API: get details about the transaction attached to a proposal

Hey,

I am using the Admin API at https://defender-api.openzeppelin.com/admin and defender-client npm package.

I would like to access the details of the transaction associated with a proposal but can not find any way to do it neither from the API nor defender-client npm package. Would you have a solution for me?

When looking at the dashboard I see that you have a route GET /contracts/{contractId}/proposals/{proposalId} that returns the details about the transaction, is this available in the Admin API and defender-client?

Thanks a lot!

Hi @nmvalera

Welcome!

Currently defender-client npm package does not support route to get proposal data(including transaction data) as you have seen it via Dashboard.

I will create internal ticket in order to support this case.

Until then you can use Dashboard link that will open transaction data(next to EXECUTED state).

Best,
Zeljko

Hi there,

Ok, thanks.

It is not available on defender-client but is it available on the Admin API?

If would indeed be super useful to add the route, the same as GET /contracts/{contractId}/proposals/{proposalId} would be ideal.

Thanks a lot!

Hi,
In general there are two APIs.

One is only accessible when using FE app and the other one is accessible when using our client packages(API key auth).

We are missing support for required endpoint in API that you can actually consume from your scripts.

We have created internal issue for adding it.

Best,
Zeljko

Gotcha Thanks a lot @zeljko

Hi @zeljko :wave: I'm also interested in this feature.
Is there any updates on when the new route with transaction details could be available in Admin Apis?
Thanks in advance :slight_smile:

@olich97

Hi

New route with proposal info should be available later today or in worst case by tomorrow.
I will notify you.

Best,
Zeljko

1 Like