# How to use agent-rs to call the interface of canister which implement with protobuf?

**URL:** <https://forum.dfinity.org/t/how-to-use-agent-rs-to-call-the-interface-of-canister-which-implement-with-protobuf/11014>\
**Category:** Developers\
**Created:** [February 21, 2022, 8:59am UTC](https://forum.dfinity.org/t/how-to-use-agent-rs-to-call-the-interface-of-canister-which-implement-with-protobuf/11014 "2022-02-21T08:59:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyq](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/flyq/32/3637_2.png) [@flyq](https://forum.dfinity.org/u/flyq)\
**Post date:** [February 21, 2022, 8:59am UTC](https://forum.dfinity.org/t/how-to-use-agent-rs-to-call-the-interface-of-canister-which-implement-with-protobuf/11014/1 "2022-02-21T08:59:18Z")

</div>

How to use [agent-rs](https://github.com/dfinity/agent-rs/issues/311) to call the interface of canister which implement with protobuf?

---

<div class="post-metadata">

**Author:** ![flyq](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/flyq/32/3637_2.png) [@flyq](https://forum.dfinity.org/u/flyq)\
**Post date:** [February 21, 2022, 9:05am UTC](https://forum.dfinity.org/t/how-to-use-agent-rs-to-call-the-interface-of-canister-which-implement-with-protobuf/11014/2 "2022-02-21T09:05:39Z")

</div>

use dfn\_protobuf::ProtoBuf encode the args can solve this problem

> <https://github.com/dfinity/ic/blob/master/rs/rosetta-api/src/ledger_client.rs#L1068>
